Added logo modified site-name
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
|||||||
CardHeader,
|
CardHeader,
|
||||||
CardTitle,
|
CardTitle,
|
||||||
} from "@/components/ui/card";
|
} from "@/components/ui/card";
|
||||||
|
import { SITE_NAME } from "@/lib/constants";
|
||||||
import getShortcode from "@/lib/getShortcode";
|
import getShortcode from "@/lib/getShortcode";
|
||||||
import { CheckIcon } from "lucide-react";
|
import { CheckIcon } from "lucide-react";
|
||||||
|
|
||||||
@@ -36,8 +37,8 @@ export default async function About() {
|
|||||||
Nicolas GORUK
|
Nicolas GORUK
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
<CardDescription>
|
<CardDescription>
|
||||||
Président de l'association française de
|
Président de l'association française de{" "}
|
||||||
Latosa Escrima
|
{SITE_NAME}
|
||||||
</CardDescription>
|
</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="px-8 sm:px-10 py-14">
|
<CardContent className="px-8 sm:px-10 py-14">
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import "@/app/globals.css";
|
|||||||
import SWRLayout from "@/components/layouts/swr-layout";
|
import SWRLayout from "@/components/layouts/swr-layout";
|
||||||
import { ThemeProvider } from "@/components/ThemeProvider";
|
import { ThemeProvider } from "@/components/ThemeProvider";
|
||||||
import { Toaster } from "@/components/ui/toaster";
|
import { Toaster } from "@/components/ui/toaster";
|
||||||
|
import { SITE_NAME } from "@/lib/constants";
|
||||||
|
|
||||||
const geistSans = Geist({
|
const geistSans = Geist({
|
||||||
variable: "--font-geist-sans",
|
variable: "--font-geist-sans",
|
||||||
@@ -16,15 +17,15 @@ const geistMono = Geist_Mono({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Latosa Escrima France",
|
title: `${SITE_NAME} France`,
|
||||||
description: "Site officiel de Latosa Escrima France.",
|
description: `Site officiel de ${SITE_NAME} France.`,
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: "Latosa Escrima France",
|
title: `${SITE_NAME} France`,
|
||||||
description: "Site officiel de Latosa Escrima France.",
|
description: `Site officiel de ${SITE_NAME} France.`,
|
||||||
type: "website",
|
type: "website",
|
||||||
countryName: "France",
|
countryName: "France",
|
||||||
},
|
},
|
||||||
applicationName: "Latosa Escrima France",
|
applicationName: `${SITE_NAME} France`,
|
||||||
authors: {
|
authors: {
|
||||||
name: "Wing Tsun Picardie",
|
name: "Wing Tsun Picardie",
|
||||||
url: "https://www.youtube.com/@WingTsunPicardie",
|
url: "https://www.youtube.com/@WingTsunPicardie",
|
||||||
|
|||||||
@@ -27,19 +27,12 @@ import {
|
|||||||
SidebarRail,
|
SidebarRail,
|
||||||
} from "@/components/ui/sidebar";
|
} from "@/components/ui/sidebar";
|
||||||
import useMe from "@/hooks/use-me";
|
import useMe from "@/hooks/use-me";
|
||||||
import { useEffect } from "react";
|
|
||||||
import { title } from "process";
|
|
||||||
|
|
||||||
// This is sample data.
|
// This is sample data.
|
||||||
const data = {
|
const data = {
|
||||||
user: {
|
|
||||||
name: "shadcn",
|
|
||||||
email: "m@example.com",
|
|
||||||
avatar: "/avatars/shadcn.jpg",
|
|
||||||
},
|
|
||||||
teams: [
|
teams: [
|
||||||
{
|
{
|
||||||
name: "Latosa-Escrima",
|
name: "Latosa Escrima",
|
||||||
logo: GalleryVerticalEnd,
|
logo: GalleryVerticalEnd,
|
||||||
plan: "",
|
plan: "",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { SITE_NAME } from "@/lib/constants";
|
||||||
import {
|
import {
|
||||||
FaFacebook,
|
FaFacebook,
|
||||||
FaInstagram,
|
FaInstagram,
|
||||||
@@ -51,7 +52,7 @@ const Footer = () => {
|
|||||||
className="h-11"
|
className="h-11"
|
||||||
/>
|
/>
|
||||||
<p className="text-3xl font-semibold">
|
<p className="text-3xl font-semibold">
|
||||||
Latosa-Escrima
|
{SITE_NAME}
|
||||||
</p>
|
</p>
|
||||||
</span>
|
</span>
|
||||||
<p className="mt-6 text-sm text-muted-foreground">
|
<p className="mt-6 text-sm text-muted-foreground">
|
||||||
@@ -97,8 +98,8 @@ const Footer = () => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="mt-20 flex flex-col justify-between gap-4 border-t pt-8 text-center text-sm font-medium text-muted-foreground lg:flex-row lg:items-center lg:text-left">
|
<div className="mt-20 flex flex-col justify-between gap-4 border-t pt-8 text-center text-sm font-medium text-muted-foreground lg:flex-row lg:items-center lg:text-left">
|
||||||
<p>
|
<p>
|
||||||
© {new Date(Date.now()).getFullYear()}{" "}
|
© {new Date(Date.now()).getFullYear()} {SITE_NAME}.
|
||||||
Latosa-Escrima. Tous droits réservés.
|
Tous droits réservés.
|
||||||
</p>
|
</p>
|
||||||
<ul className="flex justify-center gap-4 lg:justify-start">
|
<ul className="flex justify-center gap-4 lg:justify-start">
|
||||||
<li className="hover:text-primary">
|
<li className="hover:text-primary">
|
||||||
|
|||||||
@@ -2,8 +2,9 @@ import { ExternalLink } from "lucide-react";
|
|||||||
|
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { API_URL } from "@/lib/constants";
|
import { API_URL, SITE_NAME } from "@/lib/constants";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
import Logo from "./logo";
|
||||||
|
|
||||||
const Hero: React.FC<{ background: string }> = ({ background }) => {
|
const Hero: React.FC<{ background: string }> = ({ background }) => {
|
||||||
return (
|
return (
|
||||||
@@ -22,17 +23,13 @@ const Hero: React.FC<{ background: string }> = ({ background }) => {
|
|||||||
<div className="absolute inset-0 bg-gradient-to-r from-transparent via-transparent to-transparent bg-opacity-30 backdrop-blur-sm"></div>
|
<div className="absolute inset-0 bg-gradient-to-r from-transparent via-transparent to-transparent bg-opacity-30 backdrop-blur-sm"></div>
|
||||||
<div className="mx-auto flex max-w-5xl flex-col items-center">
|
<div className="mx-auto flex max-w-5xl flex-col items-center">
|
||||||
<div className="z-10 flex flex-col items-center gap-6 text-center">
|
<div className="z-10 flex flex-col items-center gap-6 text-center">
|
||||||
<img
|
<Logo className="min-w-16 min-h-16 max-h-44 max-w-44 text-white" />
|
||||||
src="https://shadcnblocks.com/images/block/block-1.svg"
|
|
||||||
alt="logo"
|
|
||||||
className="h-16"
|
|
||||||
/>
|
|
||||||
<div>
|
<div>
|
||||||
<h1 className="mb-6 text-pretty text-2xl font-bold text-primary lg:text-5xl font-times">
|
<h1 className="mb-6 text-pretty text-2xl font-bold text-primary lg:text-5xl font-times">
|
||||||
Trouvez votre <em>équilibre</em> avec
|
Trouvez votre <em>équilibre</em> avec
|
||||||
<br />
|
<br />
|
||||||
<span className="font-extrabold text-3xl lg:text-6xl">
|
<span className="font-extrabold text-3xl lg:text-6xl">
|
||||||
Latosa Escrima
|
{SITE_NAME}
|
||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
<p className="text-muted-foreground lg:text-xl">
|
<p className="text-muted-foreground lg:text-xl">
|
||||||
@@ -44,8 +41,13 @@ const Hero: React.FC<{ background: string }> = ({ background }) => {
|
|||||||
<Link href="/contact">Nous contacter</Link>
|
<Link href="/contact">Nous contacter</Link>
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="outline">
|
<Button variant="outline">
|
||||||
À propos
|
<Link
|
||||||
<ExternalLink className="ml-2 h-4" />
|
href="/about"
|
||||||
|
className="flex items-center"
|
||||||
|
>
|
||||||
|
À propos
|
||||||
|
<ExternalLink className="ml-2 h-4" />
|
||||||
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
1029
frontend/components/logo.tsx
Normal file
1029
frontend/components/logo.tsx
Normal file
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,8 @@ import { deleteCookie, getCookie } from "cookies-next";
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { ThemeSwitcher } from "./theme-switcher";
|
import { ThemeSwitcher } from "./theme-switcher";
|
||||||
import "./nav-bar.css";
|
import "./nav-bar.css";
|
||||||
|
import Logo from "./logo";
|
||||||
|
import { SITE_NAME } from "@/lib/constants";
|
||||||
|
|
||||||
const Href: React.FC<React.PropsWithChildren<{ href: string }>> = ({
|
const Href: React.FC<React.PropsWithChildren<{ href: string }>> = ({
|
||||||
href,
|
href,
|
||||||
@@ -50,13 +52,9 @@ const Navbar = () => {
|
|||||||
<nav className="hidden justify-between lg:flex">
|
<nav className="hidden justify-between lg:flex">
|
||||||
<div className="flex items-center gap-6">
|
<div className="flex items-center gap-6">
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<img
|
<Logo className="w-8 h-8" />
|
||||||
src="https://shadcnblocks.com/images/block/block-1.svg"
|
|
||||||
className="w-8"
|
|
||||||
alt="logo"
|
|
||||||
/>
|
|
||||||
<span className="text-xl font-bold">
|
<span className="text-xl font-bold">
|
||||||
Latosa-Escrima
|
{SITE_NAME}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
@@ -96,7 +94,7 @@ const Navbar = () => {
|
|||||||
Se connecter
|
Se connecter
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
{cookie ? (
|
{cookie && (
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
deleteCookie("auth_token");
|
deleteCookie("auth_token");
|
||||||
@@ -105,21 +103,15 @@ const Navbar = () => {
|
|||||||
>
|
>
|
||||||
Se déconnecter
|
Se déconnecter
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
|
||||||
<Button>Créer un compte</Button>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div className="block lg:hidden">
|
<div className="block lg:hidden">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<img
|
<Logo className="w-8 h-8" />
|
||||||
src="https://shadcnblocks.com/images/block/block-1.svg"
|
|
||||||
className="w-8"
|
|
||||||
alt="logo"
|
|
||||||
/>
|
|
||||||
<span className="text-xl font-bold">
|
<span className="text-xl font-bold">
|
||||||
Latosa-Escrima
|
{SITE_NAME}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex gap-2">
|
<div className="flex gap-2">
|
||||||
@@ -134,13 +126,9 @@ const Navbar = () => {
|
|||||||
<SheetHeader>
|
<SheetHeader>
|
||||||
<SheetTitle>
|
<SheetTitle>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<img
|
<Logo className="w-8 h-8" />
|
||||||
src="https://shadcnblocks.com/images/block/block-1.svg"
|
|
||||||
className="w-8"
|
|
||||||
alt="logo"
|
|
||||||
/>
|
|
||||||
<span className="text-xl font-bold">
|
<span className="text-xl font-bold">
|
||||||
Latosa-Escrima
|
{SITE_NAME}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</SheetTitle>
|
</SheetTitle>
|
||||||
@@ -171,7 +159,7 @@ const Navbar = () => {
|
|||||||
Gallerie
|
Gallerie
|
||||||
</Link>
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
href="/blog"
|
href="/blogs"
|
||||||
className="font-semibold"
|
className="font-semibold"
|
||||||
>
|
>
|
||||||
Blog
|
Blog
|
||||||
@@ -252,7 +240,6 @@ const Navbar = () => {
|
|||||||
Se connecter
|
Se connecter
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
<Button>Sign up</Button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</SheetContent>
|
</SheetContent>
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
export const API_URL = process.env.NEXT_PUBLIC_API_URL ?? "";
|
export const API_URL = process.env.NEXT_PUBLIC_API_URL ?? "";
|
||||||
|
export const SITE_NAME = "Latosa® Escrima";
|
||||||
|
|||||||
Reference in New Issue
Block a user