Skip to content

Commit 3349edb

Browse files
committed
added second button UI and slider completed
1 parent 7ee38b1 commit 3349edb

2 files changed

Lines changed: 29 additions & 5 deletions

File tree

docs/src/pages/index.module.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929

3030
.sliderContainer {
31-
margin-top: 32px;
31+
margin-top: 86px;
3232
}
3333

3434
.imageWrapper {
@@ -41,3 +41,19 @@
4141
height: auto;
4242
border-radius: 12px;
4343
}
44+
45+
.buttonsContainer {
46+
display: flex;
47+
justify-content: center;
48+
gap: 3rem;
49+
}
50+
51+
.buttonReadDocs {
52+
width: 160px;
53+
}
54+
55+
.buttonTryIt {
56+
width: 160px;
57+
background-color: #2f2f2f;
58+
color: #ffffff !important;
59+
}

docs/src/pages/index.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ function HomepageHeader() {
1818
autoplaySpeed: 3000,
1919
dots: true,
2020
infinite: true,
21-
pauseOnHover: false,
2221
responsive: [
2322
{
2423
breakpoint: 1000,
@@ -47,9 +46,18 @@ function HomepageHeader() {
4746
{siteConfig.title}
4847
</Heading>
4948
<p className="hero__subtitle">{siteConfig.tagline}</p>
50-
<div className={styles.buttons}>
51-
<Link className="button button--secondary button--lg" to="/docs/overview">
52-
See docs
49+
<div className={styles.buttonsContainer}>
50+
<Link
51+
className={clsx('button button--secondary button--lg', styles.buttonReadDocs)}
52+
to="/docs/overview"
53+
>
54+
Read docs
55+
</Link>
56+
<Link
57+
className={clsx('button button--secondary button--lg', styles.buttonTryIt)}
58+
to="/docs/overview"
59+
>
60+
Try it
5361
</Link>
5462
</div>
5563
<div className={styles.sliderContainer}>

0 commit comments

Comments
 (0)