Skip to content

Commit e9a04a0

Browse files
committed
update and fix
Signed-off-by: zxypro1 <[email protected]>
1 parent 83382a8 commit e9a04a0

File tree

7 files changed

+1323
-1123
lines changed

7 files changed

+1323
-1123
lines changed

package-lock.json

Lines changed: 1308 additions & 1100 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"@astrojs/check": "^0.5.6",
14-
"@astrojs/partytown": "^2.0.4",
15-
"@astrojs/preact": "^3.1.2",
16-
"@astrojs/starlight": "^0.24.0",
17-
"@astrojs/starlight-tailwind": "^2.0.1",
18-
"@astrojs/tailwind": "^5.1.0",
13+
"@astrojs/check": "^0.9.4",
14+
"@astrojs/partytown": "^2.1.2",
15+
"@astrojs/preact": "^3.5.3",
16+
"@astrojs/starlight": "^0.29.0",
17+
"@astrojs/starlight-tailwind": "^2.0.3",
18+
"@astrojs/tailwind": "^5.1.2",
1919
"@b-design/color": "^1.0.7",
2020
"@docsearch/css": "^3.5.2",
2121
"@docsearch/js": "^3.5.2",
@@ -29,7 +29,7 @@
2929
"@iconify-json/uil": "^1.1.8",
3030
"@lorenzo_lewis/starlight-utils": "^0.1.2",
3131
"@serverless-cd/goat-ui": "^0.0.28",
32-
"astro": "^4.8.6",
32+
"astro": "^4.16.10",
3333
"astro-compress": "^2.2.11",
3434
"astro-icon": "^1.1.0",
3535
"astro-navbar": "^2.3.3",

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)