mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05: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>
46 lines
1.7 KiB
TypeScript
46 lines
1.7 KiB
TypeScript
import supabaseLogoIcon from 'common/assets/images/supabase-logo-icon.png'
|
|
import { GoPageRenderer as MarketingPageRenderer } from 'marketing'
|
|
import type { CustomSectionRenderers } from 'marketing'
|
|
import Image from 'next/image'
|
|
import Link from 'next/link'
|
|
|
|
import TweetsSection from './TweetsSection'
|
|
import type { GoPage } from '@/types/go'
|
|
|
|
const customRenderers: CustomSectionRenderers = {
|
|
tweets: TweetsSection,
|
|
}
|
|
|
|
// eslint-disable-next-line
|
|
export default function GoPageRenderer({ page }: { page: GoPage }) {
|
|
return (
|
|
<>
|
|
<nav className="absolute top-0 left-0 right-0 z-10">
|
|
<div className="max-w-7xl mx-auto flex items-center h-14 px-8">
|
|
<Link href="/">
|
|
<Image src={supabaseLogoIcon} width={24} height={24} alt="Supabase" priority />
|
|
<span className="sr-only">Supabase</span>
|
|
</Link>
|
|
</div>
|
|
</nav>
|
|
|
|
<main className="relative min-h-screen pb-16 sm:pb-24">
|
|
<MarketingPageRenderer page={page} customRenderers={customRenderers} />
|
|
</main>
|
|
<footer className="border-t border-muted">
|
|
<div className="max-w-7xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-2 py-4 sm:h-14 px-8 text-sm text-foreground-lighter">
|
|
<span>© {new Date().getFullYear()} Supabase Inc.</span>
|
|
<div className="flex gap-6">
|
|
<Link href="/privacy" className="hover:text-foreground transition-colors">
|
|
Privacy Policy
|
|
</Link>
|
|
<Link href="/terms" className="hover:text-foreground transition-colors">
|
|
Terms of Service
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</>
|
|
)
|
|
}
|