mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
* show cms blog posts in www * remove contentlayer from www * outputFileTracingExcludes * update remotePatterns * fetch cms posts server-side with revalidation * add cms env vars to turbo.json * add www env vars to turbo.json * include cms posts in www sitemap * add migration to remove image from cms post * update cms meta image mapping in www
34 lines
779 B
TypeScript
34 lines
779 B
TypeScript
'use client'
|
|
|
|
import classNames from 'classnames'
|
|
import { Ref, forwardRef } from 'react'
|
|
|
|
interface Props {
|
|
children: React.ReactNode
|
|
className?: string
|
|
id?: string
|
|
}
|
|
|
|
/**
|
|
* This component doesn't use cn so parent tailwind classes aren't applied correctly
|
|
* At this point it's dangerous to fix it because it could break the layout at many places
|
|
*/
|
|
const SectionContainer = forwardRef(
|
|
({ children, className, id }: Props, ref: Ref<HTMLDivElement>) => (
|
|
<div
|
|
ref={ref}
|
|
id={id}
|
|
className={classNames(
|
|
`sm:py-18 container relative mx-auto px-6 py-16 md:py-24 lg:px-16 lg:py-24 xl:px-20`,
|
|
className
|
|
)}
|
|
>
|
|
{children}
|
|
</div>
|
|
)
|
|
)
|
|
|
|
SectionContainer.displayName = 'SectionContainer'
|
|
|
|
export default SectionContainer
|