Skip to content

Commit bd759b2

Browse files
committed
update and fix
Signed-off-by: zxypro1 <1018995004@qq.com>
1 parent 83382a8 commit bd759b2

File tree

5 files changed

+41
-19
lines changed

5 files changed

+41
-19
lines changed

src/assets/CNCF.svg

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/assets/cncf-white.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/Footer.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import {Icon} from "astro-icon/components";
3-
import CNCF_LOGO from "../assets/CNCF.svg";
3+
import CNCF_LOGO from "../assets/cncf-white.svg";
44
import {Picture} from "astro:assets";
55
66
interface FooterLinks {
@@ -46,7 +46,7 @@ const contactWays = [{
4646

4747
<footer class="my-40 mb-10">
4848
<div class="flex flex-col items-center gap-2">
49-
<p class="text-info">Serverless Devs 是 <a href="https://cncf.io/" class="text-accent">CNCF (云原生基金会)</a>
49+
<p class="text-info">Serverless Devs 是 <a href="https://cncf.io/" style="color: rgba(38, 44, 244, 1);">CNCF (云原生基金会)</a>
5050
沙箱项目</p>
5151
<Picture
5252
src={CNCF_LOGO}

src/components/LineCard.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import starIcon from "@assets/icons/star.svg";
66
const {url, title, description, date, hot} = Astro.props;
77
---
88

9-
<div class="card flex flex-col gap-8 text-white border border-[#4a4c57] rounded-xl p-5 hover:bg-[#1e1f22]">
9+
<div class="card flex flex-col gap-8 text-white border border-[#4a4c57] rounded-xl p-5 hover:bg-[#1e1f22]" onclick=`window.open('${url}', '_blank')` >
1010
<div class="p-3 bg-white bg-opacity-5 rounded-xl border-[0.8px] border-[#b3b6c1] w-fit">
1111
<Picture class="rounded-full" src={starIcon} alt="starIcon"/>
1212
</div>
@@ -30,4 +30,7 @@ const {url, title, description, date, hot} = Astro.props;
3030
background-clip: text;
3131
color: transparent;
3232
}
33+
.card:hover {
34+
cursor: pointer; /* 鼠标悬停时更改为点击样式 */
35+
}
3336
</style>

0 commit comments

Comments
 (0)