mirror of
https://github.com/skidoodle/albert.lol.git
synced 2026-05-01 12:44:12 +02:00
app router
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
"use client";
|
||||
|
||||
import { ThemeSwitcher } from "@/components/ThemeSwitcher";
|
||||
import { NowPlayingCard } from "@/components/SpotifyCard";
|
||||
import { SocialLayout } from "@/components/SocialLayout";
|
||||
import { AboutMe } from "@/components/AboutMe";
|
||||
import { Toaster } from "react-hot-toast";
|
||||
import { motion } from "framer-motion";
|
||||
import { Background } from "@/components/Background";
|
||||
import { Fragment } from "react";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<Fragment>
|
||||
<Background />
|
||||
<ThemeSwitcher />
|
||||
<Toaster position="top-left" />
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.5 }}
|
||||
>
|
||||
<div className="mx-auto mt-44 flex max-w-3xl flex-col mb-12 z-10 relative">
|
||||
<motion.div
|
||||
className="flex flex-col lg:flex-row items-center justify-center lg:justify-between space-y-10 lg:space-y-5 lg:space-x-10"
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
transition={{ duration: 0.5 }}
|
||||
>
|
||||
<motion.div
|
||||
className="flex flex-col items-center text-center"
|
||||
initial={{ scale: 0.9 }}
|
||||
animate={{ scale: 1 }}
|
||||
transition={{ duration: 0.5 }}
|
||||
>
|
||||
<h1 className="text-[7.5rem] leading-none font-bold dark:text-[--dark-text] text-[--light-text]">
|
||||
albert
|
||||
</h1>
|
||||
<SocialLayout />
|
||||
<NowPlayingCard />
|
||||
</motion.div>
|
||||
<AboutMe />
|
||||
</motion.div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user