Skip to content

Commit eb5d3a4

Browse files
committed
style(lab):adjust ui
1 parent a78acc6 commit eb5d3a4

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

src/components/LabCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const LabCard: React.FC<LabCardProps> = ({ data }) => {
1919
</div>
2020
<div className="flex justify-between items-center">
2121
<div className="flex flex-col gap-1 p-1 font-normal">
22-
<p className="text-zinc-200 text-sm">{en_title}</p>
22+
<p className="text-zinc-200 text-sm">{inDevelopment && '🚧'} {en_title}</p>
2323
<div className="flex gap-1">
2424
{
2525
tags.map(tag => (

src/data/labs/3d-hover-card/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ const Card: React.FC<CardProps> = ({ src, ...props }) => {
7070
transform: `perspective(500px) rotateX(${-y * 3}deg) rotateY(${x * 3}deg)`,
7171
transition: 'transform 0.2s ease-out',
7272
willChange: 'transform',
73-
}} className={cn('group border border-zinc-700 rounded-xl overflow-hidden', props.className)}>
73+
}} className={cn('group border border-neutral-400 rounded-xl overflow-hidden', props.className)}>
7474
<div style={{
7575
transform: `translateX(${x * 4}px) translateY(${y * 4}px)`,
7676
transition: 'transform 0.1s ease-out',
7777
transitionProperty: 'transform,opacity',
7878
willChange: 'transform',
7979
}} className="absolute top-0 left-0 w-full h-full pointer-events-none opacity-0 group-hover:opacity-100">
80-
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 inset-0 w-16 h-16 blur-lg bg-white/50 rounded-full"></div>
80+
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 inset-0 w-20 h-20 blur-lg bg-white/20 rounded-full"></div>
8181
</div>
8282
<img src={src} />
8383
</div>

src/data/labs/cd-widget/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export default function CdWidget() {
77
const [isPlay, setIsPlay] = useState<boolean>(false);
88
return (
99
<div className="flex items-center justify-center p-6">
10-
<div className="relative flex flex-col w-48 h-48 overflow-hidden bg-zinc-300 rounded-3xl border border-zinc-600 shadow-lg">
10+
<div className="relative flex flex-col w-48 h-48 overflow-hidden bg-zinc-300 rounded-3xl shadow-lg">
11+
<div className="absolute pointer-events-none rounded-[inherit] z-10 top-0 left-0 w-full h-full border border-neutral-400/40"></div>
1112
<div className="absolute w-full h-full blur-md opacity-30">
1213
<img className="w-full h-full object-cover" src={cover} alt="jaychou" />
1314
</div>

src/data/labs/css-toast/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
flex-direction: column;
1010
justify-content: center;
1111
align-items: center;
12+
overflow: hidden;
1213
gap: 1rem;
1314
padding: 2rem 1rem;
1415

src/data/labs/data.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@
4646
"css-toast": {
4747
"name": "css-toast",
4848
"inDevelopment": false,
49-
"en_title": "CSS Toast 🚧",
49+
"en_title": "CSS Toast",
5050
"origin_url": "",
51-
"title": "css toast 🚧",
51+
"title": "css toast",
5252
"tags": [
5353
"CSS"
5454
]
5555
},
5656
"dnd-stack": {
5757
"name": "dnd-stack",
5858
"inDevelopment": true,
59-
"en_title": "Dnd Stack 🚧",
59+
"en_title": "Dnd Stack",
6060
"origin_url": "",
61-
"title": "拖放和堆叠 🚧",
61+
"title": "拖放和堆叠",
6262
"tags": [
6363
"Tailwind",
6464
"Motion"

0 commit comments

Comments
 (0)