@@ -2,14 +2,6 @@ import type { Metadata } from "next";
22import * as React from "react"
33import Link from "next/link"
44import { 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-
5638export 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