Skip to content

Commit

Permalink
fix: Align
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekCornerGH authored Jul 1, 2024
1 parent 9f31dff commit 5dadd10
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 17 deletions.
20 changes: 19 additions & 1 deletion src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,26 @@
}
}

.buttons {
.buttonsContainer {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
margin: 0 auto;
justify-content: center;
}

.buttons {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
width: 100%;
}

.buttons > div {
flex: 1 1 auto;
margin: 5px;
text-align: center;
}
34 changes: 18 additions & 16 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,24 @@ function HomepageHeader() {
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<div>
<Link
className="button button--secondary button--lg"
href="/docs/getting-started/discord"
>
Get started
</Link>
</div>
<div>
<Link
className="button button--secondary button--lg"
href="/maps"
>
Take a look at our maps
</Link>
<div className={styles.buttonsContainer}>
<div className={styles.buttons}>
<div>
<Link
className="button button--secondary button--lg"
href="/docs/getting-started/discord"
>
Get started
</Link>
</div>
<div>
<Link
className="button button--secondary button--lg"
href="/maps"
>
Take a look at our maps
</Link>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 5dadd10

Please sign in to comment.