Skip to content

Commit 20be6e1

Browse files
committed
.
1 parent 658b18f commit 20be6e1

5 files changed

Lines changed: 85 additions & 25 deletions

File tree

app/(default)/(home)/landing.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ export function Landing() {
228228
)
229229
} {
230230
landing.title.startsWith('Intelligent Robot') && (
231-
232231
<Drawer direction="top">
233232
<DrawerTrigger asChild>
234233
<span className="animated-underline-gray mr-3 text-nowrap">

app/(default)/(home)/page.tsx

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
import { Landing } from "./landing"
2727
import { News } from "./news"
2828
import { Embodied, E2EAD } from "@/components/app-drawer"
29+
import { Chen2025_value_learning } from "@/components/citation-drawer"
2930

3031

3132

@@ -301,19 +302,38 @@ export default function Home() {
301302
}
302303
{
303304
publication.icon.map((link) => (
304-
link.type != 'github' &&
305-
<Link href={link.link} target={link.link.startsWith('http') ? '_blank' : '_self'} key={link.type} className="size-4 md:size-5 group/icon">
306-
<AspectRatio ratio={1/1}>
307-
<Image
308-
src={"/resources/icon/" + link.type + ".svg"}
309-
alt={link.type}
310-
fill
311-
className="group-hover/icon:scale-125 transition delay-100 duration-200"
312-
/>
313-
</AspectRatio>
314-
</Link>
305+
link.type != 'github' && (
306+
link.type != 'cite' ?
307+
<Link href={link.link} target={link.link.startsWith('http') ? '_blank' : '_self'} key={link.type} className="size-4 md:size-5 group/icon">
308+
<AspectRatio ratio={1/1}>
309+
<Image
310+
src={"/resources/icon/" + link.type + ".svg"}
311+
alt={link.type}
312+
fill
313+
className="group-hover/icon:scale-125 transition delay-100 duration-200"
314+
/>
315+
</AspectRatio>
316+
</Link>
317+
:
318+
<Drawer direction="top" key={link.type}>
319+
<DrawerTrigger asChild>
320+
<div className="size-4 md:size-5 group/icon hover:cursor-pointer">
321+
<AspectRatio ratio={1/1}>
322+
<Image
323+
src={"/resources/icon/" + link.type + ".svg"}
324+
alt={link.type}
325+
fill
326+
className="group-hover/icon:scale-125 transition delay-100 duration-200"
327+
/>
328+
</AspectRatio>
329+
</div>
330+
</DrawerTrigger>
331+
<Chen2025_value_learning />
332+
</Drawer>
333+
)
315334
))
316335
}
336+
317337
</div>
318338

319339
</div>

app/(default)/(page)/publications/page.tsx

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,25 @@ export const metadata: Metadata = {
99

1010
import Image from 'next/image'
1111
import Link from "next/link"
12+
import { AspectRatio } from "@/components/ui/aspect-ratio"
13+
import {
14+
Drawer,
15+
DrawerClose,
16+
DrawerContent,
17+
DrawerDescription,
18+
DrawerFooter,
19+
DrawerHeader,
20+
DrawerTitle,
21+
DrawerTrigger,
22+
} from "@/components/ui/drawer"
1223

1324

1425

15-
import { AspectRatio } from "@/components/ui/aspect-ratio"
26+
import { categories, publications, scholar } from "@/data/publications"
1627

1728

1829

19-
import { categories, publications, scholar } from "@/data/publications"
30+
import { Chen2025_value_learning } from "@/components/citation-drawer"
2031

2132

2233

@@ -154,17 +165,35 @@ export default function Home() {
154165
}
155166
{
156167
publication.icon.map((link) => (
157-
link.type != 'github' &&
158-
<Link href={link.link} target={link.link.startsWith('http') ? '_blank' : '_self'} key={link.type} className="size-4 md:size-5 group/icon">
159-
<AspectRatio ratio={1/1}>
160-
<Image
161-
src={"/resources/icon/" + link.type + ".svg"}
162-
alt={link.type}
163-
fill
164-
className="group-hover/icon:scale-125 transition delay-100 duration-200"
165-
/>
166-
</AspectRatio>
167-
</Link>
168+
link.type != 'github' && (
169+
link.type != 'cite' ?
170+
<Link href={link.link} target={link.link.startsWith('http') ? '_blank' : '_self'} key={link.type} className="size-4 md:size-5 group/icon">
171+
<AspectRatio ratio={1/1}>
172+
<Image
173+
src={"/resources/icon/" + link.type + ".svg"}
174+
alt={link.type}
175+
fill
176+
className="group-hover/icon:scale-125 transition delay-100 duration-200"
177+
/>
178+
</AspectRatio>
179+
</Link>
180+
:
181+
<Drawer direction="top" key={link.type}>
182+
<DrawerTrigger asChild>
183+
<div className="size-4 md:size-5 group/icon hover:cursor-pointer">
184+
<AspectRatio ratio={1/1}>
185+
<Image
186+
src={"/resources/icon/" + link.type + ".svg"}
187+
alt={link.type}
188+
fill
189+
className="group-hover/icon:scale-125 transition delay-100 duration-200"
190+
/>
191+
</AspectRatio>
192+
</div>
193+
</DrawerTrigger>
194+
<Chen2025_value_learning />
195+
</Drawer>
196+
)
168197
))
169198
}
170199
</div>

data/publications.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ export const publications: {
9090
star: "",
9191
starlink: "",
9292
icon: [
93+
{
94+
type: "cite",
95+
link: "",
96+
},
9397
],
9498
description: "",
9599
keys: ['editor_pick', 'home_sliding', "position"],

public/resources/icon/cite.svg

Lines changed: 8 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)