Skip to content

Commit

Permalink
more mobile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Mar 4, 2024
1 parent 09891cd commit 62a68bb
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 14 deletions.
8 changes: 7 additions & 1 deletion src/components/Box.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
---

<div class="sm:p-8 max-sm:p-4 gradient rounded-xl max-sm:my-12">
<div class="
flex flex-col
sm:p-8 max-sm:p-4
gradient rounded-xl
max-sm:mx-8 max-sm:my-12
sm:gap-8 max-sm:gap-4
">
<slot/>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/components/ButtonRow.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const classList = `
flex
sm:flex-row ${reverseOnMobile === 'true' ? 'max-sm:flex-col-reverse' : 'max-sm:flex-col'}
items-center justify-center
gap-8
sm:gap-8 max-sm:gap-4
`;
---

Expand Down
2 changes: 1 addition & 1 deletion src/components/Donate.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Box from "./Box.astro"
Globed is supported by your <em>donations</em>. If you enjoy the mod, please consider
donating on the <em>Ko-fi</em>!
</Text>
<div class="flex flex-row justify-center mt-8">
<div class="flex flex-row justify-center">
<Button link="https://ko-fi.com/globed">
<DollarSignIcon slot="pre-icon" />
Donate
Expand Down
5 changes: 3 additions & 2 deletions src/components/InstructionBox.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
const { num, align, id } = Astro.props;
const classList = `flex flex-col ${align ?? 'items-center'} gap-8`;
const classList = `flex flex-col ${align ?? 'items-center'} sm:gap-8 max-sm:gap-4`;
---

<article id={id}>
Expand All @@ -14,7 +14,8 @@ const classList = `flex flex-col ${align ?? 'items-center'} gap-8`;
article {
@apply
flex sm:flex-row max-sm:flex-col items-center
gap-8 sm:p-8 max-sm:p-4
sm:gap-8 max-sm:gap-4
sm:p-8 max-sm:p-4
bg-wallpaper-default bg-opacity-25
rounded-xl;
}
Expand Down
19 changes: 10 additions & 9 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@ const screenshots = (await Astro.glob('../images/screenshot-*.png')).map(file =>
flex flex-col
justify-center items-center
sm:mt-20 max-sm:mt-32
sm:p-20 max-sm:p-6
sm:p-20 max-sm:p-4
mb-16
">
<Image src={logo} alt="Globed logo" class="sm:w-48 max-sm:w-28"/>

<Title>Globed</Title>

<Subtitle>
An
<Link noUnderline="true" href="https://github.com/dankmeme01/globed2">Open-Source</Link>,
Highly Customizable <br>
<span class="font-bold">Multiplayer Mod</span> for
<Link style="alt" noUnderline="true" href="https://www.robtopgames.com/">Geometry Dash</Link>
</Subtitle>
<span class="max-w-subtitle">
<Subtitle>
An
<Link noUnderline="true" href="https://github.com/dankmeme01/globed2">Open-Source</Link>,
Highly Customizable Multiplayer Mod for
<Link style="alt" noUnderline="true" href="https://www.robtopgames.com/">Geometry Dash</Link>
</Subtitle>
</span>

<!-- scuffiest padding of my life -->
<div class="h-8" />
Expand Down Expand Up @@ -76,7 +77,7 @@ const screenshots = (await Astro.glob('../images/screenshot-*.png')).map(file =>
Geometry Dash. You can read more about Geode on <Link href="https://geode-sdk.org">its website</Link>!
</Text>

<div class="flex flex-col gap-8 mt-8">
<div class="flex flex-col sm:gap-8 max-sm:gap-4 mt-8">
<Text>
Interested? Go to the <em>Installation Page</em> for instructions on how to get Globed,
or <em>About page</em> if you want to learn more!
Expand Down
2 changes: 2 additions & 0 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ export default {
extend: {
maxWidth: {
'paragraph': 'min(36rem, 90vw)',
// this is just to ensure that "Multiplayer Mod" is on one line in the main page
'subtitle': 'min(32rem, 90vw)',
}
},
},
Expand Down

0 comments on commit 62a68bb

Please sign in to comment.