66} from "@/components/ui/accordion" ;
77import Header from "../ui/header" ;
88import { faqs } from "./faqData" ;
9+ import Image from "next/image" ;
910
1011export function FaqSection ( ) {
1112 return (
@@ -22,9 +23,9 @@ export function FaqSection() {
2223 backgroundSize : "10px 10px" ,
2324 backgroundAttachment : "fixed" ,
2425 } as React . CSSProperties }
25- className = "w-[30px] lg:w-[50px] absolute left-0 top-0"
26+ className = "w-[30px] lg:w-[50px] absolute left-0 top-0 z-30 "
2627 />
27-
28+
2829 < div
2930 style = { {
3031 height : "100%" ,
@@ -35,21 +36,84 @@ export function FaqSection() {
3536 backgroundSize : "10px 10px" ,
3637 backgroundAttachment : "fixed" ,
3738 } as React . CSSProperties }
38- className = "w-[30px] lg:w-[50px] absolute right-0 top-0"
39+ className = "w-[30px] lg:w-[50px] absolute right-0 top-0 z-30 "
3940 />
4041
41- < div className = "max-w-4xl mx-auto" >
42+ < div className = "absolute w-full h-full top-0 left-0" >
43+ < Image
44+ src = "/assets/mask.svg"
45+ alt = "background"
46+ fill
47+ className = "object-cover w-full h-full opacity-40 [mask-image:radial-gradient(circle_at_center,transparent_0%,transparent_40%,black_60%,black_100%)]"
48+ />
49+ < div className = "absolute h-full w-full bg-gradient-to-t from-[#101010]/75 via-transparent to-[#101010]/75 top-0 left-1/2 -translate-x-1/2" > </ div >
50+ < div className = "absolute h-full w-full bg-gradient-to-r from-[#101010]/75 via-transparent to-[#101010]/75 top-0 left-1/2 -translate-x-1/2" > </ div >
51+ </ div >
52+ < div className = "max-w-4xl mx-auto relative" >
4253 < Accordion type = "single" collapsible className = "w-full space-y-4" >
4354 { faqs . map ( ( faq , index ) => (
44- < AccordionItem
45- value = { `item-${ index } ` }
55+ < AccordionItem
56+ value = { `item-${ index } ` }
4657 key = { index }
47- className = "border border-[#252525] rounded-lg bg -[#151515]/20 backdrop-blur-xl overflow-hidden"
58+ className = " rounded-2xl border border -[#202020] overflow-hidden relative z-10 "
4859 >
49- < AccordionTrigger className = "px-6 py-4 text-left text-base lg:text-lg font-medium hover:bg-[#252525]/30 transition-colors [&[data-state=open]]:bg-[#252525]/50" >
60+ < svg width = "894" height = "126" viewBox = "0 0 894 126" fill = "none" xmlns = "http://www.w3.org/2000/svg" className = "absolute top-0 left-0 z-0 pointer-events-none opacity-30" >
61+ < g clip-path = "url(#clip0_288_24)" >
62+ < g filter = "url(#filter0_n_288_24)" >
63+ < g filter = "url(#filter1_f_288_24)" >
64+ < ellipse cx = "570.829" cy = "-239.222" rx = "814.829" ry = "819.778" fill = "#A556FB" />
65+ </ g >
66+ < g filter = "url(#filter2_f_288_24)" >
67+ < ellipse cx = "571.517" cy = "-239.221" rx = "685.036" ry = "689.298" fill = "#4922E5" />
68+ </ g >
69+ < g filter = "url(#filter3_f_288_24)" >
70+ < ellipse cx = "386" cy = "-239" rx = "585" ry = "585.5" fill = "#101010" />
71+ </ g >
72+ </ g >
73+ </ g >
74+ < defs >
75+ < filter id = "filter0_n_288_24" x = "-244" y = "-1059" width = "1629.66" height = "1639.56" filterUnits = "userSpaceOnUse" color-interpolation-filters = "sRGB" >
76+ < feFlood flood-opacity = "0" result = "BackgroundImageFix" />
77+ < feBlend mode = "normal" in = "SourceGraphic" in2 = "BackgroundImageFix" result = "shape" />
78+ < feTurbulence type = "fractalNoise" baseFrequency = "0.1428571492433548 0.1428571492433548" stitchTiles = "stitch" numOctaves = "3" result = "noise" seed = "3305" />
79+ < feColorMatrix in = "noise" type = "luminanceToAlpha" result = "alphaNoise" />
80+ < feComponentTransfer in = "alphaNoise" result = "coloredNoise1" >
81+ < feFuncA type = "discrete" tableValues = "1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 " />
82+ </ feComponentTransfer >
83+ < feComposite operator = "in" in2 = "shape" in = "coloredNoise1" result = "noise1Clipped" />
84+ < feFlood flood-color = "rgba(0, 0, 0, 0.12)" result = "color1Flood" />
85+ < feComposite operator = "in" in2 = "noise1Clipped" in = "color1Flood" result = "color1" />
86+ < feMerge result = "effect1_noise_288_24" >
87+ < feMergeNode in = "shape" />
88+ < feMergeNode in = "color1" />
89+ </ feMerge >
90+ </ filter >
91+ < filter id = "filter1_f_288_24" x = "-324" y = "-1139" width = "1789.66" height = "1799.56" filterUnits = "userSpaceOnUse" color-interpolation-filters = "sRGB" >
92+ < feFlood flood-opacity = "0" result = "BackgroundImageFix" />
93+ < feBlend mode = "normal" in = "SourceGraphic" in2 = "BackgroundImageFix" result = "shape" />
94+ < feGaussianBlur stdDeviation = "40" result = "effect1_foregroundBlur_288_24" />
95+ </ filter >
96+ < filter id = "filter2_f_288_24" x = "-273.518" y = "-1088.52" width = "1690.07" height = "1698.6" filterUnits = "userSpaceOnUse" color-interpolation-filters = "sRGB" >
97+ < feFlood flood-opacity = "0" result = "BackgroundImageFix" />
98+ < feBlend mode = "normal" in = "SourceGraphic" in2 = "BackgroundImageFix" result = "shape" />
99+ < feGaussianBlur stdDeviation = "80" result = "effect1_foregroundBlur_288_24" />
100+ </ filter >
101+ < filter id = "filter3_f_288_24" x = "-399" y = "-1024.5" width = "1570" height = "1571" filterUnits = "userSpaceOnUse" color-interpolation-filters = "sRGB" >
102+ < feFlood flood-opacity = "0" result = "BackgroundImageFix" />
103+ < feBlend mode = "normal" in = "SourceGraphic" in2 = "BackgroundImageFix" result = "shape" />
104+ < feGaussianBlur stdDeviation = "100" result = "effect1_foregroundBlur_288_24" />
105+ </ filter >
106+ < clipPath id = "clip0_288_24" >
107+ < rect width = "1512" height = "864" fill = "white" transform = "translate(-337 -467)" />
108+ </ clipPath >
109+ </ defs >
110+ </ svg >
111+
112+
113+ < AccordionTrigger className = "px-6 py-4 text-left text-base lg:text-lg font-medium transition-colors z-30" >
50114 { faq . question }
51115 </ AccordionTrigger >
52- < AccordionContent className = "px-6 pb-4 text-[#d1d1d1 ] text-sm lg:text-base leading-relaxed" >
116+ < AccordionContent className = "px-6 pb-4 text-[#ffffff ] text-sm lg:text-base leading-relaxed z-50 " >
53117 { faq . answer }
54118 </ AccordionContent >
55119 </ AccordionItem >
0 commit comments