Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make website responsive on larger displays/viewports #5

Merged
merged 4 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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