mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
refractor web components to kebab case
This commit is contained in:
@@ -3,7 +3,7 @@ import { cn } from "@/lib/utils";
|
|||||||
import { Check, ClipboardCopy } from "lucide-react";
|
import { Check, ClipboardCopy } from "lucide-react";
|
||||||
import { AnimatePresence, motion } from "motion/react";
|
import { AnimatePresence, motion } from "motion/react";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import PackageIcon from "./Icons";
|
import PackageIcon from "./icons";
|
||||||
|
|
||||||
const CodeContainer = () => {
|
const CodeContainer = () => {
|
||||||
const [selectedPM, setSelectedPM] = useState<"npm" | "pnpm" | "bun">("bun");
|
const [selectedPM, setSelectedPM] = useState<"npm" | "pnpm" | "bun">("bun");
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { motion } from "motion/react";
|
import { motion } from "motion/react";
|
||||||
import StackArchitect from "./StackArchitech";
|
import StackBuilder from "./stack-builder";
|
||||||
|
|
||||||
export default function CustomizableSection() {
|
export default function CustomizableSection() {
|
||||||
return (
|
return (
|
||||||
@@ -39,7 +39,7 @@ export default function CustomizableSection() {
|
|||||||
transition={{ duration: 0.6, delay: 0.2 }}
|
transition={{ duration: 0.6, delay: 0.2 }}
|
||||||
className="relative border"
|
className="relative border"
|
||||||
>
|
>
|
||||||
<StackArchitect />
|
<StackBuilder />
|
||||||
</motion.div>
|
</motion.div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
@@ -5,7 +5,7 @@ import { Github, Maximize2, Menu, X } from "lucide-react";
|
|||||||
import { AnimatePresence, motion } from "motion/react";
|
import { AnimatePresence, motion } from "motion/react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import PackageIcon from "./Icons";
|
import PackageIcon from "./icons";
|
||||||
|
|
||||||
export default function Navbar() {
|
export default function Navbar() {
|
||||||
const [scrolled, setScrolled] = useState(false);
|
const [scrolled, setScrolled] = useState(false);
|
||||||
@@ -844,7 +844,7 @@ const generateCommand = (stackState: StackState): string => {
|
|||||||
}`;
|
}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
const StackArchitect = () => {
|
const StackBuilder = () => {
|
||||||
const [stack, setStack] = useQueryStates(
|
const [stack, setStack] = useQueryStates(
|
||||||
stackParsers,
|
stackParsers,
|
||||||
stackQueryStatesOptions,
|
stackQueryStatesOptions,
|
||||||
@@ -1937,4 +1937,4 @@ const StackArchitect = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default StackArchitect;
|
export default StackBuilder;
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { motion } from "motion/react";
|
import { motion } from "motion/react";
|
||||||
import StackArchitect from "../_components/StackArchitech";
|
import StackBuilder from "../_components/stack-builder";
|
||||||
|
|
||||||
export default function FullScreenStackArchitect() {
|
export default function FullScreenStackBuilder() {
|
||||||
return (
|
return (
|
||||||
<div className="flex h-svh flex-col bg-background">
|
<div className="flex h-svh flex-col bg-background">
|
||||||
<motion.div
|
<motion.div
|
||||||
@@ -12,7 +12,7 @@ export default function FullScreenStackArchitect() {
|
|||||||
transition={{ duration: 0.3 }}
|
transition={{ duration: 0.3 }}
|
||||||
className="w-full flex-1"
|
className="w-full flex-1"
|
||||||
>
|
>
|
||||||
<StackArchitect />
|
<StackBuilder />
|
||||||
</motion.div>
|
</motion.div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import ShinyText from "@/app/(home)/_components/ShinyText";
|
import ShinyText from "@/app/(home)/_components/shiny-text";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { motion } from "motion/react";
|
import { motion } from "motion/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import CodeContainer from "./_components/CodeContainer";
|
import CodeContainer from "./_components/code-container";
|
||||||
import CustomizableSection from "./_components/CustomizableSection";
|
import CustomizableSection from "./_components/customizable-section";
|
||||||
import Footer from "./_components/Footer";
|
import Footer from "./_components/footer";
|
||||||
import Navbar from "./_components/Navbar";
|
import Navbar from "./_components/navbar";
|
||||||
import NpmPackage from "./_components/NpmPackage";
|
import NpmPackage from "./_components/npm-package";
|
||||||
// import SponsorsSection from "./_components/SponsorsSection";
|
// import SponsorsSection from "./_components/SponsorsSection";
|
||||||
import Testimonials from "./_components/Testimonials";
|
import Testimonials from "./_components/testimonials";
|
||||||
|
|
||||||
export default function HomePage() {
|
export default function HomePage() {
|
||||||
const containerVariants = {
|
const containerVariants = {
|
||||||
|
|||||||
Reference in New Issue
Block a user