mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
🎨 Design improvements for downloadSvg & svgCard components
This commit is contained in:
parent
b69d1f729e
commit
5f4116f25f
@ -110,8 +110,8 @@
|
||||
|
||||
<div
|
||||
class={cn(
|
||||
'flex flex-col space-y-2 mt-4',
|
||||
'md:space-y-0 md:flex-row md:space-x-4 md:items-center md:justify-center'
|
||||
'flex flex-col space-y-2 mt-4 h-full',
|
||||
'md:space-y-0 md:flex-row md:space-x-2 md:items-center md:justify-center'
|
||||
)}
|
||||
>
|
||||
<div class={cardDownloadStyles}>
|
||||
@ -193,7 +193,7 @@
|
||||
<img
|
||||
src={isDarkTheme() ? svgInfo.wordmark.dark : svgInfo.wordmark.light}
|
||||
alt={svgInfo.title}
|
||||
class="h-8 my-4"
|
||||
class="h-10 my-4"
|
||||
/>
|
||||
<button
|
||||
title="Download Wordmark light variant"
|
||||
|
@ -7,7 +7,7 @@
|
||||
import { MIMETYPE, getSvgContent } from '@/utils/getSvgContent';
|
||||
|
||||
// Icons:
|
||||
import { CopyIcon, LinkIcon, ChevronsRight, Baseline } from 'lucide-svelte';
|
||||
import { CopyIcon, LinkIcon, ChevronsRight, Baseline, Sparkles } from 'lucide-svelte';
|
||||
|
||||
// Components & styles:
|
||||
import CardSpotlight from './cardSpotlight.svelte';
|
||||
@ -256,7 +256,11 @@
|
||||
}}
|
||||
class="flex items-center space-x-2 rounded-md p-2 duration-100 hover:bg-neutral-200 dark:hover:bg-neutral-700/40"
|
||||
>
|
||||
<Baseline size={iconSize} strokeWidth={iconStroke} />
|
||||
{#if wordmarkSvg}
|
||||
<Sparkles size={iconSize} strokeWidth={iconStroke} />
|
||||
{:else}
|
||||
<Baseline size={iconSize} strokeWidth={iconStroke} />
|
||||
{/if}
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user