Skip to content

Commit 5d1574b

Browse files
committed
Fix image aspect ratio in AdBanner and optimize with preconnect links in layout
1 parent fc541d0 commit 5d1574b

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

app/layout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export default function RootLayout({
3939
}) {
4040
return (
4141
<html suppressHydrationWarning lang="en">
42-
<head />
42+
<head>
43+
<link rel="preconnect" href="https://fonts.googleapis.com" />
44+
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
45+
</head>
4346
<body
4447
className={clsx(
4548
"min-h-screen text-foreground bg-background font-sans antialiased",

components/layout/AdBanner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ export const AdBanner = () => {
8888
priority
8989
fetchPriority="high"
9090
alt="HypeKorepetycje – Korepetycje z angielskiego online"
91-
height={245}
91+
height={150}
9292
src={prefixPath("/ads/ad.webp")}
9393
style={{ display: "block", width: "100%", height: "auto" }}
94-
width={843}
94+
width={700}
9595
/>
9696
{/* Dark mode dim overlay */}
9797
<div

0 commit comments

Comments
 (0)