mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
refactor: relocate sections
This commit is contained in:
parent
3ed610bb46
commit
d672bf6f85
@ -1,9 +1,9 @@
|
||||
import { Container } from '@/components/container';
|
||||
import { useMemo } from 'react';
|
||||
|
||||
import { Container } from '@/components/container';
|
||||
import { sounds } from '@/data/sounds';
|
||||
|
||||
import styles from './about.module.css';
|
||||
import { useMemo } from 'react';
|
||||
|
||||
export function About() {
|
||||
const count = useMemo(() => {
|
||||
@ -22,12 +22,12 @@ export function About() {
|
||||
<h2 className={styles.title}>What is Moodist?</h2>
|
||||
<p className={styles.desc}>
|
||||
Moodist is your gateway to a world of serenity and focus. It's a
|
||||
free and registration-free online ambient sound generator offering{' '}
|
||||
<span>{count}</span> handpicked sounds in various categories, from
|
||||
nature's tranquil melodies to the soothing ambiance of urban
|
||||
life. Whether you're seeking relaxation or a productivity boost,
|
||||
Moodist lets you effortlessly customize your environment with the
|
||||
perfect background sounds.
|
||||
free online ambient sound generator offering <span>{count}</span>{' '}
|
||||
handpicked sounds in various categories, from nature's tranquil
|
||||
melodies to the soothing ambiance of urban life. Whether you're
|
||||
seeking relaxation or a productivity boost, Moodist lets you
|
||||
effortlessly customize your environment with the perfect background
|
||||
sounds.
|
||||
</p>
|
||||
</Container>
|
||||
</div>
|
2
src/components/sections/index.ts
Normal file
2
src/components/sections/index.ts
Normal file
@ -0,0 +1,2 @@
|
||||
export { About as AboutSection } from './about';
|
||||
export { Why as WhySection } from './why';
|
1
src/components/sections/why/index.ts
Normal file
1
src/components/sections/why/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export { Why } from './why';
|
@ -1,4 +1,4 @@
|
||||
.whySection {
|
||||
.why {
|
||||
padding-bottom: 80px;
|
||||
|
||||
& .title {
|
@ -3,9 +3,9 @@ import { Balancer } from 'react-wrap-balancer';
|
||||
|
||||
import { Container } from '@/components/container';
|
||||
|
||||
import styles from './why-section.module.css';
|
||||
import styles from './why.module.css';
|
||||
|
||||
export function WhySection() {
|
||||
export function Why() {
|
||||
const reasons = [
|
||||
{
|
||||
body: 'Moodist is a cost-free solution, offering you high-quality ambient sounds without any financial commitment.',
|
||||
@ -28,7 +28,7 @@ export function WhySection() {
|
||||
];
|
||||
|
||||
return (
|
||||
<div className={styles.whySection}>
|
||||
<div className={styles.why}>
|
||||
<Container>
|
||||
<h2 className={styles.title}>Why use Moodist?</h2>
|
||||
|
@ -1 +0,0 @@
|
||||
export { WhySection } from './why-section';
|
@ -3,15 +3,14 @@ import Layout from '@/layouts/layout.astro';
|
||||
|
||||
import { Hero } from '@/components/hero';
|
||||
import { App } from '@/components/app';
|
||||
import { About } from '@/components/about';
|
||||
import { WhySection } from '@/components/why-section';
|
||||
import { AboutSection, WhySection } from '@/components/sections';
|
||||
---
|
||||
|
||||
<Layout title="Welcome to Astro.">
|
||||
<main>
|
||||
<Hero />
|
||||
<App client:load />
|
||||
<About />
|
||||
<AboutSection />
|
||||
<WhySection />
|
||||
</main>
|
||||
</Layout>
|
||||
|
Loading…
x
Reference in New Issue
Block a user