Skip to content

Commit 701981c

Browse files
committed
style:adjust ui
1 parent bb57852 commit 701981c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/components/LabCard.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
import React, { lazy, Suspense } from "react";
22
import { IconCode, IconBulb } from "@tabler/icons-react";
3+
import { Developing } from "./Developing";
34

45
interface LabCardProps {
56
data: Lab
67
}
78

89
export const LabCard: React.FC<LabCardProps> = ({ data }) => {
9-
let { name, en_title, tags, origin_url } = data;
10+
let { name, en_title, tags, origin_url, inDevelopment } = data;
1011
const Container = lazy(() => import(`@/data/labs/${name}/page.tsx`));
1112
const originCodeUrl = 'https://github.com/oopserian/oopserian.github.io/tree/main/src/data/labs/' + name;
1213

1314
return (
1415
<Suspense>
15-
<div id={name} className="relative flex flex-col gap-2 bg-zinc-950 border-zinc-800 border rounded-2xl overflow-hidden p-2 transition-[border-color] hover:border-zinc-700">
16-
<div className="flex-1 min-h-12 rounded-xl bg-zinc-900">
17-
<Container />
16+
<div id={name} className="relative flex flex-col gap-2 bg-zinc-950 border-zinc-800 border rounded-2xl overflow-hidden p-1.5 transition-[border-color] hover:border-zinc-700">
17+
<div className="relative flex-1 min-h-12 rounded-xl bg-zinc-900">
18+
{inDevelopment ? <Developing /> : <Container />}
1819
</div>
1920
<div className="flex justify-between items-center">
2021
<div className="flex flex-col gap-1 p-1 font-normal">

src/components/ProjectCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const ProjectCard: React.FC<ProjectCardProps> = ({ logo, name, descriptio
2020
x: 0.4,
2121
y: 1
2222
}} onClick={jumpLink} className={cn(
23-
"group p-3 border bg-zinc-900 border-zinc-800 rounded-2xl select-none",
23+
"group p-2 border bg-zinc-900 border-zinc-800 rounded-2xl select-none",
2424
(link ? "cursor-pointer" : "")
2525
)}>
2626
<HoverMotion.Magnetic strength={{

0 commit comments

Comments
 (0)