diff --git a/app/page.tsx b/app/page.tsx index 8ca0bdb..05d575e 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,4 +1,5 @@ import Navbar from "@/components/layout/navbar"; +import Hero from "@/components/sections/hero"; import ButtonGradient from "@/components/svg/button-gradient"; import { cn } from "@/lib/utils"; @@ -7,6 +8,7 @@ export default function Home() {
+
diff --git a/components/atoms/button.tsx b/components/atoms/button.tsx index fe8e466..95b47bc 100644 --- a/components/atoms/button.tsx +++ b/components/atoms/button.tsx @@ -4,7 +4,7 @@ import React from "react"; import Link from "next/link"; type Props = { - className: string; + className?: string; href?: string; children: React.ReactNode; onClick?: () => void; diff --git a/components/layout/section.tsx b/components/layout/section.tsx new file mode 100644 index 0000000..11d6015 --- /dev/null +++ b/components/layout/section.tsx @@ -0,0 +1,53 @@ +import React from "react"; +import { cn } from "@/lib/utils"; +import SectionSvg from "../svg/section-svg"; + +type Props = { + className: string; + id: string; + crosses: boolean; + crossesOffset: string; + customPaddings: boolean; + children: React.ReactNode; +}; + +const Section = ({ className, id, crosses, crossesOffset, customPaddings, children }: Props) => { + return ( +
+ {children} + +