diff --git a/app/page.tsx b/app/page.tsx index 8917885..a21e796 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -76,6 +76,7 @@ import algoliasearch from "algoliasearch/lite"; // import algoliasearch from "algoliasearch"; import { InstantSearch , SearchBox , Hits, Highlight } from "react-instantsearch"; import Post from "@/components/Post"; +import { Sidebar } from "@/components/DesktopSidebar"; type Input = z.infer; @@ -568,13 +569,16 @@ export default function Home() { { return ( -
+
<> {/*

Your feed

*/} -
+
{/* */} +
+ +
@@ -600,7 +604,7 @@ export default function Home() { {/* subreddit info */} -
+
{/*

diff --git a/components/DesktopSidebar.tsx b/components/DesktopSidebar.tsx new file mode 100644 index 0000000..bf1e11c --- /dev/null +++ b/components/DesktopSidebar.tsx @@ -0,0 +1,219 @@ +import { cn } from "@/lib/utils" +import { Button } from "@/components/ui/button" +import { ScrollArea } from "@/components/ui/scroll-area" + +// import { Playlist } from "../data/playlists" + +type Playlist = [ + "Recently Added", + "Recently Played", + "Top Songs", + "Top Albums", + "Top Artists", + "Logic Discography", + "Bedtime Beats", + "Feeling Happy", + "I miss Y2K Pop", + "Runtober", + "Mellow Days", + "Eminem Essentials", +] + +interface SidebarProps extends React.HTMLAttributes { + playlists: Playlist[] +} + +export function Sidebar({ className, playlists }: SidebarProps) { + return ( +

+
+
+

+ Discover +

+
+ + + +
+
+
+

+ Library +

+
+ + + + + +
+
+
+

+ Playlists +

+ +
+ {playlists?.map((playlist, i) => ( + + ))} +
+
+
+
+
+ ) +} \ No newline at end of file