| 1 | import Transition from "@/components/transition"; |
| 2 | import { AiOutlineRight, AiOutlineMail |
| 3 | import { FiGithub } |
| 4 | import { Projects } |
| 5 | import Badge from "@/components/badge |
| 6 | import Image from "next/image |
| 7 | import Link from "next/link |
| 8 | import { allWritings } |
| 9 | import Nextjs from "@/icons/next |
| 10 | import NestJS from "@/icons/nest |
| 11 | import Prisma from "@/icons/prisma |
| 12 | import Grafana from "@/icons/grafana |
| 13 | import Flutter from "@/icons/flutter |
| 14 | |
| 15 | export const metadata = |
| 16 | title: "Gurpal Singh | PhantomKnight287", |
| 17 | description: "I am a Full Stack Web and App Developer from India.", |
| 18 | openGraph: { |
| 19 | title: "Gurpal Singh | PhantomKnight287", |
| 20 | description: "I am a Full Stack Web and App Developer from India.", |
| 21 | // @ts-ignore |
| 22 | type: "website", |
| 23 | url: "https://phantomknight287.github.io/", |
| 24 | site_name: "Gurpal Singh | PhantomKnight287", |
| 25 | images: [ |
| 26 | { |
| 27 | url: "https://github.com/phantomknight287.png", |
| 28 | width: 200, |
| 29 | height: 200, |
| 30 | alt: "PhantomKnight287", |
| 31 | }, |
| 32 | ], |
| 33 | }, |
| 34 | twitter: { |
| 35 | site: "@PhantomKnight287", |
| 36 | title: "Gurpal Singh | PhantomKnight287", |
| 37 | description: "I am a Full Stack Web and App Developer from India.", |
| 38 | card: "summary_large_image", |
| 39 | creator: "gurpalsingh287", |
| 40 | images: [ |
| 41 | { |
| 42 | url: "https://github.com/phantomknight287.png", |
| 43 | width: 200, |
| 44 | height: 200, |
| 45 | }, |
| 46 | ], |
| 47 | }, |
| 48 | }; |
| 49 | |
| 50 | export default function Home |
| 51 | return ( |
| 52 | <div className="flex mt-5 flex-col max-w-[600px] mx-auto p-5 lg:p-0 |
| 53 | <div className="container |
| 54 | <h1 className="text-xl font-bold text-gray-400 |
| 55 | <span className=""> |
| 56 | <Transition /> |
| 57 | </h1> |
| 58 | <p className="mt-5 text-xl text-gray-400 |
| 59 | I'm Gurpal Singh, a{" "} |
| 60 | {Math.floor( |
| 61 | (new Date(). |
| 62 | (1000 * 60 * |
| 63 | )}{" "} |
| 64 | year old developer living in India. I am a self-taught developer who |
| 65 | loves to code and make things. |
| 66 | </p> |
| 67 | <p className="mt-5 text-xl text-gray-400 |
| 68 | Currently working in a company and messing with{" "} |
| 69 | <Badge href=" |
| 70 | <Nextjs className=" |
| 71 | </Badge> |
| 72 | ,{" "} |
| 73 | <Badge href=" |
| 74 | <NestJS className=" |
| 75 | </Badge> |
| 76 | ,{" "} |
| 77 | <Badge href=" |
| 78 | <Prisma className=" |
| 79 | Prisma |
| 80 | </Badge> |
| 81 | ,{" "} |
| 82 | <Badge href=" |
| 83 | <Grafana className=" |
| 84 | Grafana |
| 85 | </Badge>{" " |
| 86 | and learning{" "} |
| 87 | <Badge href={ |
| 88 | <Flutter className=" |
| 89 | Flutter |
| 90 | </Badge>. |
| 91 | </p> |
| 92 | |
| 93 | <div className="flex items-start mt-5 w-full justify-start flex-col |
| 94 | {/* <div className="flex flex-row items-center justify-start"> |
| 95 | <div className="aspect-square flex-none h-[10px] overflow-hidden relative w-2.5 will-change-transform bg-green-500 rounded-full"></div> |
| 96 | <div className="flex flex-col justify-start shrink-0 opacity-100 ml-2 "> |
| 97 | <p className="text-white">Available for new opportunities</p> |
| 98 | </div> |
| 99 | </div> */} |
| 100 | <br /> |
| 101 | <div className="flex flex-row mt-3 gap-3 |
| 102 | <a |
| 103 | href="https://github.com/phantomknight287" |
| 104 | target="_blank" |
| 105 | rel="noopener noreferrer" |
| 106 | className="flex flex-row items-center justify-start gap-2.5 |
| 107 | text-white transition duration-300 ease-in-out |
| 108 | bg-neutral-700 hover:bg-neutral-900 rounded-md px-3 py-2.5 |
| 109 | " |
| 110 | > |
| 111 | <FiGithub className=" |
| 112 | </a> |
| 113 | <a |
| 114 | href="mailto:phantomknight287@proton.me" |
| 115 | target="_blank" |
| 116 | rel="noopener noreferrer" |
| 117 | className="flex flex-row items-center justify-start gap-2.5 |
| 118 | text-white transition duration-300 ease-in-out |
| 119 | bg-neutral-700 hover:bg-neutral-900 rounded-md px-3 py-2.5 |
| 120 | " |
| 121 | > |
| 122 | <AiOutlineMail className=" |
| 123 | </a> |
| 124 | </div> |
| 125 | </div> |
| 126 | <div className="w-full h-[1px] |
| 127 | <div className="mt-5 |
| 128 | <h1 className="text-2xl text-white mt-5 mb-5 |
| 129 | <div className="flex flex-col |
| 130 | {Projects.map(( |
| 131 | <Link |
| 132 | className="proj group" |
| 133 | key={project.name |
| 134 | href={`/project/${project |
| 135 | > |
| 136 | <article className="flex flex-row gap-0 items-start justify-between lg:justify-start mt-1 mb-1 w-full overflow-hidden |
| 137 | <div className="flex flex-row gap-2 justify-start opacity-100 flex-none shrink-0 h-auto relative whitespace-pre w-auto mr-3 |
| 138 | <h1 className="text-lg leading-[1.3em] text-left text-gray-300 group-hover:text-white inline-flex underline |
| 139 | {project.name} |
| 140 | </h1> |
| 141 | <p className="line-clamp-1 text-gray-400 max-w-full |
| 142 | {project.smallDescription} |
| 143 | </p> |
| 144 | </div> |
| 145 | </article> |
| 146 | </Link> |
| 147 | ))} |
| 148 | </div> |
| 149 | </div> |
| 150 | <div className="mt-5 |
| 151 | <h1 className="text-2xl text-white mt-5 mb-5 |
| 152 | <div className="flex flex-col |
| 153 | {allWritings.map(( |
| 154 | <Link |
| 155 | className="proj group" |
| 156 | key={writing._meta |
| 157 | href={`/writings/${writing |
| 158 | > |
| 159 | <article className="flex flex-row gap-0 items-start justify-between lg:justify-start mt-1 mb-1 w-full overflow-hidden |
| 160 | <div className="flex flex-row gap-2 justify-start opacity-100 flex-none shrink-0 h-auto relative whitespace-pre w-auto mr-3 |
| 161 | <h1 className="text-lg leading-[1.3em] text-left text-gray-300 group-hover:text-white inline-flex underline line-clamp-1 overflow-ellipsis |
| 162 | {writing.title} |
| 163 | </h1> |
| 164 | </div> |
| 165 | </article> |
| 166 | </Link> |
| 167 | ))} |
| 168 | </div> |
| 169 | </div> |
| 170 | </div> |
| 171 | </div> |
| 172 | ); |
| 173 | } |