Skip to content

Commit

Permalink
feat: improve hero buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
su8ru committed Nov 14, 2022
1 parent e1cc20a commit c024321
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
7 changes: 2 additions & 5 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,13 @@ function Home() {
<p className={styles.heroTitle}>in one command</p>
<p className={clsx(styles.heroTitle, styles.heroTitleBold)}>All you need is TypeScript</p>
<div className={styles.buttons}>
<Link
className={clsx('button button--primary button--lg', styles.getStarted)}
to={useBaseUrl('docs/')}
>
<Link className="button button--primary button--lg" to={useBaseUrl('docs/')}>
Get Started
</Link>
<Link
className={clsx(
'button button--outline button--primary button--lg',
styles.getStarted
styles.startTutorial
)}
to={useBaseUrl('/docs/tutorial')}
>
Expand Down
20 changes: 14 additions & 6 deletions src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@
margin: 10px 0 30px 0;
}

.buttons {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
}

[data-theme='dark'] .startTutorial {
background: rgba(0, 0, 0, 0.3);
}
[data-theme='dark'] .startTutorial:hover {
color: #fff;
}

/* How to setup */
.setupWrapper {
display: flex;
Expand Down Expand Up @@ -218,12 +232,6 @@
margin: 0;
}

.buttons {
display: flex;
align-items: center;
gap: 8px;
}

.features {
padding: 2rem 0;
}
Expand Down

0 comments on commit c024321

Please sign in to comment.