From 0e0c56cdcf8619fc106f436990e80634377fdd66 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Mon, 14 Apr 2025 05:33:56 +0200 Subject: [PATCH] feat: Update Logo component with LogoWithText variant --- app/components/syntax/Logo.tsx | 10 +++++++++- app/components/syntax/MobileNavigation.tsx | 4 +++- app/layouts/LayoutDefault.tsx | 7 ++++--- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/app/components/syntax/Logo.tsx b/app/components/syntax/Logo.tsx index e6e1530..c7e787e 100644 --- a/app/components/syntax/Logo.tsx +++ b/app/components/syntax/Logo.tsx @@ -33,7 +33,7 @@ function LogomarkPaths() { ); } -export function Logo(props: React.ComponentPropsWithoutRef<"svg">) { +export function LogoWithText(props: React.ComponentPropsWithoutRef<"svg">) { return ( @@ -51,3 +51,11 @@ export function Logo(props: React.ComponentPropsWithoutRef<"svg">) { ); } + +export function Logo(props: React.ComponentPropsWithoutRef<"svg">) { + return ( + + + + ); +} diff --git a/app/components/syntax/MobileNavigation.tsx b/app/components/syntax/MobileNavigation.tsx index 587f839..e120858 100644 --- a/app/components/syntax/MobileNavigation.tsx +++ b/app/components/syntax/MobileNavigation.tsx @@ -55,9 +55,11 @@ export function MobileNavigation() { > + + close()} @@ -71,7 +73,7 @@ export function MobileNavigation() { - + diff --git a/app/layouts/LayoutDefault.tsx b/app/layouts/LayoutDefault.tsx index d1e8d49..8d187cf 100644 --- a/app/layouts/LayoutDefault.tsx +++ b/app/layouts/LayoutDefault.tsx @@ -7,7 +7,7 @@ import { Link } from "@/components/common/Link"; import { useEffect, useState } from "react"; import { Search } from "@syntax/Search"; import { Hero } from "@syntax/Hero"; -import { Logo } from "@syntax/Logo"; +import { Logo, LogoWithText } from "@syntax/Logo"; import clsx from "clsx"; import "./style.css"; @@ -52,8 +52,9 @@ function Header() {
- - + + + Memento Dev