Skip to content

Commit 5b50160

Browse files
some minor adjustments
1 parent 4228551 commit 5b50160

File tree

7 files changed

+32
-27
lines changed

7 files changed

+32
-27
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,13 @@ const CustomizableStack = () => {
304304
zoomOnPinch={false}
305305
preventScrolling={false}
306306
nodesConnectable={true}
307-
nodesDraggable={false}
307+
nodesDraggable={true}
308308
connectOnClick={true}
309309
deleteKeyCode="Delete"
310310
selectionKeyCode="Shift"
311+
proOptions={{
312+
hideAttribution: true,
313+
}}
311314
>
312315
<Background
313316
className="bg-gray-950/5"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const Navbar = () => {
4141

4242
return (
4343
<nav
44-
className={`fixed top-0 left-0 z-[100] w-screen px-8 py-5 flex items-center sm:justify-between justify-center transition-all duration-300 ${
44+
className={`fixed top-0 right-0 z-[100] w-screen px-8 py-5 flex items-center sm:justify-between justify-center transition-all duration-300 ${
4545
scrolled
4646
? "bg-transparent border-transparent"
4747
: "sm:bg-black/10 sm:backdrop-blur-xl sm:border-b border-white/10"

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

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,22 @@ const TechConstellation = () => {
7777
const centerRef = useRef<HTMLDivElement>(null);
7878
const techRefs = useRef<{ [key: string]: HTMLDivElement | null }>({});
7979
const [isVisible, setIsVisible] = useState(false);
80+
const [stars, setStars] = useState<
81+
Array<{
82+
left: string;
83+
top: string;
84+
delay: string;
85+
}>
86+
>([]);
87+
88+
useEffect(() => {
89+
const newStars = Array.from({ length: 20 }, () => ({
90+
left: `${Math.random() * 100}%`,
91+
top: `${Math.random() * 100}%`,
92+
delay: `${Math.random() * 5}s`,
93+
}));
94+
setStars(newStars);
95+
}, []);
8096

8197
const calculateRadius = (category: string) => {
8298
switch (category) {
@@ -210,15 +226,14 @@ const TechConstellation = () => {
210226
)}
211227

212228
<div className="absolute inset-0 overflow-hidden">
213-
{[...Array(20)].map((_, i) => (
229+
{stars.map((star) => (
214230
<div
215-
// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
216-
key={`star-${i}`}
231+
key={star.top}
217232
className="absolute w-2 h-2 bg-blue-500 rounded-full opacity-20"
218233
style={{
219-
left: `${Math.random() * 100}%`,
220-
top: `${Math.random() * 100}%`,
221-
animationDelay: `${Math.random() * 5}s`,
234+
left: star.left,
235+
top: star.top,
236+
animationDelay: star.delay,
222237
}}
223238
/>
224239
))}

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { baseOptions } from "@/app/layout.config";
2-
import { HomeLayout } from "fumadocs-ui/layouts/home";
31
import type { Metadata } from "next";
42
import type { ReactNode } from "react";
53
import Footer from "./_components/Footer";
@@ -12,10 +10,10 @@ export const metadata: Metadata = {
1210

1311
export default function Layout({ children }: { children: ReactNode }) {
1412
return (
15-
<HomeLayout {...baseOptions}>
13+
<main className="relative z-10 min-h-svh bg-zinc-50 dark:bg-zinc-950 transition-colors duration-300 overflow-hidden">
1614
<Navbar />
1715
{children}
1816
<Footer />
19-
</HomeLayout>
17+
</main>
2018
);
2119
}

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client";
22
import ShinyText from "components/ShinyText/ShinyText";
3-
import { Poppins } from "next/font/google";
43
import React from "react";
54
import BackgroundGradients from "./_components/BackgroundGradients";
65
import CodeContainer from "./_components/CodeContainer";
@@ -12,17 +11,9 @@ import TechConstellation from "./_components/TechConstellation";
1211
import TerminalDisplay from "./_components/Terminal";
1312
import Testimonials from "./_components/Testimonials";
1413

15-
const poppins = Poppins({
16-
subsets: ["latin"],
17-
weight: ["400", "500", "600", "700"],
18-
});
19-
2014
export default function HomePage() {
2115
return (
22-
<main
23-
className="min-h-screen flex flex-col items-center justify-start sm:p-8 p-4 !pt-20"
24-
style={poppins.style}
25-
>
16+
<main className="flex flex-col items-center justify-start sm:p-8 p-4 !pt-40">
2617
<BackgroundGradients />
2718
<Spotlight />
2819
<SideCircles />

apps/web/src/app/layout.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ const poppins = Poppins({
1111
export default function Layout({ children }: { children: ReactNode }) {
1212
return (
1313
<html lang="en" className={poppins.className} suppressHydrationWarning>
14-
<body className="flex flex-col min-h-screen relative bg-black">
14+
<body>
1515
<RootProvider
1616
search={{
1717
options: {
1818
type: "static",
1919
},
2020
}}
2121
>
22-
<div className="relative z-10 bg-zinc-50 dark:bg-zinc-950 transition-colors duration-300 overflow-hidden">
23-
{children}
24-
</div>
22+
{children}
2523
</RootProvider>
2624
</body>
2725
</html>

bun.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"apps/cli": {
1616
"name": "create-better-t-stack",
17-
"version": "0.7.4",
17+
"version": "0.7.5",
1818
"bin": {
1919
"create-better-t-stack": "dist/index.js"
2020
},

0 commit comments

Comments
 (0)