Skip to content

Commit

Permalink
feature accordtion
Browse files Browse the repository at this point in the history
  • Loading branch information
benorloff committed Apr 19, 2024
1 parent a9bf9cc commit c5d49ab
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
2 changes: 0 additions & 2 deletions app/(marketing)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import { SectionHeading } from "@/components/marketing/section-heading";
import { WaitlistForm } from "@/components/marketing/waitlist-form";
import { FeatureCard } from "@/components/marketing/feature-card";
import { Section } from "@/components/marketing/section";
import { Boxes } from "@/components/ui/background-boxes";
import { Badge } from "@/components/ui/badge";
import { Brain, Database, Globe2, Infinity, ScanEye, Zap } from "lucide-react";
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion";
import { FeatureAccordion } from "@/components/marketing/feature-accordion";

const MarketingPage = () => {
Expand Down
46 changes: 24 additions & 22 deletions components/marketing/feature-accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,52 @@ export const FeatureAccordion = () => {
const [active, setActive] = useState<number | null>(1);

return (
<div className="grid lg:grid-cols-4 grid-cols-1 gap-4">
<div className="relative col-span-3">
<div className="h-full w-full bg-muted"></div>
<div
className={cn(
"absolute top-0 left-0 m-auto transition-opacity duration-300 ease-in-out",
active === 1 ? "opacity-100" : "opacity-0"
)}
>
<div className="grid grid-rows-2 lg:grid-rows-1 lg:grid-cols-4 gap-4 h-full">
<div className="relative lg:col-span-3 bg-muted">
<div className={cn(
"h-full w-full",
active === 1 ? "opacity-100" : "opacity-0"
)}>
<Image
src="/logo.svg"
alt="placeholder"
width={400}
height={300}
className={cn(
"absolute top-0 left-0 m-auto transition-opacity duration-300 ease-in-out",
)}
/>
</div>
<div
className={cn(
"absolute top-0 left-0 transition-opacity duration-300 ease-in-out",
active === 2 ? "opacity-100" : "opacity-0"
)}
>
<div className={cn(
"h-full w-full",
active === 2 ? "opacity-100" : "opacity-0"
)}>
<Image
src="/next.svg"
alt="placeholder"
width={400}
height={300}
className={cn(
"absolute top-0 left-0 m-auto transition-opacity duration-300 ease-in-out",
)}
/>
</div>
<div
className={cn(
"absolute top-0 left-0 transition-opacity duration-300 ease-in-out",
active === 3 ? "opacity-100" : "opacity-0"
)}
>
<div className={cn(
"h-full w-full",
active === 3 ? "opacity-100" : "opacity-0"
)}>
<Image
src="/vercel.svg"
alt="placeholder"
width={400}
height={300}
className={cn(
"absolute top-0 left-0 m-auto transition-opacity duration-300 ease-in-out",
)}
/>
</div>
</div>
<div className="col-span-1 space-y-8">
<div className="relative lg:col-span-1 h-full space-y-8">
<div className="space-y-2">
<Overline title="Features" />
<h2 className="text-4xl">
Expand Down

0 comments on commit c5d49ab

Please sign in to comment.