Skip to content

Commit d8ebe41

Browse files
chore(website): manually centered homepage buttons (typescript-eslint#6201)
1 parent 8913077 commit d8ebe41

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/website/src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function Feature({ title, description }: FeatureItem): JSX.Element {
120120
<p>{description}</p>
121121
<div className={styles.buttons}>
122122
<Link
123-
className="button button--primary"
123+
className={clsx('button button--primary', styles.buttonCentered)}
124124
to={useBaseUrl('getting-started')}
125125
>
126126
Get Started
@@ -140,7 +140,7 @@ function Home(): JSX.Element {
140140
<p className="hero__subtitle">{siteConfig.tagline}</p>
141141
<div className={styles.buttons}>
142142
<Link
143-
className={clsx('button button--primary', styles.buttonPrimary)}
143+
className="button button--primary"
144144
to={useBaseUrl('getting-started')}
145145
>
146146
Get Started

packages/website/src/pages/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
margin: 1rem 1rem;
3636
}
3737

38+
.buttonCentered {
39+
margin: auto;
40+
}
41+
3842
.buttonPrimary {
3943
border: var(--ifm-button-border-width) solid var(--ifm-button-color);
4044
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy