Skip to content

Commit 548a76b

Browse files
committed
fix:首页添加 ai 文字
1 parent 697c2d8 commit 548a76b

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

docs/.vitepress/theme/components/liuliang.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="fixed bottom-10 right-0 gap-2 flex flex-col z-auto bg-white shadow p-2 rounded" v-if="showAD">
2+
<div class="fixed bottom-10 right-0 gap-2 flex flex-col z-[999] bg-white shadow p-2 rounded" v-if="showAD">
33
<a class="flex items-center justify-center rounded overflow-hidden" target="_blank" href="https://plugin.gin-vue-admin.com/#/layout/newPluginInfo?id=69">
44
<img :width="160" src="/advertising/cms.png" alt="cms">
55
</a>

docs/.vitepress/theme/styles/global.scss

+26
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,36 @@ body {
1515
.VPImage.image-src{
1616
width: 400px !important;
1717
}
18+
19+
1820
// 重置首页 logo 背景颜色
1921
.image-bg{
2022
background-image: linear-gradient( 135deg, #6DCFFA 10%, #94F2D4 100%) !important;
2123
}
24+
.main .name .clip{
25+
background: var(--vp-home-hero-name-background);
26+
-webkit-background-clip: text;
27+
background-clip: text;
28+
-webkit-text-fill-color: var(--vp-home-hero-name-color);
29+
position: relative;
30+
}
31+
.main .name .clip::after{
32+
content: "";
33+
position: absolute;
34+
top: -12px;
35+
right: -40px;
36+
background-color: #4FA1D7;
37+
border-radius: 12px;
38+
z-index: 99;
39+
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 16v-6a2 2 0 1 1 4 0v6m-4-3h4m4-5v8'/%3E%3C/svg%3E");
40+
background-image: url("/tabler--ai.svg");
41+
background-repeat: no-repeat;
42+
background-position: center center;
43+
background-size: cover;
44+
width: 40px;
45+
height: 40px;
46+
}
47+
2248

2349
.gray {
2450
-webkit-filter: grayscale(100%);

docs/public/tabler--ai.svg

+1
Loading

0 commit comments

Comments
 (0)