mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
some minor adjustments
This commit is contained in:
@@ -304,10 +304,13 @@ const CustomizableStack = () => {
|
|||||||
zoomOnPinch={false}
|
zoomOnPinch={false}
|
||||||
preventScrolling={false}
|
preventScrolling={false}
|
||||||
nodesConnectable={true}
|
nodesConnectable={true}
|
||||||
nodesDraggable={false}
|
nodesDraggable={true}
|
||||||
connectOnClick={true}
|
connectOnClick={true}
|
||||||
deleteKeyCode="Delete"
|
deleteKeyCode="Delete"
|
||||||
selectionKeyCode="Shift"
|
selectionKeyCode="Shift"
|
||||||
|
proOptions={{
|
||||||
|
hideAttribution: true,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Background
|
<Background
|
||||||
className="bg-gray-950/5"
|
className="bg-gray-950/5"
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ const Navbar = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<nav
|
<nav
|
||||||
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 ${
|
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 ${
|
||||||
scrolled
|
scrolled
|
||||||
? "bg-transparent border-transparent"
|
? "bg-transparent border-transparent"
|
||||||
: "sm:bg-black/10 sm:backdrop-blur-xl sm:border-b border-white/10"
|
: "sm:bg-black/10 sm:backdrop-blur-xl sm:border-b border-white/10"
|
||||||
|
|||||||
@@ -77,6 +77,22 @@ const TechConstellation = () => {
|
|||||||
const centerRef = useRef<HTMLDivElement>(null);
|
const centerRef = useRef<HTMLDivElement>(null);
|
||||||
const techRefs = useRef<{ [key: string]: HTMLDivElement | null }>({});
|
const techRefs = useRef<{ [key: string]: HTMLDivElement | null }>({});
|
||||||
const [isVisible, setIsVisible] = useState(false);
|
const [isVisible, setIsVisible] = useState(false);
|
||||||
|
const [stars, setStars] = useState<
|
||||||
|
Array<{
|
||||||
|
left: string;
|
||||||
|
top: string;
|
||||||
|
delay: string;
|
||||||
|
}>
|
||||||
|
>([]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const newStars = Array.from({ length: 20 }, () => ({
|
||||||
|
left: `${Math.random() * 100}%`,
|
||||||
|
top: `${Math.random() * 100}%`,
|
||||||
|
delay: `${Math.random() * 5}s`,
|
||||||
|
}));
|
||||||
|
setStars(newStars);
|
||||||
|
}, []);
|
||||||
|
|
||||||
const calculateRadius = (category: string) => {
|
const calculateRadius = (category: string) => {
|
||||||
switch (category) {
|
switch (category) {
|
||||||
@@ -210,15 +226,14 @@ const TechConstellation = () => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="absolute inset-0 overflow-hidden">
|
<div className="absolute inset-0 overflow-hidden">
|
||||||
{[...Array(20)].map((_, i) => (
|
{stars.map((star) => (
|
||||||
<div
|
<div
|
||||||
// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
|
key={star.top}
|
||||||
key={`star-${i}`}
|
|
||||||
className="absolute w-2 h-2 bg-blue-500 rounded-full opacity-20"
|
className="absolute w-2 h-2 bg-blue-500 rounded-full opacity-20"
|
||||||
style={{
|
style={{
|
||||||
left: `${Math.random() * 100}%`,
|
left: star.left,
|
||||||
top: `${Math.random() * 100}%`,
|
top: star.top,
|
||||||
animationDelay: `${Math.random() * 5}s`,
|
animationDelay: star.delay,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import { baseOptions } from "@/app/layout.config";
|
|
||||||
import { HomeLayout } from "fumadocs-ui/layouts/home";
|
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import type { ReactNode } from "react";
|
import type { ReactNode } from "react";
|
||||||
import Footer from "./_components/Footer";
|
import Footer from "./_components/Footer";
|
||||||
@@ -12,10 +10,10 @@ export const metadata: Metadata = {
|
|||||||
|
|
||||||
export default function Layout({ children }: { children: ReactNode }) {
|
export default function Layout({ children }: { children: ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<HomeLayout {...baseOptions}>
|
<main className="relative z-10 min-h-svh bg-zinc-50 dark:bg-zinc-950 transition-colors duration-300 overflow-hidden">
|
||||||
<Navbar />
|
<Navbar />
|
||||||
{children}
|
{children}
|
||||||
<Footer />
|
<Footer />
|
||||||
</HomeLayout>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import ShinyText from "components/ShinyText/ShinyText";
|
import ShinyText from "components/ShinyText/ShinyText";
|
||||||
import { Poppins } from "next/font/google";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import BackgroundGradients from "./_components/BackgroundGradients";
|
import BackgroundGradients from "./_components/BackgroundGradients";
|
||||||
import CodeContainer from "./_components/CodeContainer";
|
import CodeContainer from "./_components/CodeContainer";
|
||||||
@@ -12,17 +11,9 @@ import TechConstellation from "./_components/TechConstellation";
|
|||||||
import TerminalDisplay from "./_components/Terminal";
|
import TerminalDisplay from "./_components/Terminal";
|
||||||
import Testimonials from "./_components/Testimonials";
|
import Testimonials from "./_components/Testimonials";
|
||||||
|
|
||||||
const poppins = Poppins({
|
|
||||||
subsets: ["latin"],
|
|
||||||
weight: ["400", "500", "600", "700"],
|
|
||||||
});
|
|
||||||
|
|
||||||
export default function HomePage() {
|
export default function HomePage() {
|
||||||
return (
|
return (
|
||||||
<main
|
<main className="flex flex-col items-center justify-start sm:p-8 p-4 !pt-40">
|
||||||
className="min-h-screen flex flex-col items-center justify-start sm:p-8 p-4 !pt-20"
|
|
||||||
style={poppins.style}
|
|
||||||
>
|
|
||||||
<BackgroundGradients />
|
<BackgroundGradients />
|
||||||
<Spotlight />
|
<Spotlight />
|
||||||
<SideCircles />
|
<SideCircles />
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ const poppins = Poppins({
|
|||||||
export default function Layout({ children }: { children: ReactNode }) {
|
export default function Layout({ children }: { children: ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" className={poppins.className} suppressHydrationWarning>
|
<html lang="en" className={poppins.className} suppressHydrationWarning>
|
||||||
<body className="flex flex-col min-h-screen relative bg-black">
|
<body>
|
||||||
<RootProvider
|
<RootProvider
|
||||||
search={{
|
search={{
|
||||||
options: {
|
options: {
|
||||||
@@ -19,9 +19,7 @@ export default function Layout({ children }: { children: ReactNode }) {
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="relative z-10 bg-zinc-50 dark:bg-zinc-950 transition-colors duration-300 overflow-hidden">
|
{children}
|
||||||
{children}
|
|
||||||
</div>
|
|
||||||
</RootProvider>
|
</RootProvider>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user