From 5ef6b82b83063a85c22048274927b8329fbb509e Mon Sep 17 00:00:00 2001 From: cdricms <36056008+cdricms@users.noreply.github.com> Date: Wed, 26 Feb 2025 17:15:05 +0100 Subject: [PATCH] Added logo modified site-name --- frontend/app/(main)/about/page.tsx | 5 +- frontend/app/layout.tsx | 11 +- frontend/components/app-sidebar.tsx | 9 +- frontend/components/footer.tsx | 7 +- frontend/components/hero.tsx | 20 +- frontend/components/logo.tsx | 1029 +++++++++++++++++++++++++++ frontend/components/nav-bar.tsx | 33 +- frontend/lib/constants.ts | 1 + 8 files changed, 1065 insertions(+), 50 deletions(-) create mode 100644 frontend/components/logo.tsx diff --git a/frontend/app/(main)/about/page.tsx b/frontend/app/(main)/about/page.tsx index 5808219..cf711e7 100644 --- a/frontend/app/(main)/about/page.tsx +++ b/frontend/app/(main)/about/page.tsx @@ -10,6 +10,7 @@ import { CardHeader, CardTitle, } from "@/components/ui/card"; +import { SITE_NAME } from "@/lib/constants"; import getShortcode from "@/lib/getShortcode"; import { CheckIcon } from "lucide-react"; @@ -36,8 +37,8 @@ export default async function About() { Nicolas GORUK - Président de l'association française de - Latosa Escrima + Président de l'association française de{" "} + {SITE_NAME} diff --git a/frontend/app/layout.tsx b/frontend/app/layout.tsx index 097be39..f4c7939 100644 --- a/frontend/app/layout.tsx +++ b/frontend/app/layout.tsx @@ -4,6 +4,7 @@ import "@/app/globals.css"; import SWRLayout from "@/components/layouts/swr-layout"; import { ThemeProvider } from "@/components/ThemeProvider"; import { Toaster } from "@/components/ui/toaster"; +import { SITE_NAME } from "@/lib/constants"; const geistSans = Geist({ variable: "--font-geist-sans", @@ -16,15 +17,15 @@ const geistMono = Geist_Mono({ }); export const metadata: Metadata = { - title: "Latosa Escrima France", - description: "Site officiel de Latosa Escrima France.", + title: `${SITE_NAME} France`, + description: `Site officiel de ${SITE_NAME} France.`, openGraph: { - title: "Latosa Escrima France", - description: "Site officiel de Latosa Escrima France.", + title: `${SITE_NAME} France`, + description: `Site officiel de ${SITE_NAME} France.`, type: "website", countryName: "France", }, - applicationName: "Latosa Escrima France", + applicationName: `${SITE_NAME} France`, authors: { name: "Wing Tsun Picardie", url: "https://www.youtube.com/@WingTsunPicardie", diff --git a/frontend/components/app-sidebar.tsx b/frontend/components/app-sidebar.tsx index 8bad163..84747f3 100644 --- a/frontend/components/app-sidebar.tsx +++ b/frontend/components/app-sidebar.tsx @@ -27,19 +27,12 @@ import { SidebarRail, } from "@/components/ui/sidebar"; import useMe from "@/hooks/use-me"; -import { useEffect } from "react"; -import { title } from "process"; // This is sample data. const data = { - user: { - name: "shadcn", - email: "m@example.com", - avatar: "/avatars/shadcn.jpg", - }, teams: [ { - name: "Latosa-Escrima", + name: "Latosa Escrima", logo: GalleryVerticalEnd, plan: "", }, diff --git a/frontend/components/footer.tsx b/frontend/components/footer.tsx index dc7684d..e89e74a 100644 --- a/frontend/components/footer.tsx +++ b/frontend/components/footer.tsx @@ -1,3 +1,4 @@ +import { SITE_NAME } from "@/lib/constants"; import { FaFacebook, FaInstagram, @@ -51,7 +52,7 @@ const Footer = () => { className="h-11" />

- Latosa-Escrima + {SITE_NAME}

@@ -97,8 +98,8 @@ const Footer = () => {

- © {new Date(Date.now()).getFullYear()}{" "} - Latosa-Escrima. Tous droits réservés. + © {new Date(Date.now()).getFullYear()} {SITE_NAME}. + Tous droits réservés.