diff --git a/src/components/MainLayout.tsx b/src/components/MainLayout.tsx deleted file mode 100644 index 6cc8541..0000000 --- a/src/components/MainLayout.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { ThemeSwitcher } from '@/components/ThemeSwitcher'; -import { NowPlayingCard } from '@/components/SpotifyCard'; -import { SocialLayout } from '@/components/SocialLayout'; -import { Toaster } from 'react-hot-toast'; -import FadeIn from 'react-fade-in'; - -export const MainLayout = () => { - return ( - <> - - - - - albert - - {Math.floor( - (new Date().getTime() - new Date('2004-07-22').getTime()) / - (1000 * 60 * 60 * 24 * 365.25), - )} - -year-old system administrator - - - - - - - - > - ); -}; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 3679327..eb0233d 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,5 +1,27 @@ -import { MainLayout } from '@/components/MainLayout'; +import { ThemeSwitcher } from '@/components/ThemeSwitcher'; +import { NowPlayingCard } from '@/components/SpotifyCard'; +import { SocialLayout } from '@/components/SocialLayout'; +import { Toaster } from 'react-hot-toast'; +import age from '@/utils/age'; +import FadeIn from 'react-fade-in'; export default function Home () { - return ; + return ( + <> + + + + + albert + + {age()}-year-old system administrator + + + + + + + + > + ); }
- {Math.floor( - (new Date().getTime() - new Date('2004-07-22').getTime()) / - (1000 * 60 * 60 * 24 * 365.25), - )} - -year-old system administrator -
+ {age()}-year-old system administrator +