Skip to content

Commit

Permalink
Merge pull request #575 from WycliffeAssociates/mm_new_langs
Browse files Browse the repository at this point in the history
Mm new langs
  • Loading branch information
mXaln authored Jun 25, 2019
2 parents 1983794 + eba4f64 commit 23ae29e
Show file tree
Hide file tree
Showing 16 changed files with 315 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "translationexchange",
"author": "mxaln",
"version": "1.1.6",
"version": "1.1.7",
"description": "Translation Exchange",
"private": true,
"homepage": ".",
Expand Down
1 change: 1 addition & 0 deletions src/js/components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ class NavBar extends Component {
const Container = styled.div`
background-color: #fff;
width: 100%;
height: 5vw;
display: flex;
flex-direction: row;
justify-content: space-between;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ export default class ControlButtons extends React.Component {
const Container = styled.div`
display: flex;
justify-content: space-evenly;
align-items: center;
width: 30%;
button {
margin-right: 2vw;
}
`;
Container.displayName = 'Container';

Expand Down
6 changes: 3 additions & 3 deletions src/js/pages/ChapterReview/components/BottomBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class BottomBar extends React.Component {
const Container = styled.div`
position: fixed;
bottom: 0;
height: 7.5vh;
height: 10vh;
background: #222B35;
display: flex;
justify-content: space-between;
Expand All @@ -84,7 +84,7 @@ const ButtonContainer = styled.div`
const ExitButton = styled.button`
background: #39414A;
width: 10vw;
height: 5vh;
height: 6vh;
min-width: 150px;
border-radius: 5px;
color: white;
Expand All @@ -102,7 +102,7 @@ ExitButton.displayName = 'ExitButton';
const NextChapterButton = styled.button`
background: linear-gradient(to right, #0076FF, #00C5FF );
width: 10vw;
height: 5vh;
height: 6vh;
min-width: 150px;
border-radius: 5px;
color: white;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class Comments extends React.Component {
}

const CommentContainer = styled.div`
height: 10vh;
height: 11vh;
width: 100%;
background: ${props => props.active? '#0D4E78' :'#1B2633'};
border-radius: 5px;
Expand Down
3 changes: 1 addition & 2 deletions src/js/pages/ChapterReview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export class ChapterReview extends React.Component {

var nextChapter = chapters.find(function(chapter){
return chapter.number == next_chapter_num
&& chapter.published_chunks == chapter.total_chunks
})

if(nextChapter == undefined) { // if nextChapter is undefined, it means we have reached the last chapter in the book
Expand Down Expand Up @@ -152,8 +153,6 @@ const Container= styled.div`
position: absolute;
overflow-y: hidden;
overflow-x:hidden;
display: flex;
align-items: center;
`;
Container.displayName = 'Container';
const ReviewColumnsContainer=styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/js/pages/KanbanBoard/components/ReviewDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Action.displayName = 'Action';

const ChapterReviewButton = styled.button`
width: 35%;
height: 30%;
height: 6vh;
min-height: 40px;
border-radius: 25px;
background: linear-gradient(to right, #0076FF, #00C5FF);
Expand Down
4 changes: 2 additions & 2 deletions src/js/pages/Login/LoginPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class Welcome extends React.Component {
const LoginPage = styled.div`
display: flex;
align-items: center;
justify-content: center;
justify-content: space-between;
flex-direction: column;
`;
LoginPage.displayName = 'LoginPage';
Expand All @@ -77,7 +77,7 @@ const LanguageContainer = styled.div`
width:100%;
display:flex;
justify-content: flex-end;
margin-bottom: 2vw;
margin: 0;
`;
LanguageContainer.displayName = 'LanguageContainer';

Expand Down
3 changes: 1 addition & 2 deletions src/js/pages/Login/components/WelcomeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ const WelcomePage = styled.div`
background: white;
justify-self: center;
min-width: 250px;
min-height: 400px;
height: 66%;
height: 70vh;
text-align: center;
//border: solid #969595 0.1vw;
border-radius: 0.5vw;
Expand Down
4 changes: 4 additions & 0 deletions src/js/pages/chapters/components/ChapterCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ Card.displayName = 'Card';

const CircularTextContainer = styled.div`
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 50%;
text-align: center;
i {
color: ${props=> props.dangerSign? '#FF9800': '#E9E9E9' }
Expand Down
4 changes: 3 additions & 1 deletion src/js/pages/tasks/TaskProgressPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export class TaskProgressPage extends React.Component {
}

const TaskProgressPageContainer = styled.div`
position: relative;
height: 100vh;
overflow: hidden;
`;
TaskProgressPageContainer.displayName = 'TaskProgressPageContainer';

Expand Down
4 changes: 4 additions & 0 deletions src/js/pages/tasks/components/GotoProjectsButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@ const Button = styled.div`
align-items: center;
justify-content: center;
box-shadow: 0.2vw 0.2vw 0.5vw #888888;
position: fixed;
bottom: 0.5vh;
left: 50%;
transform: translate(-50%, 0);
`;
Button.displayName = 'Button';
11 changes: 4 additions & 7 deletions src/js/pages/tasks/components/TaskItemFinished.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,8 @@ const TaskDetails = styled.div`
TaskDetails.displayName = 'TaskDetails';

const Picture = styled.div`
display: flex;
flex: 1;
position: relative;
justify-content: center;
align-items: center;
`;
Picture.displayName = 'Picture';

Expand All @@ -76,7 +73,7 @@ const Img = styled.img`
filter: url(#brightness);
filter:brightness(70%);
width: 100%;
height: 100%;
height: 10vw;
object-fit: cover;
border-radius: 0.3vw;
`;
Expand All @@ -89,9 +86,9 @@ const Flag = styled.div`
height: 4vw;
border-radius: 2vw;
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
`;
Flag.displayName = 'Flag';

Expand Down
5 changes: 1 addition & 4 deletions src/js/pages/tasks/components/TaskItemProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,14 @@ const TaskDetails = styled.div`
TaskDetails.displayName = 'TaskDetails';

const Picture = styled.div`
display: flex;
flex: 1;
position: relative;
justify-content: center;
align-items: center;
`;
Picture.displayName = 'Picture';

const Img = styled.img`
width: 100%;
height: 100%;
height: 10vw;
object-fit: cover;
border-radius: 0.3vw;
`;
Expand Down
2 changes: 1 addition & 1 deletion src/js/pages/tasks/components/TaskProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class TaskProgress extends React.Component {
const Container = styled.div`
flex: 1
flex-direction: column;
max-height: 35vw;
max-height: 75vh;
overflow-y: auto;
display: flex;
flex-wrap: nowrap;
Expand Down
Loading

0 comments on commit 23ae29e

Please sign in to comment.