add avatar

This commit is contained in:
Lee 2023-07-02 12:02:11 +01:00
parent 4e0c74f9f0
commit 0a85026b71
3 changed files with 26 additions and 3 deletions

@ -1,6 +1,7 @@
{ {
"name": "Lee", "name": "Lee",
"description": "I'm a 20-year-old software engineer from the UK, and my true passion lies in creating and exploring the endless possibilities within my homelab.", "description": "I'm a 20-year-old software engineer from the UK, and my true passion lies in creating and exploring the endless possibilities within my homelab.",
"avatar": "https://cdn.fascinated.cc/gqL652.jpg",
"metadata": { "metadata": {
"title": "fascinated.cc", "title": "fascinated.cc",
"description": "I'm a 20-year-old software engineer from the UK" "description": "I'm a 20-year-old software engineer from the UK"

@ -1,4 +1,15 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = {} const nextConfig = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
port: "",
pathname: "/**",
},
],
},
};
module.exports = nextConfig module.exports = nextConfig;

@ -1,3 +1,4 @@
import Image from "next/image";
import Config from "../../config.json"; import Config from "../../config.json";
export default function Home() { export default function Home() {
@ -5,7 +6,17 @@ export default function Home() {
<main className="flex flex-col items-center justify-center w-screen h-screen bg-neutral-900 text-white"> <main className="flex flex-col items-center justify-center w-screen h-screen bg-neutral-900 text-white">
<div className="bg-neutral-800 rounded text-center"> <div className="bg-neutral-800 rounded text-center">
<div className="m-5"> <div className="m-5">
<div className="flex flex-col items-center justify-center">
<Image
src={Config.avatar}
alt="Avatar"
width={120}
height={120}
className="rounded-full"
/>
<div className="mb-3"></div>
<h1 className="text-4xl font-bold">{Config.name}</h1> <h1 className="text-4xl font-bold">{Config.name}</h1>
</div>
<p className="mt-4 text-lg max-w-lg">{Config.description}</p> <p className="mt-4 text-lg max-w-lg">{Config.description}</p>