Skip to content

Commit

Permalink
fixed mobile view!
Browse files Browse the repository at this point in the history
  • Loading branch information
Resaki1 committed Oct 5, 2023
1 parent b659f91 commit 536a4fb
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
Binary file added public/assets/mobile/mobile_dark--mobile.webp
Binary file not shown.
Binary file added public/assets/mobile/mobile_light--mobile.webp
Binary file not shown.
27 changes: 23 additions & 4 deletions src/components/Mobile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,23 @@
}

@media screen and (max-width: 700px) {
h2 {
font-size: 24px;
line-height: 28px;
}

p {
font-size: 16px;
line-height: 24px;
}

.mobile__section {
box-sizing: border-box;
flex-direction: column-reverse;
justify-content: center;
align-items: center;
text-align: center;
height: 100vh;
height: fit-content;
padding: 64px 0 0 0;
gap: 16px;
}
Expand All @@ -81,19 +91,28 @@
justify-content: center;

.mobile__stan {
height: 500px;
min-height: unset;
height: 380px;
content: url("/assets/mobile/mobile_light--mobile.webp");
}

.mobile__background {
height: 700px;
right: 96px;
min-height: unset;
height: 540px;
right: 46px;
}
}

.mobile__text {
margin: 0;
width: 90%;
}

@media (prefers-color-scheme: dark) {
.mobile__image .mobile__stan {
content: url("/assets/mobile/mobile_dark--mobile.webp");
}
}
}

@media (prefers-color-scheme: dark) {
Expand Down
4 changes: 4 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ const { title } = Astro.props;
min-height: 100vh;
}

section {
overflow-x: clip;
}

.body_wrapper {
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { AboutUs } from "../views/AboutUs/AboutUs";
<Choices client:visible />
<Uniqueness />
<Mobile />
<TargetUser />
<Features />
<TargetUser />
<AboutUs />
</Layout>
1 change: 1 addition & 0 deletions src/views/Features/Features.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 64px;

h2,
p {
Expand Down

0 comments on commit 536a4fb

Please sign in to comment.