File tree Expand file tree Collapse file tree 2 files changed +4
-33
lines changed
Expand file tree Collapse file tree 2 files changed +4
-33
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { useTranslations } from "next-intl";
22import Link from "next/link" ;
33import Image from "next/image" ;
44
5- import RockyPrideLogo from "@/public/images/pride-logo.png " ;
5+ import Logo from "@/components/Logo " ;
66import { Button } from "@/components/ui/button" ;
77
88import DarkModeToggle from "./components/header/DarkModeToggle" ;
@@ -61,21 +61,7 @@ export default function Header() {
6161 className = "-m-1.5 p-1.5"
6262 >
6363 < span className = "sr-only" > { tGlobal ( "name" ) } </ span >
64- < div className = "flex items-center gap-2" >
65- < Image
66- src = { RockyPrideLogo }
67- alt = "Rocky Linux Pride Logo"
68- className = "h-9 w-auto"
69- />
70- < span className = "text-2xl font-display" >
71- < span className = "font-extrabold" >
72- { tGlobal ( "name" ) . split ( " " ) [ 0 ] }
73- </ span > { " " }
74- < span className = "font-normal" >
75- { tGlobal ( "name" ) . split ( " " ) [ 1 ] }
76- </ span >
77- </ span >
78- </ div >
64+ < Logo />
7965 </ Link >
8066 </ div >
8167 < MobileNavigation
Original file line number Diff line number Diff line change @@ -7,11 +7,10 @@ import {
77 SheetClose ,
88} from "@/components/ui/sheet" ;
99import { Accordion } from "@/components/ui/accordion" ;
10- import Image from "next/image" ;
1110import Link from "next/link" ;
1211
1312import { Button } from "@/components/ui/button" ;
14- import RockyPrideLogo from "@/public/images/pride-logo.png " ;
13+ import Logo from "@/components/Logo " ;
1514
1615import DarkModeToggle from "./DarkModeToggle" ;
1716import NavItem from "./nav/mobile/NavItem" ;
@@ -58,21 +57,7 @@ const MobileNavigation = ({
5857 className = "w-full"
5958 >
6059 < Link href = "/" >
61- < div className = "flex items-center gap-2" >
62- < Image
63- src = { RockyPrideLogo }
64- alt = "Rocky Linux Pride Logo"
65- className = "h-9 w-auto"
66- />
67- < span className = "text-2xl font-display" >
68- < span className = "font-extrabold" >
69- { rockyLinuxSRText . split ( " " ) [ 0 ] }
70- </ span > { " " }
71- < span className = "font-normal" >
72- { rockyLinuxSRText . split ( " " ) [ 1 ] }
73- </ span >
74- </ span >
75- </ div >
60+ < Logo />
7661 < span className = "sr-only" > { rockyLinuxSRText } </ span >
7762 </ Link >
7863 < Accordion
You can’t perform that action at this time.
0 commit comments