From 2fa6e0b21dcde499e9aad1f45524fac09f8b8c15 Mon Sep 17 00:00:00 2001 From: cdricms <36056008+cdricms@users.noreply.github.com> Date: Thu, 13 Feb 2025 10:13:32 +0100 Subject: [PATCH] Fixed about presentation --- frontend/app/(main)/about/page.tsx | 33 +++++++++++++++--------- frontend/app/(main)/gallery/page.tsx | 1 - frontend/components/homepage-gallery.tsx | 4 +-- 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/frontend/app/(main)/about/page.tsx b/frontend/app/(main)/about/page.tsx index 4bf4064..53ab661 100644 --- a/frontend/app/(main)/about/page.tsx +++ b/frontend/app/(main)/about/page.tsx @@ -10,7 +10,7 @@ import { CardHeader, CardTitle, } from "@/components/ui/card"; -import { Avatar, AvatarFallback, AvatarImage } from "@radix-ui/react-avatar"; +import getShortcode from "@/lib/getShortcode"; import { CheckIcon } from "lucide-react"; export default async function About() { @@ -21,13 +21,17 @@ export default async function About() { ); + + const profileImage = await getShortcode("profile_image"); + return ( <>
-
-
- - +
+ {/* Text Section - Takes 2/3 on large screens */} +
+ + Nicolas GORUK @@ -38,10 +42,10 @@ export default async function About() {
-

+

Lorem ipsum, dolor sit amet

-

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis accusamus illum, nam nemo quod delectus velit @@ -49,10 +53,10 @@ export default async function About() { aliquam atque praesentium ea placeat ad, neque eveniet adipisci?

-

+

Lorem ipsum, dolor sit amet

-

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis accusamus illum, nam nemo quod delectus velit @@ -64,10 +68,15 @@ export default async function About() {

-
+ + {/* Image Section - Takes 1/3 on large screens */} +
president profile image
diff --git a/frontend/app/(main)/gallery/page.tsx b/frontend/app/(main)/gallery/page.tsx index 3d30a0e..fa9493b 100644 --- a/frontend/app/(main)/gallery/page.tsx +++ b/frontend/app/(main)/gallery/page.tsx @@ -50,7 +50,6 @@ export default function PhotoGallery() { />
))} - )
)} diff --git a/frontend/components/homepage-gallery.tsx b/frontend/components/homepage-gallery.tsx index d66f0ac..da78461 100644 --- a/frontend/components/homepage-gallery.tsx +++ b/frontend/components/homepage-gallery.tsx @@ -28,8 +28,8 @@ export default function HomepageGalleryItems() { return ( <> {data?.items.map((i) => ( - -
+ +