mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
🛠️ Create custom svgl version component
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
import Twitter from "@/components/logos/twitter.svelte";
|
import Twitter from "@/components/logos/twitter.svelte";
|
||||||
|
|
||||||
import { Separator } from "@/components/ui/separator";
|
import { Separator } from "@/components/ui/separator";
|
||||||
import Badge from "@/components/ui/badge/badge.svelte";
|
|
||||||
import { buttonVariants } from "@/components/ui/button";
|
import { buttonVariants } from "@/components/ui/button";
|
||||||
|
import SvglVersion from "@/components/svglVersion.svelte";
|
||||||
import SendIcon from "@/components/ui/moving-icons/send-icon.svelte";
|
import SendIcon from "@/components/ui/moving-icons/send-icon.svelte";
|
||||||
|
|
||||||
interface HeaderProps {
|
interface HeaderProps {
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
<Svgl size={28} />
|
<Svgl size={28} />
|
||||||
<h2 class="font-onest text-xl font-medium tracking-tight">svgl</h2>
|
<h2 class="font-onest text-xl font-medium tracking-tight">svgl</h2>
|
||||||
</a>
|
</a>
|
||||||
<Badge variant="outline">{globals.currentVersion}</Badge>
|
<SvglVersion />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex h-8 items-center">
|
<div class="flex h-8 items-center">
|
||||||
<div class="flex items-center space-x-0.5">
|
<div class="flex items-center space-x-0.5">
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<script>
|
||||||
|
import { PUBLIC_SVGL_VERSION } from "$env/static/public";
|
||||||
|
import Badge from "@/components/ui/badge/badge.svelte";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#if PUBLIC_SVGL_VERSION}
|
||||||
|
<Badge variant="outline">{PUBLIC_SVGL_VERSION}</Badge>
|
||||||
|
{/if}
|
||||||
@@ -4,5 +4,4 @@ export const globals = {
|
|||||||
twitterUrl: "https://x.com/pheralb_",
|
twitterUrl: "https://x.com/pheralb_",
|
||||||
submitUrl:
|
submitUrl:
|
||||||
"https://github.com/pheralb/svgl?tab=readme-ov-file#-getting-started",
|
"https://github.com/pheralb/svgl?tab=readme-ov-file#-getting-started",
|
||||||
currentVersion: "beta",
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user