From f66a6ffde770992353a5b21fe65c20fe50ab4328 Mon Sep 17 00:00:00 2001 From: MAZE Date: Fri, 9 Feb 2024 17:29:05 +0330 Subject: [PATCH] fix: make sound count dynamic --- src/components/about/about.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/about/about.tsx b/src/components/about/about.tsx index 0c4f782..c4e4c6d 100644 --- a/src/components/about/about.tsx +++ b/src/components/about/about.tsx @@ -2,13 +2,16 @@ import { FaQuestion } from 'react-icons/fa6/index'; import { Balancer } from 'react-wrap-balancer'; import { Container } from '@/components/container'; +import { count as soundCount } from '@/lib/sounds'; import styles from './about.module.css'; export function About() { + const count = soundCount(); + 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.', + `Dive into an expansive library of ${count} 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!", ];