Skip to content

Commit 659cc54

Browse files
authored
Merge pull request #27 from tclxshunquan-wang/feat/docs
refactor: update highlighting card styles and improve icon usage in H…
2 parents 6b60c47 + 2c930db commit 659cc54

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

website/src/app/(home)/widgets/HomeView.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const features = [
4646
},
4747
{
4848
title: 'Async Support',
49-
icon: 'carbon:async',
49+
icon: 'logos:async-api-icon',
5050
description: 'Built-in support for asynchronous operations',
5151
},
5252
];
@@ -72,9 +72,9 @@ export const HomeView: FC = () => {
7272
<div
7373
className={`${styles.right_layout} order-first hidden md:order-none md:col-span-2 md:block`}
7474
>
75-
<div className={styles.image_bg} />
75+
<div className={`${styles.image_bg} hidden dark:block`} />
7676
<DotLottieReact
77-
src="/logger/assets/lottie/niu1.lottie"
77+
src="/logger/assets/lottie/niu.lottie"
7878
loop
7979
autoplay
8080
/>
@@ -89,7 +89,7 @@ export const HomeView: FC = () => {
8989
id="highlighting-card"
9090
className="space-y-4"
9191
>
92-
<div className="flex size-10 items-center justify-center rounded-sm bg-slate-500/40">
92+
<div className="flex size-10 items-center justify-center rounded-sm bg-transparent dark:bg-slate-500/10">
9393
<Icon icon={feature.icon} className="size-6 text-white" />
9494
</div>
9595
<h4 className="flex items-center gap-2 text-xl font-bold">

website/src/app/(home)/widgets/page.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,10 @@
6868
}
6969
#highlighting-card {
7070
min-height: 200px;
71-
background-image:
72-
linear-gradient(to top, transparent, #fff 50%),
73-
url(/assets/syntax-highlighting.svg);
7471
background-size: 634px;
7572
background-position: -6px calc(100% + 4px);
7673
background-repeat: no-repeat;
7774
}
78-
.dark #highlighting-card {
79-
background-image:
80-
linear-gradient(to top, transparent, #202020 50%),
81-
url(/assets/syntax-highlighting.svg);
82-
}
8375
.feat-darkmode {
8476
min-height: 300px;
8577
}

website/src/app/page.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,10 @@
6868
}
6969
#highlighting-card {
7070
min-height: 300px;
71-
background-image:
72-
linear-gradient(to top, transparent, #fff 50%),
73-
url(/assets/syntax-highlighting.svg);
7471
background-size: 634px;
7572
background-position: -6px calc(100% + 4px);
7673
background-repeat: no-repeat;
7774
}
78-
.dark #highlighting-card {
79-
background-image:
80-
linear-gradient(to top, transparent, #202020 50%),
81-
url(/assets/syntax-highlighting.svg);
82-
}
8375
.feat-darkmode {
8476
min-height: 300px;
8577
}

0 commit comments

Comments
 (0)