Skip to content

Commit

Permalink
Merge pull request #5 from aryanprince/main
Browse files Browse the repository at this point in the history
Make website responsive on larger displays/viewports
  • Loading branch information
vapidinfinity authored Oct 25, 2024
2 parents 7480e68 + f778ed3 commit 2e11594
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
10 changes: 10 additions & 0 deletions src/components/navigation/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,14 @@
gap: 10px;
}
}

@media (min-width: 1536px) {
.logo {
padding-left: 300px;
}

.right-items {
padding-right: 300px;
}
}
</style>
15 changes: 14 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ import Navbar from "../components/navigation/Navbar.astro";
margin: 0;
padding-top: 52px;
-webkit-font-smoothing: antialiased;
max-width: 96vw !important;
}

body {
max-width: 96vw;
margin: 50px auto 0;
display: flex;
text-align: center;
Expand Down Expand Up @@ -179,6 +182,10 @@ import Navbar from "../components/navigation/Navbar.astro";
border: 1px solid var(--stroke);
}

.text-balance {
text-wrap: balance;
}

@media only screen and (max-width: 903px) {
button,
.button {
Expand Down Expand Up @@ -236,4 +243,10 @@ import Navbar from "../components/navigation/Navbar.astro";
width: 480px;
}
}

@media (min-width: 1536px) {
body {
max-width: 70vw;
}
}
</style>
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const socials = [
<h1 class="mythic-gradient-text">
The best way to play Windows games on Mac.
</h1>
<p>An <a href="https://github.com/MythicApp">open-source</a> macOS game launcher with the ability to play Windows® games through a custom implementation of Apple's Game Porting Toolkit — supporting multiple platforms.</p>
<p class="text-balance">An <a href="https://github.com/MythicApp">open-source</a> macOS game launcher with the ability to play Windows® games through a custom implementation of Apple's Game Porting Toolkit — supporting multiple platforms.</p>
<br />
<a class="button-md" href="/download">
Download Alpha
Expand Down

0 comments on commit 2e11594

Please sign in to comment.