fix: 修bug

This commit is contained in:
yCENzh
2025-09-06 10:03:25 +08:00
parent 13fab64bb7
commit c2fc6940ae
5 changed files with 9 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ const { badge, url, label } = Astro.props;
{ badge !== undefined && badge !== null && badge !== '' &&
<div class="transition px-2 h-7 ml-4 min-w-[2rem] rounded-lg text-sm font-bold
text-[var(--btn-content)] dark:text-[var(--deep-text)]
bg-[oklch(0.95_0.025_var(--hue))] dark:bg-[var(--primary)]
bg-[var(--btn-regular-bg)] dark:bg-[var(--primary)]
flex items-center justify-center">
{ badge }
</div>

View File

@@ -22,7 +22,7 @@ const config = profileConfig;
<div class="font-bold text-xl text-center mb-1 dark:text-neutral-50 transition">{config.name}</div>
<div class="h-1 w-5 bg-[var(--primary)] mx-auto rounded-full mb-2 transition"></div>
<div class="text-center text-neutral-400 mb-2.5 transition">{config.bio}</div>
<div class="flex gap-2 justify-center mb-1">
<div class="flex flex-wrap gap-2 justify-center mb-1">
{config.links.length > 1 && config.links.map(item =>
<a rel="me" aria-label={item.name} href={item.url} target="_blank" class="btn-regular rounded-lg h-10 w-10 active:scale-90">
<Icon name={item.icon} class="text-[1.5rem]"></Icon>

View File

@@ -12,10 +12,10 @@ import { Icon } from "astro-icon/components";
<h1 class="text-2xl font-bold text-black dark:text-white">友链</h1>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<a href="https://fuwari.14131413.xyz/" target="_blank" class="friend-card">
<a href="https://fuwari.oh1.top/" target="_blank" class="friend-card">
<div class="flex items-center gap-2">
<img src="https://fuwari.14131413.xyz/_astro/demo-avatar.CxcI0ivM_1nbuVe.webp" loading="lazy" class="w-5 h-5 rounded">
<div class="font-bold text-black dark:text-white">yCENzhBlog</div>
<img src="https://fuwari.oh1.top/avatar.webp" loading="lazy" class="w-5 h-5 rounded">
<div class="font-bold text-black dark:text-white">yCENzh's Blog</div>
</div>
<div class="text-sm text-black/50 dark:text-white/50">Ciallo(∠・ω&lt; )⌒☆ </div>
</a>

View File

@@ -26,6 +26,8 @@
underline decoration-[var(--link-underline)] decoration-1 decoration-dashed underline-offset-4;
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
display: inline-block;
&:hover, &:active {
@apply decoration-transparent;

View File

@@ -92,8 +92,8 @@ define({
--admonitions-color-warning: oklch(0.7 0.14 60) oklch(0.75 0.14 60)
--admonitions-color-caution: oklch(0.6 0.2 25) oklch(0.65 0.2 25)
--toc-badge-bg: oklch(0.9 0.045 var(--hue)) var(--btn-regular-bg)
--toc-btn-hover: oklch(0.92 0.015 var(--hue)) oklch(0.22 0.02 var(--hue))
--toc-badge-bg: oklch(0.89 0.050 var(--hue)) var(--btn-regular-bg)
--toc-btn-hover: oklch(0.926 0.015 var(--hue)) oklch(0.22 0.02 var(--hue))
--toc-btn-active: oklch(0.90 0.015 var(--hue)) oklch(0.25 0.02 var(--hue))
--toc-width: calc((100vw - var(--page-width)) / 2 - 1rem)
--toc-item-active: oklch(0.70 0.13 var(--hue)) oklch(0.35 0.07 var(--hue))