mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-25 17:30:56 +08:00
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:
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 |
@@ -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>
|
||||
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user