From f06b8ed77c1caead3b00a6bd9c94fa36aea26b5d Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Fri, 30 Aug 2024 00:22:58 -0400 Subject: [PATCH] fixes --- src/app/(pages)/page.tsx | 16 ++-- .../landing/nav-content/my-work.tsx | 90 ++++++++++--------- src/components/landing/navbar.tsx | 6 +- src/components/landing/navigation.tsx | 2 +- src/components/ui/scroll-area.tsx | 48 ++++++++++ 5 files changed, 110 insertions(+), 52 deletions(-) create mode 100644 src/components/ui/scroll-area.tsx diff --git a/src/app/(pages)/page.tsx b/src/app/(pages)/page.tsx index 0134554..87f4817 100644 --- a/src/app/(pages)/page.tsx +++ b/src/app/(pages)/page.tsx @@ -3,15 +3,15 @@ import Navbar from "@/components/landing/navbar"; import { ReactElement } from "react"; const LandingPage = (): ReactElement => ( -
+
-
+
diff --git a/src/components/landing/nav-content/my-work.tsx b/src/components/landing/nav-content/my-work.tsx index e06fccf..6617cd9 100644 --- a/src/components/landing/nav-content/my-work.tsx +++ b/src/components/landing/nav-content/my-work.tsx @@ -7,6 +7,7 @@ import { UseThemeProps } from "next-themes/dist/types"; import Link from "next/link"; import { ReactElement } from "react"; import Project from "@/types/project"; +import { ScrollArea } from "@/components/ui/scroll-area"; import Image from "next/image"; const projects: Project[] = [ @@ -64,51 +65,60 @@ const projects: Project[] = [ const MyWork = (): ReactElement => { const { theme }: UseThemeProps = useTheme(); return ( -
- {projects.map((project, index) => ( - - +
+ {projects.map((project, index) => ( + - {/* Icon, Name & Years Active */} -
- {`The - -

- {project.name} -

-
- - {project.startDate.format("MMM YYYY")} - - - - {project.endDate ? ( - - {project.endDate.format("MMM YYYY")} - - ) : ( + + {/* Icon, Name & Years Active */} +
+
+ {`The +

+ {project.name} +

+
+
- Present + {project.startDate.format("MMM YYYY")} - )} + 🞄 + {project.endDate ? ( + + {project.endDate.format("MMM YYYY")} + + ) : ( + + Present + + )} +
-
- {/* Description */} -

- {project.description} -

- - - ))} -
+ {/* Description */} +

+ {project.description} +

+ + + ))} +
+ ); }; export default MyWork; diff --git a/src/components/landing/navbar.tsx b/src/components/landing/navbar.tsx index 94f96ec..7cd61cc 100644 --- a/src/components/landing/navbar.tsx +++ b/src/components/landing/navbar.tsx @@ -22,8 +22,8 @@ import { import BlurFade from "@/components/ui/blur-fade"; const Navbar = (): ReactElement => ( - -
diff --git a/src/components/landing/navigation.tsx b/src/components/landing/navigation.tsx index 6d50c94..e0b3a05 100644 --- a/src/components/landing/navigation.tsx +++ b/src/components/landing/navigation.tsx @@ -65,7 +65,7 @@ const Navigation = (): ReactElement => { {/* Selected Content */} {selected && ( -
{selected.content}
+
{selected.content}
)} diff --git a/src/components/ui/scroll-area.tsx b/src/components/ui/scroll-area.tsx new file mode 100644 index 0000000..0b4a48d --- /dev/null +++ b/src/components/ui/scroll-area.tsx @@ -0,0 +1,48 @@ +"use client" + +import * as React from "react" +import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area" + +import { cn } from "@/lib/utils" + +const ScrollArea = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + + {children} + + + + +)) +ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName + +const ScrollBar = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, orientation = "vertical", ...props }, ref) => ( + + + +)) +ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName + +export { ScrollArea, ScrollBar }