Skip to content

Commit

Permalink
style: add gradient background
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Nov 1, 2023
1 parent 8cceb6e commit 77fed03
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 10 deletions.
23 changes: 23 additions & 0 deletions src/components/sections/ready/ready.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
.ready {
& .wrapper {
position: relative;
padding: 0 20px 40px;
border-radius: 0 0 20px 20px;
background: linear-gradient(transparent, var(--color-neutral-100));

&::after {
position: absolute;
bottom: 0;
left: 50%;
width: 70%;
height: 1px;
background: linear-gradient(
90deg,
transparent,
var(--color-neutral-300),
transparent
);
content: '';
transform: translateX(-50%);
}
}

& .iconContainer {
display: flex;
flex-direction: column;
Expand Down
22 changes: 12 additions & 10 deletions src/components/sections/ready/ready.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ export function Ready() {
return (
<div className={styles.ready}>
<Container>
<div className={styles.iconContainer}>
<div className={styles.tail} />
<div className={styles.icon}>
<RiSparkling2Line />
<div className={styles.wrapper}>
<div className={styles.iconContainer}>
<div className={styles.tail} />
<div className={styles.icon}>
<RiSparkling2Line />
</div>
</div>
</div>

<h2 className={styles.title}>Are you ready?</h2>
<p className={styles.desc}>Create your calm oasis in seconds!</p>
<a className={styles.button} href="#app">
Use Moodist
</a>
<h2 className={styles.title}>Are you ready?</h2>
<p className={styles.desc}>Create your calm oasis in seconds!</p>
<a className={styles.button} href="#app">
Use Moodist
</a>
</div>
</Container>
</div>
);
Expand Down

0 comments on commit 77fed03

Please sign in to comment.