feat: 添加网站图标、标题

This commit is contained in:
2025-06-04 01:16:21 +08:00
parent 34e9ad7a3b
commit 394ebd9e2a
4 changed files with 20 additions and 4 deletions

View File

@@ -180,7 +180,7 @@ onMounted(() => {
> >
<NuxtLink to="/" class="flex items-center"> <NuxtLink to="/" class="flex items-center">
<Icon <Icon
name="s:spark" name="sp:spark"
class="text-4xl mr-2 s-color-primary-color" class="text-4xl mr-2 s-color-primary-color"
mode="svg" mode="svg"
/> />
@@ -230,7 +230,7 @@ onMounted(() => {
> >
<div class="flex flex-col items-start gap-6"> <div class="flex flex-col items-start gap-6">
<Icon <Icon
name="s:spark" name="sp:spark"
class="grow" class="grow"
mode="svg" mode="svg"
:style="{ :style="{

View File

@@ -21,9 +21,25 @@ export default defineNuxtConfig({
prefix: "s", prefix: "s",
dir: "./assets/icons", dir: "./assets/icons",
}, },
{
prefix: "sp",
dir: "./public/icon",
},
], ],
}, },
css: ["~/assets/css/main.css"], css: ["~/assets/css/main.css"],
app: {
head: {
title: "Spark Store",
link: [
{
rel: "icon",
type: "image/svg+xml",
href: "/icon/spark.svg",
},
],
},
},
vite: { vite: {
plugins: [tailwindcss()], plugins: [tailwindcss()],
}, },

View File

@@ -318,7 +318,7 @@ onMounted(() => {
<div class="flex flex-col gap-3"> <div class="flex flex-col gap-3">
<div class="flex items-center gap-6"> <div class="flex items-center gap-6">
<Icon <Icon
name="s:spark" name="sp:spark"
class="text-6xl s-color-primary-500" class="text-6xl s-color-primary-500"
mode="svg" mode="svg"
/> />
@@ -543,7 +543,7 @@ onMounted(() => {
}" }"
> >
<Icon <Icon
name="s:spark" name="sp:spark"
class="absolute top-1/2 -translate-y-1/2 s-color-primary-500" class="absolute top-1/2 -translate-y-1/2 s-color-primary-500"
mode="svg" mode="svg"
:style="{ :style="{

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB