Skip to content

Commit

Permalink
Fix UI on mobile platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
KingRainbow44 committed Aug 12, 2023
1 parent 1afe1ec commit 3755beb
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
Binary file added public/images/laudiolin-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions src/css/pages/LandingPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,35 @@
}
}

@media screen and (max-width: 1200px) {
.LandingPage_Segment {
background-size: cover !important;
background-repeat: no-repeat !important;
}

.LandingPage_TextContainer {
align-items: center !important;
text-align: center !important;
justify-content: center;

width: 80%;
margin-left: 0 !important;
margin-right: 0 !important;
}

.LandingPage_Laudiolin {
background-image:
linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url("/images/laudiolin-mobile.png") !important;
}
}

@media screen and (max-width: 450px) {
.LandingPage_Buttons {
@apply flex-col;
}
}

.LandingPage_Laudiolin {
background-image: url("/images/laudiolin.png");
}
12 changes: 7 additions & 5 deletions src/ui/pages/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ function Laudiolin() {
</p>
</div>

<div className={"LandingPage_Open"}
onClick={() => window.open("https://laudiolin.seikimo.moe")}
>
<MdLaunch />
<div className={"LandingPage_Buttons"}>
<div className={"LandingPage_Open"}
onClick={() => window.open("https://laudiolin.seikimo.moe")}
>
<MdLaunch />

<p>Open</p>
<p>Open</p>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 3755beb

Please sign in to comment.