-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completely converted to next 14 and added portfolio
- Loading branch information
1 parent
d97e9c8
commit 26af526
Showing
43 changed files
with
4,476 additions
and
3,328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Metadata, Viewport } from "next" | ||
import { ReactNode } from "react" | ||
import Footer from "../components/Footer" | ||
import Navbar from "../components/Navbar" | ||
import favicon from "../public/img/icon.png" | ||
import "../styles/global.scss" | ||
|
||
export const metadata: Metadata = { | ||
title: "TKDKid1000", | ||
description: "Web developer, backend developer, filmmaker, student, photographer.", | ||
icons: favicon.src | ||
} | ||
|
||
export const viewport: Viewport = { | ||
width: "device-width", | ||
initialScale: 1 | ||
} | ||
|
||
export default function RootLayout({ children }: { children: ReactNode }) { | ||
return ( | ||
<html lang="en"> | ||
<body className="bg-gray-200 dark:bg-zinc-900"> | ||
<Navbar /> | ||
<main> | ||
{children} | ||
<Footer /> | ||
</main> | ||
</body> | ||
</html> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
import dynamic from "next/dynamic" | ||
import BlogPost, { Post } from "../components/BlogPost" | ||
import FadeIn from "../components/FadeIn" | ||
import Homepage from "../components/Homepage" | ||
import { sanity } from "../lib/sanity" | ||
import styles from "../styles/space.module.scss" | ||
|
||
const OuterSpace = dynamic(() => import("../components/OuterSpace")) | ||
const RecentActivity = dynamic(() => import("../components/RecentActivity")) | ||
|
||
async function getData() { | ||
const query = ` | ||
*[_type == "post" && !(_id in path("drafts.**"))] | order(_updatedAt desc) { | ||
title, description, | ||
"imageUrl": image.asset->url, | ||
author->{ | ||
name, description, | ||
"imageUrl": image.asset->url | ||
} | ||
, | ||
tags, _updatedAt, | ||
"slug": slug.current | ||
}[0..6]` | ||
const posts: Post[] = await sanity.fetch(query) | ||
return posts | ||
} | ||
|
||
export default async function Home() { | ||
const posts = await getData() | ||
return ( | ||
<div> | ||
<div className={styles.spaceBackground}> | ||
<OuterSpace hiddenThreshold={500} /> | ||
</div> | ||
<Homepage /> | ||
<div className="flex flex-col lg:flex-row px-6 xl:px-32 pb-3"> | ||
<div className="flex flex-col dark:text-white lg:w-7/12"> | ||
<div> | ||
<h1 className="text-4xl font-bold mb-2">Hewo!</h1> | ||
<p> | ||
My name is TKDKid1000. Well, that's just an alias, but I go by that | ||
online. | ||
</p> | ||
<br /> | ||
<p> | ||
I wouldn't call myself a professional, but I'm no ameteur | ||
developer. | ||
</p> | ||
<br /> | ||
<p> | ||
I'm trained mostly on frontend web development. I primarily use | ||
React for ui development, but have also dabbled in Vue and Svelte. | ||
</p> | ||
<br /> | ||
<p> | ||
My other skills and hobbies include solo filmmaking, and backpacking. I | ||
also enjoy distance running. | ||
</p> | ||
</div> | ||
<div className="flex items-center py-5"> | ||
<div className="flex-grow border-t border-gray-400"></div> | ||
</div> | ||
</div> | ||
<div className="flex flex-col lg:w-5/12"> | ||
{posts.slice(Math.max(posts.length - 3, 1)).map((p) => ( | ||
<FadeIn key={p.slug}> | ||
<BlogPost post={p} size={"sm"} /> | ||
</FadeIn> | ||
))} | ||
</div> | ||
</div> | ||
<div className="flex flex-col sm:flex-row px-8 pb-3"> | ||
{posts.slice(0, 2).map((p, i) => ( | ||
<FadeIn key={p.slug} delay={i * 100}> | ||
<BlogPost post={p} size={"md"} /> | ||
</FadeIn> | ||
))} | ||
</div> | ||
<RecentActivity username="TKDKid1000" /> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.