Skip to content

Commit e3f03ab

Browse files
committed
perf: convert logo to WebP and add explicit dimensions
Convert logo from PNG (63KB) to WebP (23KB) and add width/height attributes to prevent CLS and improve LCP scoring.
1 parent 07b0fb7 commit e3f03ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/web/src/assets/logo.webp

22.8 KB
Loading

apps/web/src/components/Navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { clsx } from "clsx";
22
import { Menu, Search, X } from "lucide-react";
33
import { useState } from "react";
44
import { Link, useLocation } from "react-router-dom";
5-
import logo from "../assets/logo.png";
5+
import logo from "../assets/logo.webp";
66

77
interface NavbarProps {
88
sticky?: boolean;
@@ -26,7 +26,7 @@ export function Navbar({ sticky = false, maxWidth = false, onSearchClick }: Navb
2626
>
2727
<div className={clsx("flex items-center justify-between", maxWidth && "mx-auto max-w-6xl")}>
2828
<Link to="/" className="flex shrink-0 items-center">
29-
<img src={logo} alt="ooxml.dev" className="h-6" />
29+
<img src={logo} alt="ooxml.dev" className="h-6" width={137} height={24} />
3030
</Link>
3131

3232
{/* Desktop navigation */}

0 commit comments

Comments
 (0)