mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20: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>
59 lines
2.1 KiB
TypeScript
59 lines
2.1 KiB
TypeScript
import { Button, cn, IconGitHubSolid } from 'ui'
|
|
import Link from 'next/link'
|
|
|
|
import SectionContainer from '~/components/Layouts/SectionContainer'
|
|
import ExampleCard from '../ExampleCard'
|
|
|
|
import Examples from 'data/Examples'
|
|
import ExamplesMobile from './ExamplesMobile'
|
|
|
|
const BuiltWithSupabase = () => {
|
|
return (
|
|
<>
|
|
<SectionContainer id="examples" className="xl:pt-32 pb-0!">
|
|
<div className="text-center flex flex-col items-center">
|
|
<h3 className="h2">Start building in seconds</h3>
|
|
<p className="p max-w-[300px] md:max-w-none">
|
|
Kickstart your next project with templates built by us and our community.
|
|
</p>
|
|
<div className="flex justify-center gap-2 py-4">
|
|
<Button asChild type="default" size="small" className="h-full">
|
|
<Link href="/docs/guides/examples">View all examples</Link>
|
|
</Button>
|
|
<Button
|
|
asChild
|
|
type="default"
|
|
icon={<IconGitHubSolid size="tiny" className="w-full! h-full!" />}
|
|
size="small"
|
|
>
|
|
<Link href="https://github.com/supabase/supabase/tree/master/examples">
|
|
Official GitHub library
|
|
</Link>
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</SectionContainer>
|
|
<SectionContainer className="relative w-full px-0! lg:px-16! xl:px-20! pb-0! mb-16 md:mb-12 lg:mb-12 pt-6! max-w-[1400px]">
|
|
<ExamplesMobile examples={Examples.slice(0, 6)} className="lg:hidden" />
|
|
<div className="hidden lg:grid grid-cols-12 gap-5 mt-4">
|
|
{Examples.slice(0, 6).map((example, i) => {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
'col-span-12 h-full lg:col-span-6 xl:col-span-4',
|
|
'flex items-stretch'
|
|
)}
|
|
key={i}
|
|
>
|
|
<ExampleCard {...example} showProducts inHomepage />
|
|
</div>
|
|
)
|
|
})}
|
|
</div>
|
|
</SectionContainer>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default BuiltWithSupabase
|