web: move svg icons from lib to components

This commit is contained in:
wukko 2024-08-09 16:35:00 +06:00
parent 6bda6dab03
commit b71d51de21
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
13 changed files with 9 additions and 11 deletions

View file

@ -3,7 +3,7 @@
import { t } from "$lib/i18n/translations"; import { t } from "$lib/i18n/translations";
import Imput from "$lib/icons/Imput.svelte"; import Imput from "$components/icons/Imput.svelte";
import Meowbalt from "$components/misc/Meowbalt.svelte"; import Meowbalt from "$components/misc/Meowbalt.svelte";
import IconHeart from "@tabler/icons-svelte/IconHeart.svelte"; import IconHeart from "@tabler/icons-svelte/IconHeart.svelte";

View file

@ -13,7 +13,7 @@
import IconBrandTwitter from "@tabler/icons-svelte/IconBrandTwitter.svelte"; import IconBrandTwitter from "@tabler/icons-svelte/IconBrandTwitter.svelte";
import IconMoodSmileBeam from "@tabler/icons-svelte/IconMoodSmileBeam.svelte"; import IconMoodSmileBeam from "@tabler/icons-svelte/IconMoodSmileBeam.svelte";
import CobaltQr from "$lib/icons/CobaltQR.svelte"; import CobaltQr from "$components/icons/CobaltQR.svelte";
import CopyIcon from "$components/misc/CopyIcon.svelte"; import CopyIcon from "$components/misc/CopyIcon.svelte";
const cobaltUrl = "https://cobalt.tools/"; const cobaltUrl = "https://cobalt.tools/";

View file

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 350 B

View file

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 350 B

View file

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

Before

Width:  |  Height:  |  Size: 907 B

After

Width:  |  Height:  |  Size: 907 B

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
import { onMount } from "svelte"; import { onMount } from "svelte";
import CobaltSticker from "$lib/icons/CobaltSticker.svelte"; import CobaltSticker from "$components/icons/CobaltSticker.svelte";
// please add a source link (https://github.com/imputnet/cobalt) if you use this implementation // please add a source link (https://github.com/imputnet/cobalt) if you use this implementation
// i spent 4 hours switching between simulators and devices to get the best way to do this // i spent 4 hours switching between simulators and devices to get the best way to do this

View file

@ -22,10 +22,10 @@
import ActionButton from "$components/buttons/ActionButton.svelte"; import ActionButton from "$components/buttons/ActionButton.svelte";
import SettingsButton from "$components/buttons/SettingsButton.svelte"; import SettingsButton from "$components/buttons/SettingsButton.svelte";
import IconMute from "$lib/icons/Mute.svelte"; import IconMute from "$components/icons/Mute.svelte";
import IconMusic from "$lib/icons/Music.svelte"; import IconMusic from "$components/icons/Music.svelte";
import IconSparkles from "$lib/icons/Sparkles.svelte"; import IconSparkles from "$components/icons/Sparkles.svelte";
import IconClipboard from "$lib/icons/Clipboard.svelte"; import IconClipboard from "$components/icons/Clipboard.svelte";
let linkInput: Optional<HTMLInputElement>; let linkInput: Optional<HTMLInputElement>;
let isFocused = false; let isFocused = false;

View file

@ -1,5 +1,5 @@
<script> <script>
import IconCobalt from '$lib/icons/Cobalt.svelte'; import IconCobalt from "$components/icons/Cobalt.svelte";
</script> </script>
<div id="cobalt-logo"> <div id="cobalt-logo">
@ -14,9 +14,7 @@
padding: calc(var(--padding) * 2); padding: calc(var(--padding) * 2);
/* accommodate space for scaling animation */ /* accommodate space for scaling animation */
padding-bottom: calc( padding-bottom: calc(var(--padding) * 2 - var(--sidebar-inner-padding));
var(--padding) * 2 - var(--sidebar-inner-padding)
);
} }
@media screen and (max-width: 535px) { @media screen and (max-width: 535px) {