diff --git a/app/components/station-player.tsx b/app/components/station-player.tsx new file mode 100644 index 0000000..1542925 --- /dev/null +++ b/app/components/station-player.tsx @@ -0,0 +1,20 @@ +import type { StationWithTags } from "~/models/station.server"; +import type { ConvertDatesToStrings } from "~/utils"; + +export type StationPlayerProps = { + station: ConvertDatesToStrings> +}; + +export function StationPlayer({ station }: StationPlayerProps) { + return ( +
+

Now Playing: {station.name}

+ + +
+ ); +} diff --git a/app/components/stations-gallery.tsx b/app/components/stations-gallery.tsx index 1eb7c9a..5d2fc4e 100644 --- a/app/components/stations-gallery.tsx +++ b/app/components/stations-gallery.tsx @@ -23,10 +23,10 @@ export function StationsGallery({ stations, tag, channel }: StationsGalleryProps } return ( -
+
{stations.map((station) => { return ( -
+
Radio Station

diff --git a/app/routes/listen.channel.$channel.$station.tsx b/app/routes/listen.channel.$channel.$station.tsx index 80194da..c4b3059 100644 --- a/app/routes/listen.channel.$channel.$station.tsx +++ b/app/routes/listen.channel.$channel.$station.tsx @@ -1,6 +1,7 @@ import type { LoaderArgs } from "@remix-run/node"; import { json } from "@remix-run/node"; import { useLoaderData } from "@remix-run/react"; +import { StationPlayer } from "~/components/station-player"; import { getStationById } from "~/models/station.server"; import { notFound } from "~/utils"; @@ -19,15 +20,8 @@ export async function loader({ params }: LoaderArgs) { export default function ListenChanelStation() { const { station } = useLoaderData(); - return ( -
- - -
+ ); }