From d235d3548a093425e623783776184c0141a44e8c Mon Sep 17 00:00:00 2001 From: elisejakob Date: Fri, 10 May 2024 20:11:04 +0200 Subject: [PATCH] custom logo styling on index page + adjustments to venue styling and leads --- web/src/app/lokaler/page.tsx | 4 +-- web/src/components/general/Logo.tsx | 7 ++++- web/src/components/general/logo.module.scss | 6 +++- .../components/venues/venueItem.module.scss | 31 ++++++++++++++++++- .../components/venues/venueList.module.scss | 6 +++- web/src/css/base.scss | 1 + 6 files changed, 49 insertions(+), 6 deletions(-) diff --git a/web/src/app/lokaler/page.tsx b/web/src/app/lokaler/page.tsx index b74a3f0..3fa7014 100644 --- a/web/src/app/lokaler/page.tsx +++ b/web/src/app/lokaler/page.tsx @@ -50,13 +50,13 @@ export default async function Page() { const { data, error } = await getClient().query(allVenuesQuery, {}); const venues = (data?.venues ?? []) as VenueFragment[]; - console.log('data', data) + console.log("data", data); return (

Lokaler

-

+

Her kan vi presentere lokalene på Chateau Neuf, og eventuelt henvise videre til undersiden om utleie.

diff --git a/web/src/components/general/Logo.tsx b/web/src/components/general/Logo.tsx index 273f740..c6a1a49 100644 --- a/web/src/components/general/Logo.tsx +++ b/web/src/components/general/Logo.tsx @@ -1,8 +1,13 @@ +"use client"; import styles from "./logo.module.scss"; +import { usePathname } from "next/navigation"; export const Logo = () => { + // Check if the current page is the index page + const isIndexPage = usePathname() === "/"; + return ( -
+
Chateau Neuf