Skip to content

Commit

Permalink
feat: add ready section
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Nov 1, 2023
1 parent 1f24812 commit e372d2f
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export function App() {
<SnackbarProvider>
<StoreConsumer>
<Container>
<div id="app" />
<Buttons />
<Categories categories={allCategories} />
</Container>
Expand Down
1 change: 1 addition & 0 deletions src/components/sections/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { About as AboutSection } from './about';
export { Why as WhySection } from './why';
export { Ready as ReadySection } from './ready';
1 change: 1 addition & 0 deletions src/components/sections/ready/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Ready } from './ready';
61 changes: 61 additions & 0 deletions src/components/sections/ready/ready.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.ready {
& .iconContainer {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 15px;

& .tail {
width: 1px;
height: 75px;
background: linear-gradient(transparent, var(--color-neutral-300));
}

& .icon {
display: flex;
width: 45px;
height: 45px;
align-items: center;
justify-content: center;
border: 1px solid var(--color-neutral-300);
border-radius: 50%;
background-color: var(--color-neutral-100);
color: #fbbf24;
font-size: var(--font-md);
}
}

& .title {
margin-bottom: 12px;
font-family: var(--font-display);
font-size: var(--font-lg);
font-weight: 600;
text-align: center;
}

& .desc {
color: var(--color-foreground-subtle);
text-align: center;
}

& .button {
display: flex;
width: 120px;
height: 40px;
align-items: center;
justify-content: center;
border: none;
border-radius: 100px;
border-top: 2px solid var(--color-neutral-950);
border-bottom: 3px solid var(--color-neutral-600);
margin: 24px auto 0;
background-color: var(--color-neutral-700);
color: var(--color-neutral-200);
cursor: pointer;
font-family: var(--font-heading);
font-size: var(--font-sm);
line-height: 0;
outline: none;
text-decoration: none;
}
}
26 changes: 26 additions & 0 deletions src/components/sections/ready/ready.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { RiSparkling2Line } from 'react-icons/ri';

import { Container } from '@/components/container';

import styles from './ready.module.css';

export function Ready() {
return (
<div className={styles.ready}>
<Container>
<div className={styles.iconContainer}>
<div className={styles.tail} />
<div className={styles.icon}>
<RiSparkling2Line />
</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>
</Container>
</div>
);
}
3 changes: 2 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Layout from '@/layouts/layout.astro';
import { Hero } from '@/components/hero';
import { App } from '@/components/app';
import { AboutSection, WhySection } from '@/components/sections';
import { AboutSection, WhySection, ReadySection } from '@/components/sections';
---

<Layout title="Welcome to Astro.">
Expand All @@ -12,6 +12,7 @@ import { AboutSection, WhySection } from '@/components/sections';
<App client:load />
<AboutSection />
<WhySection />
<ReadySection />
</main>
</Layout>

Expand Down
4 changes: 4 additions & 0 deletions src/styles/base/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
font: inherit;
}

html {
scroll-behavior: smooth;
}

body {
background-color: var(--color-neutral-50);
color: var(--color-foreground);
Expand Down

0 comments on commit e372d2f

Please sign in to comment.