(feat): replace elements with relevant components

This commit is contained in:
Triston Armstrong 2024-04-07 11:51:08 -05:00
parent 769a3a64fe
commit 58d1c335b8
No known key found for this signature in database
GPG Key ID: FADE6AC6F956FC52

View File

@ -1,7 +1,7 @@
import { useEffect } from "kaioken" import { useEffect } from "kaioken"
import { useStorage } from "./hooks/storageStores" import { useStorage } from "./hooks/storageStores"
import { useStationsStore } from "./hooks/stationStores" import { useStationsStore } from "./hooks/stationStores"
import { MusicPlayer } from "./components/music_player" import { MusicPlayer, Popular, LocalRadio, RecommendedRadio, Navigation } from "./components"
export function App() { export function App() {
const { getStationsFile } = useStorage() const { getStationsFile } = useStorage()
@ -23,20 +23,7 @@ export function App() {
</div> </div>
<div> <div>
<h2 className="text-gray-500 text-sm">Music</h2> <h2 className="text-gray-500 text-sm">Music</h2>
<ul> <Navigation />
<li className="flex gap-2 hover:bg-blue-100 rounded-md p-1 cursor-pointer hover:text-blue-500">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" className="lucide lucide-radio-tower w-[15px]">
<path d="M4.9 16.1C1 12.2 1 5.8 4.9 1.9" />
<path d="M7.8 4.7a6.14 6.14 0 0 0-.8 7.5" />
<circle cx="12" cy="9" r="2" />
<path d="M16.2 4.8c2 2 2.26 5.11.8 7.47" />
<path d="M19.1 1.9a9.96 9.96 0 0 1 0 14.1" />
<path d="M9.5 18h5" />
<path d="m8 22 4-11 4 11" />
</svg>Radio
</li>
</ul>
</div> </div>
<button className="px-4 border border-blue-500 rounded-md text-blue-500 hover:bg-blue-100 w-full">Create New +</button> <button className="px-4 border border-blue-500 rounded-md text-blue-500 hover:bg-blue-100 w-full">Create New +</button>
</div> </div>
@ -45,28 +32,12 @@ export function App() {
{/* Right Section __________*/} {/* Right Section __________*/}
<div className="flex-1 min-h-[95vh] max-h-[95vh] flex h-0 p-2"> <div className="flex-1 min-h-[95vh] max-h-[95vh] flex h-0 p-2">
<div className="bg-gray-200 w-full border rounded-xl p-4 flex-col flex gap-4"> <div className="bg-gray-200 w-full border rounded-xl p-4 flex-col flex gap-4">
{/* Music Player __________*/}
<MusicPlayer /> <MusicPlayer />
<Popular />
{/* Popular Section __________*/}
<div id="middle" className="bg-gray-300 flex-[.8] rounded-xl flex flex-col max-h-[150px]">
<div id="middle-main" className="font-bold p-2 bg-white flex-1 rounded-xl shadow-md">
<h2>Popular</h2>
</div>
</div>
{/* Bottom Section __________*/} {/* Bottom Section __________*/}
<div id="bottom" className="flex-1 rounded-xl flex flex-row gap-4"> <div id="bottom" className="flex-1 rounded-xl flex flex-row gap-4">
{/* Local Radio __________*/} <LocalRadio />
<div id="bottom-l" className="font-bold p-2 bg-white flex-1 rounded-xl shadow-md"> <RecommendedRadio />
<h2>Local Radio</h2>
</div>
{/* Recommended Radio __________*/}
<div id="bottom-r" className="font-bold p-2 bg-white flex-1 rounded-xl shadow-md">
<h2>Recommended For You</h2>
</div>
</div> </div>
</div> </div>
</div> </div>