File tree Expand file tree Collapse file tree 6 files changed +13
-19
lines changed
Expand file tree Collapse file tree 6 files changed +13
-19
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export function CommandDisplay({ command }: CommandDisplayProps) {
1818
1919 return (
2020 < div className = "relative group" >
21- < div className = "bg-gray-950/90 border border-gray-800 rounded-lg p-4 font-mono text-sm text-gray-300 overflow-x-auto" >
21+ < div className = "bg-gray-950/20 backdrop-blur-xl border border-gray-800 rounded-lg p-4 font-mono text-sm text-gray-300 overflow-x-auto" >
2222 < button
2323 type = "button"
2424 onClick = { copyToClipboard }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const Navbar = () => {
3939
4040 return (
4141 < nav
42- className = { `fixed top-0 left-0 z-50 w-screen px-8 py-5 flex items-center justify-between transition-all duration-300 ${
42+ className = { `fixed top-0 left-0 z-[100] w-screen px-8 py-5 flex items-center justify-between transition-all duration-300 ${
4343 scrolled
4444 ? "bg-transparent border-transparent"
4545 : "bg-black/10 backdrop-blur-xl border-b border-white/10"
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ const TerminalDisplay = () => {
1818║ ██║ ███████║ ██║ ██║ ██║╚██████╗██║ ██╗ ║
1919║ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ║
2020║ ║
21- ║ The Modern Full-Stack Framework ║
22- ║ ║
2321╚════════════════════════════════════════════════════════════╝
2422 ` ;
2523
Original file line number Diff line number Diff line change @@ -2,12 +2,18 @@ import { baseOptions } from "@/app/layout.config";
22import { HomeLayout } from "fumadocs-ui/layouts/home" ;
33import type { Metadata } from "next" ;
44import type { ReactNode } from "react" ;
5+ import Navbar from "./_components/Navbar" ;
56
67export const metadata : Metadata = {
78 title : "Better-T-Stack" ,
89 description : "Unleash the power of better-t-stack" ,
910} ;
1011
1112export default function Layout ( { children } : { children : ReactNode } ) {
12- return < HomeLayout { ...baseOptions } > { children } </ HomeLayout > ;
13+ return (
14+ < HomeLayout { ...baseOptions } >
15+ < Navbar />
16+ { children }
17+ </ HomeLayout >
18+ ) ;
1319}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const poppins = Poppins({
2020export default function HomePage ( ) {
2121 return (
2222 < main
23- className = "min-h-screen flex flex-col items-center justify-start p-8"
23+ className = "min-h-screen flex flex-col items-center justify-start p-8 pt-20 "
2424 style = { poppins . style }
2525 >
2626 < BackgroundGradients />
Original file line number Diff line number Diff line change 11import "./global.css" ;
22import { RootProvider } from "fumadocs-ui/provider" ;
33import { Poppins } from "next/font/google" ;
4- import { type ReactNode , Suspense } from "react" ;
5- import Navbar from "./(home)/_components/Navbar" ;
4+ import type { ReactNode } from "react" ;
65
76const poppins = Poppins ( {
87 subsets : [ "latin" ] ,
@@ -20,20 +19,11 @@ export default function Layout({ children }: { children: ReactNode }) {
2019 } ,
2120 } }
2221 >
23- < Navbar />
24- < div className = "relative z-10 bg-zinc-50 dark:bg-zinc-950 pt-20 transition-colors duration-300 overflow-hidden" >
25- < Suspense fallback = { < LoadingSpinner /> } > { children } </ Suspense >
22+ < div className = "relative z-10 bg-zinc-50 dark:bg-zinc-950 transition-colors duration-300 overflow-hidden" >
23+ { children }
2624 </ div >
2725 </ RootProvider >
2826 </ body >
2927 </ html >
3028 ) ;
3129}
32-
33- function LoadingSpinner ( ) {
34- return (
35- < div className = "flex items-center justify-center min-h-[200px]" >
36- < div className = "w-8 h-8 border-4 border-zinc-300 border-t-zinc-800 rounded-full animate-spin" />
37- </ div >
38- ) ;
39- }
You can’t perform that action at this time.
0 commit comments