diff --git a/public/sounds/urban/airport.mp3 b/public/sounds/places/airport.mp3 similarity index 100% rename from public/sounds/urban/airport.mp3 rename to public/sounds/places/airport.mp3 diff --git a/public/sounds/urban/cafe.mp3 b/public/sounds/places/cafe.mp3 similarity index 100% rename from public/sounds/urban/cafe.mp3 rename to public/sounds/places/cafe.mp3 diff --git a/public/sounds/urban/church.mp3 b/public/sounds/places/church.mp3 similarity index 100% rename from public/sounds/urban/church.mp3 rename to public/sounds/places/church.mp3 diff --git a/public/sounds/urban/construction-site.mp3 b/public/sounds/places/construction-site.mp3 similarity index 100% rename from public/sounds/urban/construction-site.mp3 rename to public/sounds/places/construction-site.mp3 diff --git a/public/sounds/urban/temple.mp3 b/public/sounds/places/temple.mp3 similarity index 100% rename from public/sounds/urban/temple.mp3 rename to public/sounds/places/temple.mp3 diff --git a/src/data/sounds.ts b/src/data/sounds.ts index 5a194ec..0f2cb8e 100644 --- a/src/data/sounds.ts +++ b/src/data/sounds.ts @@ -2,6 +2,7 @@ import { nature } from './sounds/nature'; import { rain } from './sounds/rain'; import { animals } from './sounds/animals'; import { urban } from './sounds/urban'; +import { places } from './sounds/places'; import { things } from './sounds/things'; import { noise } from './sounds/noise'; @@ -10,5 +11,5 @@ import type { Categories } from './types'; export const sounds: { categories: Categories; } = { - categories: [nature, rain, animals, urban, things, noise], + categories: [nature, rain, animals, urban, places, things, noise], }; diff --git a/src/data/sounds/places.tsx b/src/data/sounds/places.tsx new file mode 100644 index 0000000..1457905 --- /dev/null +++ b/src/data/sounds/places.tsx @@ -0,0 +1,47 @@ +import { BiSolidCoffeeAlt, BiSolidPlaneAlt } from 'react-icons/bi/index'; +import { FaChurch } from 'react-icons/fa/index'; +import { + MdTempleBuddhist, + MdConstruction, + MdLocationPin, +} from 'react-icons/md/index'; + +import type { Category } from '../types'; + +export const places: Category = { + icon: , + id: 'places', + sounds: [ + { + icon: , + id: 'cafe', + label: 'Cafe', + src: '/sounds/places/cafe.mp3', + }, + { + icon: , + id: 'airport', + label: 'Airport', + src: '/sounds/places/airport.mp3', + }, + { + icon: , + id: 'church', + label: 'Church', + src: '/sounds/places/church.mp3', + }, + { + icon: , + id: 'temple', + label: 'Temple', + src: '/sounds/places/temple.mp3', + }, + { + icon: , + id: 'construction-site', + label: 'Construction Site', + src: '/sounds/places/construction-site.mp3', + }, + ], + title: 'Places', +}; diff --git a/src/data/sounds/urban.tsx b/src/data/sounds/urban.tsx index 59b4132..802d288 100644 --- a/src/data/sounds/urban.tsx +++ b/src/data/sounds/urban.tsx @@ -1,12 +1,10 @@ import { - BiSolidCoffeeAlt, BiSolidTrain, BiSolidPlaneAlt, BiSolidTraffic, } from 'react-icons/bi/index'; -import { FaCity, FaRoad, FaChurch } from 'react-icons/fa/index'; +import { FaCity, FaRoad } from 'react-icons/fa/index'; import { PiRoadHorizonFill, PiSirenBold } from 'react-icons/pi/index'; -import { MdTempleBuddhist, MdConstruction } from 'react-icons/md/index'; import { BsSoundwave, BsPeopleFill } from 'react-icons/bs/index'; import { GiSubmarine, GiSailboat } from 'react-icons/gi/index'; @@ -16,12 +14,6 @@ export const urban: Category = { icon: , id: 'urban', sounds: [ - { - icon: , - id: 'cafe', - label: 'Cafe', - src: '/sounds/urban/cafe.mp3', - }, { icon: , id: 'highway', @@ -52,42 +44,18 @@ export const urban: Category = { label: 'Inside a Train', src: '/sounds/urban/inside-a-train.mp3', }, - { - icon: , - id: 'airport', - label: 'Airport', - src: '/sounds/urban/airport.mp3', - }, { icon: , id: 'airplane', label: 'Airplane', src: '/sounds/urban/airplane.mp3', }, - { - icon: , - id: 'church', - label: 'Church', - src: '/sounds/urban/church.mp3', - }, - { - icon: , - id: 'temple', - label: 'Temple', - src: '/sounds/urban/temple.mp3', - }, { icon: , id: 'busy-street', label: 'Busy Street', src: '/sounds/urban/busy-street.mp3', }, - { - icon: , - id: 'construction-site', - label: 'Construction Site', - src: '/sounds/urban/construction-site.mp3', - }, { icon: , id: 'submarine',