Skip to content

Commit 4c38bd9

Browse files
committed
Add Omarchy link to About view
1 parent ccba26c commit 4c38bd9

3 files changed

Lines changed: 40 additions & 10 deletions

File tree

frontend/src/assets/omarchy.png

1.52 KB
Loading

frontend/src/lib/components/layout/AboutView.svelte

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
<script lang="ts">
22
import {openURL} from '$lib/utils/browser';
3+
import omarchyIcon from '../../../assets/omarchy.png';
34
4-
const links = [
5+
type Link = {
6+
label: string;
7+
url: string;
8+
description: string;
9+
icon: string;
10+
image?: string;
11+
};
12+
13+
const links: Link[] = [
514
{
615
label: 'GitHub',
716
url: 'https://github.com/bjarneo/aether',
@@ -11,9 +20,16 @@
1120
{
1221
label: 'X / Twitter',
1322
url: 'https://x.com/iamdothash',
14-
description: 'Updates, screenshots, dev log',
23+
description: "Author's X",
1524
icon: 'M18.244 2H21.5l-7.494 8.567L23 22h-6.793l-5.32-6.957L4.8 22H1.54l8.014-9.166L1 2h6.96l4.806 6.353L18.244 2Zm-2.378 18.16h1.84L7.21 3.74H5.236l10.63 16.42Z',
1625
},
26+
{
27+
label: 'Omarchy',
28+
url: 'https://omarchy.org',
29+
description: 'The Linux desktop Aether is built for',
30+
icon: '',
31+
image: omarchyIcon,
32+
},
1733
];
1834
</script>
1935

@@ -48,14 +64,23 @@
4864
class="border-border hover:border-border-focus hover:bg-bg-hover group flex items-center gap-3 border px-3 py-2.5 text-left transition-colors"
4965
onclick={() => openURL(link.url)}
5066
>
51-
<svg
52-
class="text-fg-secondary group-hover:text-accent h-4 w-4 shrink-0 transition-colors"
53-
viewBox="0 0 24 24"
54-
fill="currentColor"
55-
aria-hidden="true"
56-
>
57-
<path d={link.icon}></path>
58-
</svg>
67+
{#if link.image}
68+
<img
69+
src={link.image}
70+
alt=""
71+
class="h-4 w-4 shrink-0 object-contain"
72+
aria-hidden="true"
73+
/>
74+
{:else}
75+
<svg
76+
class="text-fg-secondary group-hover:text-accent h-4 w-4 shrink-0 transition-colors"
77+
viewBox="0 0 24 24"
78+
fill="currentColor"
79+
aria-hidden="true"
80+
>
81+
<path d={link.icon}></path>
82+
</svg>
83+
{/if}
5984
<div class="min-w-0 flex-1">
6085
<div class="text-fg-primary text-[12px] font-medium">
6186
{link.label}

frontend/src/vite-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
declare const __APP_VERSION__: string;
22

33
declare module '*.css';
4+
5+
declare module '*.png' {
6+
const src: string;
7+
export default src;
8+
}

0 commit comments

Comments
 (0)