From 77bbd2afdab5451652b3b2c59dddc6bbf554ffbe Mon Sep 17 00:00:00 2001 From: Bochkovskyi Date: Mon, 12 Feb 2024 10:04:44 +0200 Subject: [PATCH 01/21] 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 8eb5653452ab7380c26a1792228bff06382d5cf9 Mon Sep 17 00:00:00 2001 From: Bochkovskyi Date: Mon, 12 Feb 2024 19:42:37 +0200 Subject: [PATCH 02/21] 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 18/21] 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 19/21] 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 20/21] 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 21/21] 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" />