Merge pull request #405 from Lusitaniae/pr/icons

web: ship the logo at display size and serve WebP when supported
This commit is contained in:
BaaRai
2026-11-22 22:44:10 +01:00
committed by GitHub
6 changed files with 12 additions and 3 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 480 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

+4 -1
View File
@@ -100,7 +100,10 @@ export default function LoginPage() {
<div className="absolute size-60 rounded-full border border-primary-foreground/15" />
<div className="absolute size-40 rounded-full border border-primary-foreground/20" />
{/* eslint-disable-next-line @next/next/no-img-element */}
<img src="/logo.png" alt="ARTEX" width={160} height={160} className="relative brightness-0 invert" />
<picture className="contents">
<source srcSet="/logo.webp" type="image/webp" />
<img src="/logo.png" alt="ARTEX" width={160} height={160} className="relative brightness-0 invert" />
</picture>
</div>
</div>
+4 -1
View File
@@ -70,7 +70,10 @@ export default function SetupPage() {
<div className="absolute size-60 rounded-full border border-primary-foreground/15" />
<div className="absolute size-40 rounded-full border border-primary-foreground/20" />
{/* eslint-disable-next-line @next/next/no-img-element */}
<img src="/logo.png" alt="ARTEX" width={160} height={160} className="relative brightness-0 invert" />
<picture className="contents">
<source srcSet="/logo.webp" type="image/webp" />
<img src="/logo.png" alt="ARTEX" width={160} height={160} className="relative brightness-0 invert" />
</picture>
</div>
</div>
@@ -43,7 +43,10 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
<SidebarMenuButton asChild>
<Link prefetch={false} href="/function/tasks">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img src="/logo.png" alt="ARTEX" width={40} height={40} className="shrink-0" />
<picture className="contents">
<source srcSet="/logo.webp" type="image/webp" />
<img src="/logo.png" alt="ARTEX" width={40} height={40} className="shrink-0" />
</picture>
<span className="font-semibold text-base">{APP_CONFIG.name}</span>
</Link>
</SidebarMenuButton>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 480 KiB

After

Width:  |  Height:  |  Size: 17 KiB