mirror of
https://github.com/remvze/moodist.git
synced 2025-11-05 20:13:05 -05:00
feat: add CTA button
This commit is contained in:
parent
3205145d54
commit
0e12a5203e
@ -17,6 +17,10 @@
|
|||||||
transparent
|
transparent
|
||||||
);
|
);
|
||||||
|
|
||||||
|
&:last-of-type {
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
& .counter {
|
& .counter {
|
||||||
width: max-content;
|
width: max-content;
|
||||||
padding: 6px 16px;
|
padding: 6px 16px;
|
||||||
@ -45,4 +49,42 @@
|
|||||||
color: var(--color-foreground-subtle);
|
color: var(--color-foreground-subtle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 12px 16px;
|
||||||
|
margin-top: 20px;
|
||||||
|
font-size: var(--font-sm);
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--color-foreground);
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: transparent;
|
||||||
|
border: 1px solid var(--color-neutral-200);
|
||||||
|
border-radius: 50px;
|
||||||
|
outline: none;
|
||||||
|
transition: 0.2s;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
top: -1px;
|
||||||
|
left: 50%;
|
||||||
|
width: 70%;
|
||||||
|
height: 1px;
|
||||||
|
content: '';
|
||||||
|
background: linear-gradient(
|
||||||
|
90deg,
|
||||||
|
transparent,
|
||||||
|
var(--color-neutral-300),
|
||||||
|
transparent
|
||||||
|
);
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--color-neutral-100);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,6 +29,12 @@ export function About() {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const handleClick = () => {
|
||||||
|
const app = document.getElementById('app');
|
||||||
|
|
||||||
|
app?.scrollIntoView();
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className={styles.about}>
|
<section className={styles.about}>
|
||||||
<div className={styles.effect} />
|
<div className={styles.effect} />
|
||||||
@ -44,6 +50,10 @@ export function About() {
|
|||||||
<p className={styles.body}>{paragraph.body}</p>
|
<p className={styles.body}>{paragraph.body}</p>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
|
<button className={styles.button} onClick={handleClick}>
|
||||||
|
Use Moodist
|
||||||
|
</button>
|
||||||
</Container>
|
</Container>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
.source {
|
.source {
|
||||||
/* margin-top: 80px; */
|
/* margin-top: 80px; */
|
||||||
|
|
||||||
margin-top: 20px;
|
margin-top: 40px;
|
||||||
|
|
||||||
& .wrapper {
|
& .wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user