From 4e721beaf6ea32f682a0bd11ce8ed8d788c74ef8 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Tue, 25 Jun 2024 22:14:49 +0200 Subject: [PATCH] Move SVR.JS logo to a new React component. --- components/shared/Footer.tsx | 101 +----------------------------- components/shared/Logo.tsx | 107 ++++++++++++++++++++++++++++++++ components/shared/MobileNav.tsx | 101 +----------------------------- components/shared/Navbar.tsx | 101 +----------------------------- theme.config.tsx | 101 +----------------------------- 5 files changed, 115 insertions(+), 396 deletions(-) create mode 100644 components/shared/Logo.tsx diff --git a/components/shared/Footer.tsx b/components/shared/Footer.tsx index 5d01bc6..fe748d0 100644 --- a/components/shared/Footer.tsx +++ b/components/shared/Footer.tsx @@ -3,6 +3,7 @@ import Link from "next/link"; import React from "react"; import Iconss from "../ui/icons"; import { FOOTERLINKS } from "@/constants"; +import Logo from "./Logo"; const Footer = () => { return ( @@ -11,105 +12,7 @@ const Footer = () => {
- - - - - - - - - - - - - - - - - +
diff --git a/components/shared/Logo.tsx b/components/shared/Logo.tsx new file mode 100644 index 0000000..5b56c8d --- /dev/null +++ b/components/shared/Logo.tsx @@ -0,0 +1,107 @@ +"use client"; + +import { SVGProps } from "react"; +const Logo = (props: SVGProps) => ( + + + + + + + + + + + + + + + + + +); + +export default Logo; diff --git a/components/shared/MobileNav.tsx b/components/shared/MobileNav.tsx index d0979bd..a84b835 100644 --- a/components/shared/MobileNav.tsx +++ b/components/shared/MobileNav.tsx @@ -11,6 +11,7 @@ import Link from "next/link"; import ThemeToggle from "../ui/theme-toggle"; import { NAVBAR } from "@/constants"; import { buttonVariants } from "../ui/button"; +import Logo from "./Logo"; const MobileNav = () => { return ( @@ -23,105 +24,7 @@ const MobileNav = () => { - - - - - - - - - - - - - - - - - +