Skip to content

Commit 7eb19d3

Browse files
committed
.
1 parent 3e95b2a commit 7eb19d3

File tree

2 files changed

+19
-76
lines changed

2 files changed

+19
-76
lines changed

app/globals.css

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@
137137
@apply transition delay-100 duration-200;
138138
}
139139
}
140+
/* link underline */
141+
.animated-underline {
142+
border-bottom: 1px solid transparent;
143+
@apply transition delay-100 duration-200;
144+
}
145+
.animated-underline:hover {
146+
@apply border-b-inherit;
147+
}
140148

141149

142150

@@ -157,41 +165,14 @@
157165
.text-t1 {
158166
@apply text-5xl md:text-6xl;
159167
}
160-
.color-text-1 {
161-
width: fit-content;
162-
background-image: linear-gradient(to right, #4ec6df, #ee2e69, #f9a61a);
163-
-webkit-background-clip: text;
164-
color: transparent;
165-
}
166168

167169

168170

169171
/* fade in / out */
170172
.fade-in {
171173
transition: opacity 1.5s ease;
172174
}
173-
174175
.fade-out {
175176
opacity: 0;
176177
transition: opacity 1.5s ease;
177178
}
178-
179-
180-
181-
/* link underline */
182-
.animated-underline {
183-
border-bottom: 1px solid transparent;
184-
@apply transition delay-100 duration-200;
185-
}
186-
.animated-underline:hover {
187-
@apply border-b-inherit;
188-
}
189-
.member_bio {
190-
& a{
191-
border-bottom: 1px solid transparent;
192-
@apply text-o-dark-blue transition delay-100 duration-200;
193-
}
194-
& a:hover {
195-
@apply border-b-inherit;
196-
}
197-
}

app/layout.tsx

Lines changed: 11 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ import type { Metadata } from "next";
22
import * as React from "react"
33
import Link from "next/link"
44
import { Button } from "@/components/ui/button"
5-
import {
6-
Sheet,
7-
SheetContent,
8-
SheetDescription,
9-
SheetHeader,
10-
SheetTitle,
11-
SheetTrigger,
12-
} from "@/components/ui/homesheet"
135

146

157

@@ -43,16 +35,6 @@ export const metadata: Metadata = {
4335

4436

4537

46-
// header
47-
const headers: { title: string; href: string; }[] = [
48-
// {
49-
// title: "About Us",
50-
// href: "/about-us",
51-
// },
52-
]
53-
54-
55-
5638
export default function RootLayout({
5739
children,
5840
}: Readonly<{
@@ -65,48 +47,25 @@ export default function RootLayout({
6547

6648

6749
<header>
50+
51+
52+
6853
<div className="fixed flex flex-row gap-3 m-6 z-20 flex-wrap">
6954
<Button asChild className="bg-background text-foreground hover:bg-white group">
7055
<Link href="/" className="select-none">
7156
<Image
7257
src="/logo/OpenDriveLab/D.png"
7358
alt="OpenDriveLab"
74-
width={24}
75-
height={24}
59+
width={20}
60+
height={20}
7661
className="group-hover:scale-125 transition delay-100 duration-200"
7762
/>
7863
</Link>
7964
</Button>
80-
{headers.map((header) => (
81-
<Button asChild key={header.title} className="bg-background text-foreground hover:bg-mred hover:text-white">
82-
<Link href={header.href} className="select-none">{header.title}</Link>
83-
</Button>
84-
))}
85-
{/* <Sheet>
86-
<SheetTrigger asChild>
87-
<Button asChild key={headers[0].title} className="bg-background text-foreground hover:bg-amber-400 md:hidden">
88-
<Button className="select- hover:cursor-pointer">{headers[0].title}</Button>
89-
</Button>
90-
</SheetTrigger>
91-
<SheetContent side="left">
92-
<SheetHeader>
93-
<SheetTitle className="hidden">hidden</SheetTitle>
94-
<SheetDescription className="hidden">
95-
hidden
96-
</SheetDescription>
97-
</SheetHeader>
98-
<div className="fixed flex flex-col gap-3 m-6">
99-
{headers.map((header) => (
100-
<Button asChild key={header.title} className="bg-background text-foreground hover:bg-amber-400">
101-
<Link href={header.href} className="select-none">
102-
<div className="w-full flex justify-start">{header.title}</div>
103-
</Link>
104-
</Button>
105-
))}
106-
</div>
107-
</SheetContent>
108-
</Sheet> */}
10965
</div>
66+
67+
68+
11069
<div className="fixed right-0 bottom-0 m-6 z-20">
11170
<Link href="#" className="bg-background text-foreground hover:bg-mred hover:text-background rounded-full flex justify-center items-center p-2 select-none">
11271
<span>
@@ -117,6 +76,9 @@ export default function RootLayout({
11776
</span>
11877
</Link>
11978
</div>
79+
80+
81+
12082
</header>
12183

12284

0 commit comments

Comments
 (0)