|
| 1 | +import { Player } from '@lottiefiles/react-lottie-player' |
| 2 | +import { H2, H3 } from '../custom/header' |
| 3 | +import { useTheme } from 'next-themes' |
| 4 | + |
| 5 | +const features = [ |
| 6 | + { |
| 7 | + title: 'Integration with Multiple Data Sources', |
| 8 | + description: 'Connect not just to CKAN but to any data catalog or API endpoint, aggregating datasets from diverse origins.', |
| 9 | + icon: 'connection', |
| 10 | + iconStyle: 'dark:-rotate-[4deg]', |
| 11 | + style: 'max-lg:rounded-t-[2rem] lg:rounded-tl-[2rem] w-full', |
| 12 | + colSpan: 'lg:col-span-4', |
| 13 | + }, |
| 14 | + { |
| 15 | + title: 'Seamless Data Integration', |
| 16 | + description: 'Fetch CKAN datasets, resources, and metadata via API with built-in pagination, filtering, and format rendering.', |
| 17 | + icon: 'api', |
| 18 | + iconStyle: 'dark:-rotate-[2deg]', |
| 19 | + style: 'lg:rounded-tr-[2rem]', |
| 20 | + colSpan: 'lg:col-span-2', |
| 21 | + }, |
| 22 | + { |
| 23 | + title: 'Easier CMS Integration', |
| 24 | + description: 'Plug into popular CMS platforms—WordPress, Drupal, Contentful—and manage content alongside your data catalog.', |
| 25 | + icon: 'browser', |
| 26 | + iconStyle: 'dark:-rotate-[4deg]', |
| 27 | + style: '', |
| 28 | + colSpan: 'lg:col-span-2', |
| 29 | + }, |
| 30 | + { |
| 31 | + title: 'Deployment Flexibility', |
| 32 | + description: 'Deploy on Vercel, Cloudflare Pages, Netlify, or bundle for your own AWS, GCP, or Azure environment for optimal DX.', |
| 33 | + icon: 'rocket', |
| 34 | + iconStyle: 'dark:-rotate-[3deg]', |
| 35 | + style: '', |
| 36 | + colSpan: 'lg:col-span-4', |
| 37 | + }, |
| 38 | + { |
| 39 | + title: 'Optimized Performance', |
| 40 | + description: 'Enjoy SSR-friendly React components, lazy-loading, minimal bundle size, and Next.js ISR (Incremental Static Regeneration) for fresh data without full rebuilds.', |
| 41 | + icon: 'server', |
| 42 | + iconStyle: 'dark:-rotate-[4deg]', |
| 43 | + style: '', |
| 44 | + colSpan: 'lg:col-span-2', |
| 45 | + }, |
| 46 | + { |
| 47 | + title: 'SEO & Accessibility', |
| 48 | + description: 'Built-in Next-SEO and WCAG-compliant components ensure your data is discoverable and inclusive.', |
| 49 | + icon: 'search2', |
| 50 | + iconStyle: 'dark:-rotate-[2deg]', |
| 51 | + style: '', |
| 52 | + colSpan: 'lg:col-span-2', |
| 53 | + }, |
| 54 | + { |
| 55 | + title: 'Developer Experience', |
| 56 | + description: 'TypeScript support, CI/CD-ready setup, and comprehensive docs make integration into your workflow a breeze.', |
| 57 | + icon: 'server-1', |
| 58 | + iconStyle: 'dark:-rotate-[4deg]', |
| 59 | + style: 'max-lg:rounded-b-[2rem] lg:rounded-br-[2rem] w-full', |
| 60 | + colSpan: 'lg:col-span-2', |
| 61 | + }, |
| 62 | +] |
| 63 | + |
| 64 | +export const KeyFeatures = () => { |
| 65 | + |
| 66 | + const { theme } = useTheme() |
| 67 | + return ( |
| 68 | + <div className="py-24"> |
| 69 | + <div className="mx-auto"> |
| 70 | + <div className="flex flex-col items-center"> |
| 71 | + <H2 className="mt-2 tracking-4 text-center"> |
| 72 | + Key Features |
| 73 | + </H2> |
| 74 | + <H3 className="text-lg leading-8 opacity-75 text-center"> |
| 75 | + Pre-built for CKAN & Open Data—static-first rendering, serverless |
| 76 | + scaling, and full WCAG Compliance |
| 77 | + </H3> |
| 78 | + </div> |
| 79 | + <div className="mt-10 grid grid-cols-1 gap-4 sm:mt-16 lg:grid-cols-6 lg:grid-rows-2"> |
| 80 | + {features.map((feature, index) => ( |
| 81 | + <div key={index} className={`flex p-px ${feature.colSpan}`}> |
| 82 | + <div className={`overflow-hidden rounded-lg dark:bg-slate-900 ring-1 ring-slate-200 dark:ring-slate-800 dark:hover:bg-slate-800 hover:bg-slate-100 transition-all duration-300 shadow-lg ${feature.style}`}> |
| 83 | + <div className="flex flex-col items-start p-10"> |
| 84 | + <Player src={`/static/icons/${theme}/${feature.icon}.json`} autoplay loop className={`w-14 h-14 ${feature.iconStyle}`} /> |
| 85 | + <p className="mt-2 text-xl font-semibold tracking-tight dark:text-white"> |
| 86 | + {feature.title} |
| 87 | + </p> |
| 88 | + <p className="mt-2 ">{feature.description}</p> |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + </div> |
| 92 | + ))} |
| 93 | + </div> |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + ) |
| 97 | +} |
0 commit comments