The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: try old products section
Francesco Sansalvadore4d1778f0c8c4
diff --git a/apps/www/components/Features/FeaturesOld.tsx b/apps/www/components/Features/FeaturesOld.tsxnew file mode 100644index 00000000000..22dad3ee853--- /dev/null+++ b/apps/www/components/Features/FeaturesOld.tsx@@ -0,0 +1,88 @@+import { Badge } from 'ui'+import Solutions from 'data/Solutions.json'+import Telemetry from '~/lib/telemetry'+import gaEvents from '~/lib/gaEvents'+import SectionContainer from '../Layouts/SectionContainer'+import ProductIcon from '../ProductIcon'+import TextLink from '../TextLink'+import { useTelemetryProps } from 'common/hooks/useTelemetryProps'+import { useRouter } from 'next/router'++const Features = () => {+ const router = useRouter()+ const telemetryProps = useTelemetryProps()++ const sendTelemetryEvent = async (product: any) => {+ switch (product) {+ case 'Database':+ return await Telemetry.sendEvent(+ gaEvents['www_hp_subhero_products_database'],+ telemetryProps,+ router+ )+ case 'Authentication':+ return await Telemetry.sendEvent(+ gaEvents['www_hp_subhero_products_auth'],+ telemetryProps,+ router+ )+ case 'Storage':+ return await Telemetry.sendEvent(+ gaEvents['www_hp_subhero_products_storage'],+ telemetryProps,+ router+ )+ case 'Edge Functions':+ return await Telemetry.sendEvent(+ gaEvents['www_hp_subhero_products_edgeFunctions'],+ telemetryProps,+ router+ )+ case 'Realtime':+ return await Telemetry.sendEvent(+ gaEvents['www_hp_subhero_products_realtime'],+ telemetryProps,+ router+ )+ }+ }++ const IconSections = Object.values(Solutions).map((solution: any) => {+ const { name, description, icon, label, url } = solution+ if (solution.name === 'Realtime') return null+ return (+ <div key={name} className="mb-10 space-y-4 md:mb-0">+ <div className="flex items-center">+ <ProductIcon icon={icon} />+ <dt className="text-scale-1200 ml-4 flex flex-row xl:flex-col">{name}</dt>+ </div>++ <p className="p">{description}</p>++ {label && (+ <div>+ <Badge dot>{label}</Badge>+ </div>+ )}+ {url && (+ <TextLink+ label={label ? 'Get notified' : 'Learn more'}+ url={url}+ onClick={() => sendTelemetryEvent(name)}+ />+ )}+ </div>+ )+ })++ return (+ <SectionContainer className="space-y-16 pb-0">+ <h3 className="h3 text-center">Build faster and focus on your products</h3>+ <dl className="grid grid-cols-1 gap-y-4 sm:grid-cols-2 md:grid-cols-2 md:gap-16 lg:grid-cols-4 lg:gap-x-8 xl:gap-x-24">+ {IconSections}+ </dl>+ </SectionContainer>+ )+}++export default Featuresdiff --git a/apps/www/components/ShinyBox/index.tsx b/apps/www/components/ShinyBox/index.tsxindex 5684b7606af..c6edbd3613b 100644--- a/apps/www/components/ShinyBox/index.tsx+++ b/apps/www/components/ShinyBox/index.tsx@@ -18,7 +18,7 @@ const ShinyBox = ({const { x: elX, y: elY, width, height } = outerElement.getBoundingClientRect()x = event.clientX - elXy = event.clientY - elY- const isActive = x > -0 && x < width + 0 && y > -0 && y < height + 0+ const isActive = x > -3 && x < width + 3 && y > -3 && y < height + 3const activeGlow = isActive? `radial-gradient(65rem circle at ${x}px ${y}px, var(--colors-brand9), transparent), `: ''diff --git a/apps/www/pages/home-2.tsx b/apps/www/pages/home-2.tsxindex 1333f0e7e96..dd4a56dca05 100644--- a/apps/www/pages/home-2.tsx+++ b/apps/www/pages/home-2.tsx@@ -7,7 +7,7 @@ import Hero from '~/components/Hero/Hero'// Import Swiper styles if swiper used on pageimport 'swiper/swiper.min.css'-const Features = dynamic(() => import('components/Features/index'))+const FeaturesOld = dynamic(() => import('components/Features/FeaturesOld'))const BuiltExamples = dynamic(() => import('components/BuiltWithSupabase/index'))const MadeForDevelopers = dynamic(() => import('components/MadeForDevelopers/index'))const AdminAccess = dynamic(() => import('components/AdminAccess/index'))@@ -21,7 +21,7 @@ const Index = ({ customerStories }: Props) => {return (<Layout><Hero />- <Features />+ <FeaturesOld /><TwitterSocialSection /><BuiltExamples /><MadeForDevelopers />