From 2027d5191cbf036af73d7fe3e26e3985d6445164 Mon Sep 17 00:00:00 2001 From: rexdotsh <65942753+rexdotsh@users.noreply.github.com> Date: Sun, 15 Dec 2024 00:07:12 +0530 Subject: [PATCH] feat: spotify --- src/app.tsx | 2 + src/components/Art/Navigation.tsx | 3 +- src/components/Spotify/index.tsx | 72 +++++++++++++++++++++++++++++++ src/lib/spotify.ts | 30 +++++++++++++ src/routes/api/spotify.ts | 40 +++++++++++++++++ tailwind.config.js | 23 +++++++++- 6 files changed, 168 insertions(+), 2 deletions(-) create mode 100644 src/components/Spotify/index.tsx create mode 100644 src/lib/spotify.ts create mode 100644 src/routes/api/spotify.ts diff --git a/src/app.tsx b/src/app.tsx index a6b8526..6fff791 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -3,6 +3,7 @@ import {FileRoutes} from "@solidjs/start/router"; import {Suspense} from "solid-js"; import "./app.css"; import Footer from "./components/Footer"; +import SpotifyNowPlaying from "./components/Spotify"; export default function App() { return ( @@ -11,6 +12,7 @@ export default function App() { root={(props) => (
{props.children} +
)}> diff --git a/src/components/Art/Navigation.tsx b/src/components/Art/Navigation.tsx index e243c1a..1e1b011 100644 --- a/src/components/Art/Navigation.tsx +++ b/src/components/Art/Navigation.tsx @@ -4,12 +4,13 @@ const Navigation: Component = () => { const links = [ {href: "https://blog.rex.wf", text: "BLOG"}, // {href: "/resume", text: "RESUME"}, + {href: "https://x.com/rexmkv", text: "TWITTER"}, {href: "https://github.com/rexdotsh", text: "GITHUB"}, {href: "https://flora.tf", text: "FLORA"}, ]; return ( -