Skip to content

Commit 899645a

Browse files
committed
.
1 parent a4e4044 commit 899645a

1 file changed

Lines changed: 78 additions & 8 deletions

File tree

app/(default_site)/layout.tsx

Lines changed: 78 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,69 @@ import * as React from "react"
22

33

44

5-
import "../globals.css";
5+
import Link from "next/link"
6+
import Image from 'next/image'
7+
import { AspectRatio } from "@/components/ui/aspect-ratio"
68

79

810

9-
// font
10-
import { Inter } from "next/font/google";
11-
const inter = Inter({
12-
subsets: ["latin"],
13-
display: "swap",
14-
});
11+
const links: {
12+
icon: string;
13+
url: string;
14+
}[] = [
15+
{
16+
icon: 'email',
17+
url: 'mailto:contact@opendrivelab.com',
18+
},
19+
{
20+
icon: 'github',
21+
url: 'https://github.com/OpenDriveLab',
22+
},
23+
{
24+
icon: 'huggingface',
25+
url: 'https://huggingface.co/OpenDriveLab',
26+
},
27+
{
28+
icon: 'x',
29+
url: 'https://twitter.com/OpenDriveLab',
30+
},
31+
{
32+
icon: 'bluesky',
33+
url: 'https://bsky.app/profile/opendrivelab.bsky.social',
34+
},
35+
{
36+
icon: 'linkedin',
37+
url: 'https://www.linkedin.com/company/opendrivelab/',
38+
},
39+
{
40+
icon: 'zhihu',
41+
url: 'https://www.zhihu.com/people/PerceptionX',
42+
},
43+
{
44+
icon: 'xiaohongshu',
45+
url: 'https://www.xiaohongshu.com/user/profile/67467f16000000001c0182ba',
46+
},
47+
{
48+
icon: 'youtube',
49+
url: 'https://www.youtube.com/@OpenDriveLab',
50+
},
51+
{
52+
icon: 'bilibili',
53+
url: 'https://space.bilibili.com/503310953',
54+
},
55+
{
56+
icon: 'discord',
57+
url: 'https://discord.gg/vCw2PjR2B8',
58+
},
59+
// {
60+
// icon: 'wechat',
61+
// url: '2025.06',
62+
// },
63+
// {
64+
// icon: 'wechatgroup',
65+
// url: '2025.06',
66+
// },
67+
];
1568

1669

1770

@@ -25,10 +78,27 @@ export default function RootLayout({
2578

2679
{children}
2780

28-
<footer className="w-full px-6 my-24 flex flex-row justify-center select-none">
81+
<footer className="w-full px-6 mt-24 mb-12 gap-6 flex flex-col items-center select-none">
82+
83+
<div className="w-full max-w-7xl flex gap-6 flex-wrap">
84+
{links.map((link) => (
85+
<Link href={link.url} target="_blank" key={link.icon} className="size-4 md:size-5 group">
86+
<AspectRatio ratio={1/1}>
87+
<Image
88+
src={"/icon/" + link.icon + ".svg"}
89+
alt={link.icon}
90+
fill
91+
className="group-hover:scale-125 transition duration-200"
92+
/>
93+
</AspectRatio>
94+
</Link>
95+
))}
96+
</div>
97+
2998
<div className="w-full max-w-7xl text-xs">
3099
OpenDriveLab © 2021 - 2025
31100
</div>
101+
32102
</footer>
33103

34104
</main>

0 commit comments

Comments
 (0)