mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
Define and clean up standard container width definition for marketing website. PR breakdown of #43455 Related: #47227 #47228 #47236
58 lines
2.0 KiB
TypeScript
58 lines
2.0 KiB
TypeScript
import SectionContainer from '~/components/Layouts/SectionContainer'
|
|
import Examples from 'data/Examples'
|
|
import Link from 'next/link'
|
|
import { Button, cn, IconGitHubSolid } from 'ui'
|
|
|
|
import ExampleCard from '../ExampleCard'
|
|
import ExamplesMobile from './ExamplesMobile'
|
|
|
|
const BuiltWithSupabase = () => {
|
|
return (
|
|
<>
|
|
<SectionContainer id="examples" className="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 variant="default" size="small" className="h-full">
|
|
<Link href="/docs/guides/examples">View all examples</Link>
|
|
</Button>
|
|
<Button
|
|
asChild
|
|
variant="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-12! xl:px-24! pb-0! mb-16 md:mb-12 lg:mb-12 pt-6!">
|
|
<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
|