Skip to content

Commit 0221dbd

Browse files
committed
Optimize marketing navbar logo image
1 parent f2cd53f commit 0221dbd

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

apps/marketing/src/assets/icon.png

1.08 MB
Loading

apps/marketing/src/layouts/Layout.astro

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
import { Image } from "astro:assets";
3+
import navIcon from "../assets/icon.png";
4+
25
interface Props {
36
title?: string;
47
description?: string;
@@ -31,7 +34,14 @@ const {
3134
<div class="page">
3235
<nav class="nav">
3336
<a href="/" class="nav-brand">
34-
<img src="/icon.png" alt="T3" class="nav-icon" />
37+
<Image
38+
src={navIcon}
39+
alt="T3"
40+
width={28}
41+
height={28}
42+
priority
43+
class="nav-icon"
44+
/>
3545
</a>
3646
<a
3747
href="https://github.com/pingdotgg/t3code"

0 commit comments

Comments
 (0)