Skip to content

chore(website): manually centered homepage buttons #6201

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

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
4 changes: 2 additions & 2 deletions packages/website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function Feature({ title, description }: FeatureItem): JSX.Element {
<p>{description}</p>
<div className={styles.buttons}>
<Link
className="button button--primary"
className={clsx('button button--primary', styles.buttonCentered)}
to={useBaseUrl('getting-started')}
>
Get Started
Expand All @@ -140,7 +140,7 @@ function Home(): JSX.Element {
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className={clsx('button button--primary', styles.buttonPrimary)}
className="button button--primary"
to={useBaseUrl('getting-started')}
>
Get Started
Expand Down
4 changes: 4 additions & 0 deletions packages/website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
margin: 1rem 1rem;
}

.buttonCentered {
margin: auto;
}

.buttonPrimary {
border: var(--ifm-button-border-width) solid var(--ifm-button-color);
}
Expand Down