Skip to content

Commit

Permalink
tweeks textItem. fixes dynamic style issue v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Snorre98 committed Sep 21, 2023
1 parent a93783a commit 550e8a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
10 changes: 6 additions & 4 deletions frontend/src/Components/SultenCard/SultenCard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
background-color: $black;
border-radius: 0.5em;
gap: 1em;

padding: 1.5em;
@include for-mobile-down {
@include flex-column;
padding-bottom: 2em;
Expand All @@ -19,7 +19,7 @@
background-color: $black;
border-radius: 0.5em;
gap: 1em;

padding: 1.5em;
@include for-mobile-down {
@include flex-column;
}
Expand All @@ -44,6 +44,7 @@
.smallcard_image {
height: 15em;
width: 25%;
max-width: 15em;
display: inline-block;
flex: 1;
border-radius: 0.5em;
Expand All @@ -52,7 +53,7 @@

@include for-mobile-down {
width: 100%;
max-height: 10em;
max-height: 5em;
display: block;
object-position: center;
}
Expand All @@ -62,9 +63,10 @@
@include flex-column-center;
flex: 1;
text-align: center;
max-width: 30vw;

@include for-mobile-down {
width: 100%;
max-width: 80vw;
}
}

Expand Down
3 changes: 2 additions & 1 deletion frontend/src/Pages/LycheAboutPage/LycheAboutPage.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
.container {
width: 100%;
height: 100%;
margin: $sulten-navbar-height/2 0 $sulten-navbar-height/2 0; //this looked the best
margin: $sulten-navbar-height/4 0 $sulten-navbar-height/4 0; //this looked the best
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 10;
@include flex-column-center;
@include for-mobile-down {
margin-top: $sulten-navbar-height;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/constants/TextItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const TextItem = {
sulten_about_us_text: 'sulten_about_us_text',
sulten_contact_text: 'sulten_contact_text',
sulten_about_page_text: 'sulten_about_page_text',
sulten_what_is_lyche_text: 'sulten_what_is_lyche',
sulten_what_is_lyche_text: 'sulten_what_is_lyche_text',
sulten_lyche_goal_text: 'sulten_lyche_goal_text',
sulten_lyche_about_menu_text: 'sulten_lyche_about_menu',
sulten_lyche_about_menu_text: 'sulten_lyche_about_menu_text',
} as const;

0 comments on commit 550e8a3

Please sign in to comment.