Skip to content

Commit 6d03d6b

Browse files
committed
fix styling move navbar from root & fix bugs
1 parent 3edd3de commit 6d03d6b

File tree

6 files changed

+13
-19
lines changed

6 files changed

+13
-19
lines changed

apps/web/src/app/(home)/_components/CommandDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}

apps/web/src/app/(home)/_components/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

apps/web/src/app/(home)/_components/Terminal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ const TerminalDisplay = () => {
1818
║ ██║ ███████║ ██║ ██║ ██║╚██████╗██║ ██╗ ║
1919
║ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ║
2020
║ ║
21-
║ The Modern Full-Stack Framework ║
22-
║ ║
2321
╚════════════════════════════════════════════════════════════╝
2422
`;
2523

apps/web/src/app/(home)/layout.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@ import { baseOptions } from "@/app/layout.config";
22
import { HomeLayout } from "fumadocs-ui/layouts/home";
33
import type { Metadata } from "next";
44
import type { ReactNode } from "react";
5+
import Navbar from "./_components/Navbar";
56

67
export const metadata: Metadata = {
78
title: "Better-T-Stack",
89
description: "Unleash the power of better-t-stack",
910
};
1011

1112
export 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
}

apps/web/src/app/(home)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const poppins = Poppins({
2020
export 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 />

apps/web/src/app/layout.tsx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import "./global.css";
22
import { RootProvider } from "fumadocs-ui/provider";
33
import { 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

76
const 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-
}

0 commit comments

Comments
 (0)