mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-28 04:56:13 +01:00
Refactor ProseIcon component to improve icon usage and enhance text styling
This commit is contained in:
@@ -28,14 +28,11 @@ const colorVariants = {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span class="inline-flex items-center">
|
||||
<UIcon
|
||||
class="mr-1"
|
||||
:name="`i-logos:${icon}`"
|
||||
/>
|
||||
<span class="inline-flex items-center transform translate-y-1 gap-1">
|
||||
<UIcon :name="icon" />
|
||||
<span
|
||||
:class="colorVariants[color as keyof typeof colorVariants]"
|
||||
class="sofia font-medium underline-offset-2 underline"
|
||||
class="sofia font-bold underline-offset-2 underline"
|
||||
>
|
||||
<slot />
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user