Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

🐛 fix: small fixes

Dillion Vermab45621c4f2e7
diff --git a/app/(marketing)/page.tsx b/app/(marketing)/page.tsx
index 78d07e56..4a46cba6 100644
--- a/app/(marketing)/page.tsx
+++ b/app/(marketing)/page.tsx
@@ -6,6 +6,7 @@ export default async function Home() {
<>
<Hero />
<Testimonials />
+ {/* <FeatureGrid /> */}
{/* <FeatureSections /> */}
{/* <Faq /> */}
</>
diff --git a/components/landing/faq.tsx b/components/landing/faq.tsx
index 0e3ddd94..1b01e637 100644
--- a/components/landing/faq.tsx
+++ b/components/landing/faq.tsx
@@ -5,16 +5,35 @@ import {
AccordionTrigger,
} from "@/components/ui/accordion";
+const faqs = [
+ {
+ question: "Is it accessible?",
+ answer: "Yes. It adheres to the WAI-ARIA design pattern.",
+ },
+ {
+ question: "Is it accessiblely",
+ answer: "Yes. It adheres to the WAI-ARIA design pattern.",
+ },
+ {
+ question: "Is it accessibleata?",
+ answer: "Yes. It adheres to the WAI-ARIA design pattern.",
+ },
+];
+
const Faq = () => {
return (
- <section id="faq" className="max-w-container mx-auto px-4 sm:px-6 lg:px-8">
- <Accordion type="single" collapsible className="flex w-full flex-1">
- <AccordionItem value="item-1">
- <AccordionTrigger>Is it accessible?</AccordionTrigger>
- <AccordionContent>
- Yes. It adheres to the WAI-ARIA design pattern.
- </AccordionContent>
- </AccordionItem>
+ <section id="faq" className="w-full px-4 sm:px-6 lg:px-8">
+ <Accordion
+ type="single"
+ collapsible
+ className="max-w-container flex w-full flex-col items-center justify-center"
+ >
+ {faqs.map((faq, idx) => (
+ <AccordionItem value={faq.question} className="min-w-[600px]">
+ <AccordionTrigger>{faq.question}</AccordionTrigger>
+ <AccordionContent>{faq.answer}</AccordionContent>
+ </AccordionItem>
+ ))}
</Accordion>
</section>
);
diff --git a/components/landing/feature-grid.tsx b/components/landing/feature-grid.tsx
new file mode 100644
index 00000000..d1f97937
--- /dev/null
+++ b/components/landing/feature-grid.tsx
@@ -0,0 +1,102 @@
+import { Button } from "@/components/ui/button";
+import { cn } from "@/lib/utils";
+import { ChevronRight } from "lucide-react";
+
+const features = [
+ {
+ name: "Graph view",
+ description:
+ "Visualize relationships between items in your library to find connections.",
+ image:
+ "https://assets.vercel.com/image/upload/v1675318695/nextjs/showcase/loom-illustration.svg",
+ span: 1,
+ href: "/",
+ },
+ {
+ name: "Graph view",
+ description:
+ "Visualize relationships between items in your library to find connections.",
+ image:
+ "https://assets.vercel.com/image/upload/v1675318695/nextjs/showcase/loom-illustration.svg",
+ span: 2,
+ href: "/",
+ },
+ {
+ name: "Graph view",
+ description:
+ "Visualize relationships between items in your library to find connections.",
+ image:
+ "https://assets.vercel.com/image/upload/v1675318695/nextjs/showcase/loom-illustration.svg",
+ span: 2,
+ href: "/",
+ },
+ {
+ name: "Graph view",
+ description:
+ "Visualize relationships between items in your library to find connections.",
+ image:
+ "https://assets.vercel.com/image/upload/v1675318695/nextjs/showcase/loom-illustration.svg",
+ span: 1,
+ href: "/",
+ },
+];
+
+export default async function FeatureGrid() {
+ return (
+ <section id={"feature-grid"} className="container mx-auto">
+ <h2 className="text-base font-semibold leading-7 text-orange-600">
+ {"Feature Grid"}
+ </h2>
+ <p className="mt-2 text-3xl font-bold tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl">
+ {"Feature Grid"}
+ </p>
+ <p className="mt-6 text-lg leading-8 text-gray-600 dark:text-gray-400">
+ {"Feature Grid"}
+ </p>
+ <div className="grid w-full auto-rows-[22rem] grid-cols-3 gap-y-4 md:gap-4">
+ {features.map((feature) => (
+ <div
+ key={feature.name}
+ className={cn(
+ "group relative col-span-3 flex flex-col justify-between overflow-hidden rounded-xl bg-white [box-shadow:0_0_0_1px_rgba(0,0,0,.03),0_2px_4px_rgba(0,0,0,.05),0_12px_24px_rgba(0,0,0,.05)] dark:bg-neutral-900 ",
+ {
+ "lg:col-span-1": feature.span === 1,
+ "lg:col-span-2": feature.span === 2,
+ },
+ )}
+ >
+ <div>
+ <img
+ className="absolute -right-20 -top-20 opacity-60"
+ src={feature.image}
+ />
+ </div>
+ <div className="p-6 transition-all duration-300 group-hover:-translate-y-10">
+ <h3 className="mb-1 text-base font-medium text-neutral-700 dark:text-neutral-300">
+ {feature.name}
+ </h3>
+
+ <p className="max-w-lg text-neutral-400">{feature.description}</p>
+ </div>
+
+ <div
+ className={cn(
+ "flex flex-row items-center justify-center transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100",
+ "translate-y-10 opacity-0",
+ "absolute bottom-4 w-full",
+ )}
+ >
+ <Button variant="ghost" size="sm" asChild>
+ <a href={feature.href}>
+ Learn more
+ <ChevronRight className="h-4 w-4" />
+ </a>
+ </Button>
+ </div>
+ <div className="pointer-events-none absolute inset-0 transition-all duration-300 group-hover:bg-black/[.03] group-hover:dark:bg-neutral-800/10" />
+ </div>
+ ))}
+ </div>
+ </section>
+ );
+}
diff --git a/components/landing/hero.tsx b/components/landing/hero.tsx
index b34a63aa..299c472d 100644
--- a/components/landing/hero.tsx
+++ b/components/landing/hero.tsx
@@ -68,7 +68,7 @@ export default function Hero() {
href="/pricing"
className={cn(buttonVariants({ size: "lg" }))}
>
- Get Lifetime Access
+ Buy Now
</Link>
<Link
href="/components"
diff --git a/components/site-header.tsx b/components/site-header.tsx
index 9296c888..d04b9e05 100644
--- a/components/site-header.tsx
+++ b/components/site-header.tsx
@@ -82,6 +82,23 @@ export function SiteHeader({ user }: SiteHeaderProps) {
Login
</Link>
)}
+ <Link
+ className={cn(
+ buttonVariants(),
+ "hidden gap-2 whitespace-pre md:flex",
+ "group relative w-full max-w-fit justify-center gap-2 overflow-hidden rounded-sm transition-all duration-300 ease-out hover:ring-2 hover:ring-primary hover:ring-offset-2",
+ )}
+ href={
+ "https://buy.stripe.com/00g7vD4Vu8zQb8k5kl?prefilled_promo_code=EARLYBIRD"
+ }
+ >
+ <span className="absolute right-0 -mt-12 h-32 w-8 translate-x-12 rotate-12 transform bg-white opacity-10 transition-all duration-1000 ease-out group-hover:-translate-x-24 dark:bg-black" />
+ {/* <Icons.logo className="h-4 w-4" /> */}
+ Buy Now
+ {/* <div className="hidden items-center gap-1 text-sm text-gray-500 md:flex">
+ <StarIcon className="h-4 w-4 transition-all duration-300 group-hover:text-yellow-300" />
+ </div> */}
+ </Link>
</nav>
</div>
</div>
diff --git a/components/ui/accordion.tsx b/components/ui/accordion.tsx
index c74c87f9..e197dac3 100644
--- a/components/ui/accordion.tsx
+++ b/components/ui/accordion.tsx
@@ -1,8 +1,8 @@
"use client";
-import * as React from "react";
import * as AccordionPrimitive from "@radix-ui/react-accordion";
import { ChevronDownIcon } from "@radix-ui/react-icons";
+import * as React from "react";
import { cn } from "@/lib/utils";
@@ -57,4 +57,10 @@ const AccordionContent = React.forwardRef<
));
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
-export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
+export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
+module.exports = {
+ Accordion,
+ AccordionContent,
+ AccordionItem,
+ AccordionTrigger,
+};