mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
This PR migrates the whole monorepo to use Tailwind v4: - Removed `@tailwindcss/container-queries` plugin since it's included by default in v4, - Bump all instances of Tailwind to v4. Made minimal changes to the shared config to remove non-supported features (`alpha` mentions), - Migrate all apps to be compatible with v4 configs, - Fix the `typography.css` import in 3 apps, - Add missing rules which were included by default in v3, - Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot of classes - Rename all misnamed classes according to https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all apps. --------- Co-authored-by: Jordi Enric <jordi.err@gmail.com>
61 lines
1.9 KiB
TypeScript
61 lines
1.9 KiB
TypeScript
import 'swiper/css'
|
|
|
|
import { useRouter } from 'next/router'
|
|
import { NextSeo } from 'next-seo'
|
|
|
|
import DefaultLayout from '~/components/Layouts/Default'
|
|
import SectionContainer from '~/components/Layouts/SectionContainer'
|
|
import CTABanner from '~/components/CTABanner'
|
|
import OSSHero from '~/components/OpenSource/OSSHero'
|
|
import ProductHeaderCentered from '~/components/Sections/ProductHeaderCentered'
|
|
import Repos from '~/components/OpenSource/Repos'
|
|
import Sponsorships from '~/components/OpenSource/Sponsorships'
|
|
|
|
import pageData from '~/data/open-source'
|
|
|
|
const OpenSource = () => {
|
|
const router = useRouter()
|
|
|
|
const meta_title = pageData.metaTitle || 'Open Source | Supabase'
|
|
const meta_description =
|
|
pageData.metaDescription ||
|
|
'Supabase is an open source company, supporting existing open source tools and communities wherever possible.'
|
|
|
|
return (
|
|
<>
|
|
<NextSeo
|
|
title={meta_title}
|
|
description={meta_description}
|
|
openGraph={{
|
|
title: meta_title,
|
|
description: meta_description,
|
|
url: `https://supabase.com/${router.pathname}`,
|
|
images: [
|
|
{
|
|
url: `https://supabase.com/images/og/supabase-og.png`,
|
|
},
|
|
],
|
|
}}
|
|
/>
|
|
<DefaultLayout className="relative">
|
|
<SectionContainer className="overflow-hidden relative mx-auto py-0! sm:py-0! md:py-4! lg:pt-16! lg:pb-12!">
|
|
<ProductHeaderCentered {...pageData.heroSection} />
|
|
</SectionContainer>
|
|
<OSSHero />
|
|
<SectionContainer className="pt-0!">
|
|
<Repos tabs={pageData.repo_tabs} />
|
|
</SectionContainer>
|
|
<SectionContainer className="py-0!">
|
|
<div className="w-full border-b" />
|
|
</SectionContainer>
|
|
<SectionContainer>
|
|
<Sponsorships sponsorships={pageData.sponsorships} />
|
|
</SectionContainer>
|
|
<CTABanner />
|
|
</DefaultLayout>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default OpenSource
|