From 77bbd2afdab5451652b3b2c59dddc6bbf554ffbe Mon Sep 17 00:00:00 2001 From: Bochkovskyi Date: Mon, 12 Feb 2024 10:04:44 +0200 Subject: [PATCH 01/22] add hero background image --- public/hero-bg.svg | 1 + src/components/sections/hero/hero.tsx | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 public/hero-bg.svg diff --git a/public/hero-bg.svg b/public/hero-bg.svg new file mode 100644 index 0000000..6b64794 --- /dev/null +++ b/public/hero-bg.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/sections/hero/hero.tsx b/src/components/sections/hero/hero.tsx index 79b7344..1d323ad 100644 --- a/src/components/sections/hero/hero.tsx +++ b/src/components/sections/hero/hero.tsx @@ -3,6 +3,7 @@ import Content from '@/components/ui/content' import Heading from '@/components/ui/heading' import Socials from '@/components/ui/socials' import { cn } from '@/utils' +import Image from 'next/image' import Link from 'next/link' import { FC, HTMLAttributes } from 'react' @@ -17,8 +18,15 @@ const Hero: FC = ({ className, ...props }) => { )} {...props} > + Background
From bb65424f80c7d2f48d5918420cc364419e4a3f44 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 13:40:50 +0000 Subject: [PATCH 02/22] Bump @types/node from 20.11.16 to 20.11.17 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.16 to 20.11.17. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ff2764e..cbaee54 100644 --- a/package-lock.json +++ b/package-lock.json @@ -966,9 +966,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.11.16", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.16.tgz", - "integrity": "sha512-gKb0enTmRCzXSSUJDq6/sPcqrfCv2mkkG6Jt/clpn5eiCbKTY+SgZUxo+p8ZKMof5dCp9vHQUAB7wOUTod22wQ==", + "version": "20.11.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.17.tgz", + "integrity": "sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==", "dev": true, "dependencies": { "undici-types": "~5.26.4" From 8eb5653452ab7380c26a1792228bff06382d5cf9 Mon Sep 17 00:00:00 2001 From: Bochkovskyi Date: Mon, 12 Feb 2024 19:42:37 +0200 Subject: [PATCH 03/22] update styling --- src/components/header/header-navbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/header/header-navbar.tsx b/src/components/header/header-navbar.tsx index 92d3a21..9e9d8bb 100644 --- a/src/components/header/header-navbar.tsx +++ b/src/components/header/header-navbar.tsx @@ -17,8 +17,8 @@ const HeaderNavbar: FC = ({ className, ...props }) => { return ( diff --git a/src/components/sections/hero/hero.tsx b/src/components/sections/hero/hero.tsx index 1d323ad..8ba18bc 100644 --- a/src/components/sections/hero/hero.tsx +++ b/src/components/sections/hero/hero.tsx @@ -2,6 +2,7 @@ import { buttonVariants } from '@/components/ui/button' import Content from '@/components/ui/content' import Heading from '@/components/ui/heading' import Socials from '@/components/ui/socials' +import { LINK } from '@/types/enums/Link' import { cn } from '@/utils' import Image from 'next/image' import Link from 'next/link' @@ -40,7 +41,7 @@ const Hero: FC = ({ className, ...props }) => {
My Projects diff --git a/src/components/ui/logo.tsx b/src/components/ui/logo.tsx index 099525d..3c64032 100644 --- a/src/components/ui/logo.tsx +++ b/src/components/ui/logo.tsx @@ -1,6 +1,7 @@ 'use client' import HeaderContext from '@/store/header-context' +import { LINK } from '@/types/enums/Link' import { cn } from '@/utils' import Link from 'next/link' import { AnchorHTMLAttributes, FC, useContext } from 'react' @@ -13,7 +14,7 @@ const Logo: FC = ({ className, ...props }) => { return ( From 5c777c6d4f0a28917d2e8de7417458817ea40a43 Mon Sep 17 00:00:00 2001 From: Bochkovskyi Date: Tue, 13 Feb 2024 09:30:33 +0200 Subject: [PATCH 19/22] add Link, update styles --- src/app/[slug]/page.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/app/[slug]/page.tsx b/src/app/[slug]/page.tsx index e78a72a..c450304 100644 --- a/src/app/[slug]/page.tsx +++ b/src/app/[slug]/page.tsx @@ -5,9 +5,12 @@ import Heading from '@/components/ui/heading' import IconsList from '@/components/ui/icons-list/icons-list' import IconsListItem from '@/components/ui/icons-list/icons-list-item' import ImagePlaceholder from '@/components/ui/image-placeholder' +import { LINK } from '@/types/enums/Link' import { SITE_URL } from '@/utils' import { getProject, getSlugs } from '@/utils/projects' import Image from 'next/image' +import Link from 'next/link' +import { BiArrowBack } from 'react-icons/bi' import { FaGithub } from 'react-icons/fa' import { TfiWorld } from 'react-icons/tfi' @@ -45,7 +48,14 @@ export default async function Project({ params: { slug } }: ProjectPageProps) { return (
-
+ + {' '} + Go Back to Projects + +
{website || github ? (
@@ -72,7 +82,7 @@ export default async function Project({ params: { slug } }: ProjectPageProps) { )} {body && (

)} From 05ac6506f089c1ab32acb48281fd98273afbd3b5 Mon Sep 17 00:00:00 2001 From: Bochkovskyi Date: Tue, 13 Feb 2024 10:05:44 +0200 Subject: [PATCH 20/22] add 404 page --- src/app/not-found.tsx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/app/not-found.tsx diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 0000000..37ed782 --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,30 @@ +import { buttonVariants } from '@/components/ui/button' +import Content from '@/components/ui/content' +import Heading from '@/components/ui/heading' +import { LINK } from '@/types/enums/Link' +import { cn } from '@/utils' +import Image from 'next/image' +import Link from 'next/link' + +export default function NotFound() { + return ( +

+ Background + + Page Not Found +

+ The page you were looking for does not exists. +

+ + Return Home + +
+
+ ) +} From df263cd1a10b6f52ba2675f9cf1f146522830280 Mon Sep 17 00:00:00 2001 From: Bochkovskyi Date: Tue, 13 Feb 2024 10:06:07 +0200 Subject: [PATCH 21/22] remove TODO --- src/app/layout.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 4cc5ea2..80e90d7 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,3 @@ -// TODO: Add 404 page - import type { Metadata } from 'next' import Footer from '@/components/footer' From 16ebc15e3cd2f09cbf0b8432190ea2f30d8241c8 Mon Sep 17 00:00:00 2001 From: Bochkovskyi Date: Tue, 13 Feb 2024 10:06:26 +0200 Subject: [PATCH 22/22] update styles --- src/components/sections/hero/hero.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/sections/hero/hero.tsx b/src/components/sections/hero/hero.tsx index 8ba18bc..dbfdd93 100644 --- a/src/components/sections/hero/hero.tsx +++ b/src/components/sections/hero/hero.tsx @@ -27,7 +27,7 @@ const Hero: FC = ({ className, ...props }) => { src="/hero-bg.svg" />