Skip to content

Commit

Permalink
Completed basic spacing for first level, now figure out second
Browse files Browse the repository at this point in the history
  • Loading branch information
angoway committed Oct 23, 2024
1 parent 9592ce3 commit 77dae5b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/shared/LessonSide/LessonSide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function LessonSide({
</div>
<LessonText text_array={lesson_info} />
</div>
<div>
<div id="turtle-and-levels-container">
<Turtle turtleID={randomTurtleMessage} />

{/* passed from parent component */}
Expand Down
21 changes: 14 additions & 7 deletions src/styles/LessonSide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
display: flex;
flex-direction: column;
height: 100vh;
justify-content: space-between;
//justify-content: space-between;
overflow-y: auto;
width: 40vw;
width: 43vw;
}

#turtle-logo {
Expand Down Expand Up @@ -56,7 +56,7 @@
color: colors.$text-white;
font-family: 'PT Sans', sans-serif;
font-size: vars.$header-font-size;
padding-bottom: 2.5vh;
padding-bottom: 2vh;
padding-left: vars.$lesson-side-left-padding;
text-align: left;
}
Expand All @@ -67,17 +67,24 @@
font-size: vars.$body-font-size;
padding-left: vars.$lesson-side-left-padding;
padding-right: vars.$lesson-side-left-padding;
padding-top: 2.5vh;
padding-top: 2vh;
text-align: left;
}

#turtle-and-levels-container {
display: flex;
flex-direction: column;
align-items: center;
padding-bottom: 3vh;
}

#encouraging-turtle {
align-items: flex-end;
align-items: center;
box-sizing: border-box;
display: flex;
height: auto;
padding: 5vh;
width: 100%;
padding: 1vh;
width: 60%;
}

#footer-space {
Expand Down
6 changes: 3 additions & 3 deletions src/styles/_vars.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$body-font-size: 1.125em;
$logo-font-size: 3.5em;
$header-font-size: 1.5em;
$body-font-size: 1.05em;
$logo-font-size: 2.5em;
$header-font-size: 1.4em;

$lesson-side-left-padding: 2.2vw;

0 comments on commit 77dae5b

Please sign in to comment.