feat: add about section

This commit is contained in:
MAZE 2024-02-08 22:44:22 +03:30
parent 52176bc3f9
commit d725d59703
5 changed files with 107 additions and 1 deletions

View File

@ -0,0 +1,61 @@
.about {
margin-top: 80px;
& .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;
align-items: center;
justify-content: center;
width: 45px;
height: 45px;
font-size: var(--font-md);
background-color: var(--color-neutral-100);
border: 1px solid var(--color-neutral-300);
border-radius: 50%;
}
}
& .title {
margin-bottom: 8px;
font-family: var(--font-display);
font-size: var(--font-lg);
font-weight: 600;
text-align: center;
}
& .desc {
width: 100%;
max-width: 450px;
margin: 0 auto;
line-height: 1.6;
color: var(--color-foreground-subtle);
text-align: center;
&:not(:last-of-type) {
margin-bottom: 24px;
}
}
& .divider {
width: 80px;
height: 1px;
margin: 0 auto 24px;
background: linear-gradient(
90deg,
transparent,
var(--color-neutral-300),
transparent
);
}
}

View File

@ -0,0 +1,42 @@
import { FaQuestion } from 'react-icons/fa6/index';
import { Balancer } from 'react-wrap-balancer';
import { Container } from '@/components/container';
import styles from './about.module.css';
export function About() {
const paragraphs = [
'Craving a calming escape from the daily grind? Do you need the perfect soundscape to boost your focus or lull you into peaceful sleep? Look no further than Moodist, your free and open-source ambient sound generator! Ditch the subscriptions and registrations with Moodist, you unlock a world of soothing and immersive audio experiences, entirely for free.',
'Dive into an expansive library of 75 carefully curated sounds. Nature lovers will find solace in the gentle murmur of streams, the rhythmic crash of waves, or the crackling warmth of a campfire. Cityscapes come alive with the soft hum of cafes, the rhythmic clatter of trains, or the calming white noise of traffic. And for those seeking deeper focus or relaxation, Moodist offers binaural beats and color noise designed to enhance your state of mind.',
'The beauty of Moodist lies in its simplicity and customization. No complex menus or confusing options just choose your desired sounds, adjust the volume balance, and hit play. Want to blend the gentle chirping of birds with the soothing sound of rain? No problem! Layer as many sounds as you like to create your personalized soundscape oasis.',
"Whether you're looking to unwind after a long day, enhance your focus during work, or lull yourself into a peaceful sleep, Moodist has the perfect soundscape waiting for you. The best part? It's completely free and open-source, so you can enjoy its benefits without any strings attached. Start using Moodist today and discover your new haven of tranquility and focus!",
];
return (
<section className={styles.about}>
<Container>
<div className={styles.iconContainer}>
<div className={styles.tail} />
<div className={styles.icon}>
<FaQuestion />
</div>
</div>
<h1 className={styles.title}>Free Ambient Sounds</h1>
{paragraphs.map((paragraph, index) => (
<>
<p className={styles.desc} key={index}>
<Balancer>{paragraph}</Balancer>
</p>
{index < paragraphs.length - 1 && (
<div className={styles.divider} />
)}
</>
))}
</Container>
</section>
);
}

View File

@ -0,0 +1 @@
export { About } from './about';

View File

@ -1,5 +1,5 @@
.source {
margin-top: 80px;
margin-top: 40px;
& .wrapper {
position: relative;

View File

@ -5,6 +5,7 @@ import { Hero } from '@/components/hero';
import { App } from '@/components/app';
import { Source } from '@/components/source';
import { Donate } from '@/components/donate';
import { About } from '@/components/about';
import { Footer } from '@/components/footer';
---
@ -12,6 +13,7 @@ import { Footer } from '@/components/footer';
<Donate />
<Hero />
<App client:load />
<About client:load />
<Source />
<Footer />
</Layout>