diff --git a/apps/web/package.json b/apps/web/package.json index 63c6182..462ea89 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -12,11 +12,11 @@ "dependencies": { "@xyflow/react": "^12.4.3", "babel-plugin-react-compiler": "^19.0.0-beta-21e868a-20250216", - "framer-motion": "^12.4.3", "fumadocs-core": "15.0.6", "fumadocs-mdx": "11.5.3", "fumadocs-ui": "15.0.6", "lucide-react": "^0.475.0", + "motion": "^12.4.3", "next": "15.1.6", "react": "^19.0.0", "react-dom": "^19.0.0" diff --git a/apps/web/src/app/(home)/_components/CustomizableSection.tsx b/apps/web/src/app/(home)/_components/CustomizableSection.tsx index 765ce44..28a225f 100644 --- a/apps/web/src/app/(home)/_components/CustomizableSection.tsx +++ b/apps/web/src/app/(home)/_components/CustomizableSection.tsx @@ -1,4 +1,4 @@ -import { motion } from "framer-motion"; +import { motion } from "motion/react"; import CustomizableStack from "./CustomizableStack"; export default function CustomizableSection() { diff --git a/apps/web/src/app/(home)/_components/CustomizableStack.tsx b/apps/web/src/app/(home)/_components/CustomizableStack.tsx index d5ac571..2ee39ef 100644 --- a/apps/web/src/app/(home)/_components/CustomizableStack.tsx +++ b/apps/web/src/app/(home)/_components/CustomizableStack.tsx @@ -44,7 +44,7 @@ const CustomizableStack = () => { const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges); const [activeNodes, setActiveNodes] = useState({ backend: "hono", - database: "libsql", + database: "sqlite", orm: "drizzle", auth: "better-auth", }); @@ -140,9 +140,9 @@ const CustomizableStack = () => { const generateCommand = useCallback(() => { const flags: string[] = ["-y"]; - if (activeNodes.database !== "libsql") { + if (activeNodes.database !== "sqlite") { flags.splice(flags.indexOf("-y"), 1); - flags.push(`--database ${activeNodes.database}`); + flags.push(`--${activeNodes.database}`); } if (activeNodes.auth !== "better-auth") { diff --git a/apps/web/src/app/(home)/_components/Icons.tsx b/apps/web/src/app/(home)/_components/Icons.tsx index 47dad25..73a2cea 100644 --- a/apps/web/src/app/(home)/_components/Icons.tsx +++ b/apps/web/src/app/(home)/_components/Icons.tsx @@ -120,6 +120,23 @@ const PackageIcon = ({ pm, className }: { pm: string; className?: string }) => { /> ); + + case "github": + return ( + + ); default: return null; } diff --git a/apps/web/src/app/(home)/_components/Navbar.tsx b/apps/web/src/app/(home)/_components/Navbar.tsx index f7918cb..1c98ea4 100644 --- a/apps/web/src/app/(home)/_components/Navbar.tsx +++ b/apps/web/src/app/(home)/_components/Navbar.tsx @@ -1,8 +1,10 @@ "use client"; +import Link from "next/link"; import { useEffect, useRef, useState } from "react"; +import PackageIcon from "./Icons"; const Navbar = () => { - const [activeLink, setActiveLink] = useState("about"); + const [activeLink, setActiveLink] = useState("home"); const [bgStyles, setBgStyles] = useState({}); const [scrolled, setScrolled] = useState(false); const linkRefs = useRef<{ [key: string]: HTMLAnchorElement | null }>({}); @@ -56,57 +58,47 @@ const Navbar = () => {