Skip to content

Commit

Permalink
update and fix
Browse files Browse the repository at this point in the history
Signed-off-by: zxypro1 <[email protected]>
  • Loading branch information
zxypro1 committed Nov 12, 2024
1 parent 83382a8 commit bd759b2
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 19 deletions.
12 changes: 0 additions & 12 deletions src/assets/CNCF.svg

This file was deleted.

1 change: 1 addition & 0 deletions src/assets/cncf-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import {Icon} from "astro-icon/components";
import CNCF_LOGO from "../assets/CNCF.svg";
import CNCF_LOGO from "../assets/cncf-white.svg";
import {Picture} from "astro:assets";
interface FooterLinks {
Expand Down Expand Up @@ -46,7 +46,7 @@ const contactWays = [{

<footer class="my-40 mb-10">
<div class="flex flex-col items-center gap-2">
<p class="text-info">Serverless Devs 是 <a href="https://cncf.io/" class="text-accent">CNCF (云原生基金会)</a>
<p class="text-info">Serverless Devs 是 <a href="https://cncf.io/" style="color: rgba(38, 44, 244, 1);">CNCF (云原生基金会)</a>
沙箱项目</p>
<Picture
src={CNCF_LOGO}
Expand Down
5 changes: 4 additions & 1 deletion src/components/LineCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import starIcon from "@assets/icons/star.svg";
const {url, title, description, date, hot} = Astro.props;
---

<div class="card flex flex-col gap-8 text-white border border-[#4a4c57] rounded-xl p-5 hover:bg-[#1e1f22]">
<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')` >
<div class="p-3 bg-white bg-opacity-5 rounded-xl border-[0.8px] border-[#b3b6c1] w-fit">
<Picture class="rounded-full" src={starIcon} alt="starIcon"/>
</div>
Expand All @@ -30,4 +30,7 @@ const {url, title, description, date, hot} = Astro.props;
background-clip: text;
color: transparent;
}
.card:hover {
cursor: pointer; /* 鼠标悬停时更改为点击样式 */
}
</style>
Loading

0 comments on commit bd759b2

Please sign in to comment.