mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
### Logo positioning bug on Safari #### Before <img width="1538" height="1404" alt="CleanShot 2026-07-01 at 07 11 55@2x_b0d735b7df6470afb861f4e82cfeed554743cec621475197e07ff39a98c5c506" src="https://github.com/user-attachments/assets/dc8483bd-5a2a-4d89-9b90-d0ab3529b4b5" /> #### After <img width="1177" height="526" alt="Screenshot 2026-07-01 at 15 25 59" src="https://github.com/user-attachments/assets/e5ab66eb-56eb-4f1b-8a66-783aafad069d" /> ### Uniform h1 styling #### Before Font-weight too heavy <img width="721" height="504" alt="Screenshot 2026-07-01 at 15 55 53" src="https://github.com/user-attachments/assets/4dc4e157-f746-4626-9ec7-5e893d7155ba" /> #### After <img width="693" height="410" alt="Screenshot 2026-07-01 at 15 56 04" src="https://github.com/user-attachments/assets/c012d6e5-0889-4466-b2b2-56d1c9516e27" /> ### AI Builders platform card ### Before <img width="675" height="573" alt="Screenshot 2026-07-01 at 16 18 31" src="https://github.com/user-attachments/assets/a34e2fde-115b-45e8-8d44-9fc32c22c0a1" /> ### After <img width="640" height="576" alt="Screenshot 2026-07-01 at 16 18 23" src="https://github.com/user-attachments/assets/45ebf1c7-6508-40de-a755-dda17824979a" /> ### Logo theme-awareness on 404 page #### Before <img width="1053" height="670" alt="Screenshot 2026-07-02 at 11 22 45" src="https://github.com/user-attachments/assets/d1f45cc8-00ad-48ad-a21a-3b92bf6097f0" /> #### After <img width="1053" height="666" alt="Screenshot 2026-07-02 at 11 22 28" src="https://github.com/user-attachments/assets/8b6435aa-da87-46f3-9d5c-750f8222edb1" /> --- Plus other minor padding/spacing issues: - remove customer stories in homepage - use correct container width and align "Use Supabase with [framework]" section - restore default `--font-sm` sizing as it resulted too small for www <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes / UI Improvements** * Refined spacing, layout, and responsive styling across multiple homepage sections. * Improved featured logo positioning and adjusted community/hero copy sizing. * Updated site typography for better readability and wrapping. * Refreshed the 404 experience with a smoother reveal animation and consistent layout. * Updated deep dark-mode behavior to apply only during launch weeks. * **Performance** * Lazy-loaded multiple homepage sections to improve initial load and perceived speed. * **SEO / New Features** * Added a dedicated 404 page that disables indexing. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
89 lines
3.4 KiB
TypeScript
89 lines
3.4 KiB
TypeScript
import Panel from '~/components/Panel'
|
|
import React from 'react'
|
|
import { cn } from 'ui'
|
|
|
|
import SectionContainer from '../Layouts/SectionContainer'
|
|
import styles from './features-grid.module.css'
|
|
|
|
export default function FeaturesGrid(props: any) {
|
|
const hasExtendedCards = props.features.some(
|
|
(f: any) => f.id === 'claim-flow' || f.id === 'platform-kit' || f.id === 'pico-instances'
|
|
)
|
|
|
|
return (
|
|
<SectionContainer id={props.id} className="flex flex-col gap-4 xl:pt-20 scroll-mt-20">
|
|
<div className="flex flex-col gap-2 max-w-xl">
|
|
<h2 className="h2 text-foreground-lighter m-0!">{props.heading}</h2>
|
|
<p className="p text-foreground-lighter! max-w-md">{props.subheading}</p>
|
|
</div>
|
|
<div
|
|
className={cn(
|
|
'h-auto flex flex-col md:grid grid-cols-2 xl:grid-cols-3 gap-5 xl:flex-row',
|
|
hasExtendedCards ? styles['features-grid-extended'] : styles['features-grid']
|
|
)}
|
|
>
|
|
<Content
|
|
card={props.features.find((f: any) => f.id === 'postgres')}
|
|
innerClassName="[&_.image-container]:xl:pt-4 [&_.image-container]:xl:pl-8"
|
|
/>
|
|
<Content card={props.features.find((f: any) => f.id === 'pricing')} />
|
|
<Content
|
|
card={props.features.find((f: any) => f.id === 'mgmt-api')}
|
|
innerClassName="
|
|
xl:flex-row
|
|
[&_.image-container]:border-b
|
|
[&_.image-container]:pb-0
|
|
[&_.image-container]:xl:border-none
|
|
[&_.image-container]:xl:items-end
|
|
[&_.image-container]:xl:order-last
|
|
[&_.image-container]:xl:w-[calc(50%+1rem)]
|
|
[&_.next-image--dynamic-fill]:rounded-none"
|
|
/>
|
|
<Content card={props.features.find((f: any) => f.id === 'branching')} />
|
|
<Content card={props.features.find((f: any) => f.id === 'claim-flow')} />
|
|
<Content card={props.features.find((f: any) => f.id === 'platform-kit')} />
|
|
<Content
|
|
card={props.features.find((f: any) => f.id === 'pico-instances')}
|
|
innerClassName="
|
|
xl:flex-row
|
|
[&_.image-container]:border-b
|
|
[&_.image-container]:pb-0
|
|
[&_.image-container]:xl:border-none
|
|
[&_.image-container]:xl:items-end
|
|
[&_.image-container]:xl:order-last
|
|
[&_.image-container]:xl:w-[calc(50%+1rem)]
|
|
[&_.next-image--dynamic-fill]:rounded-none"
|
|
/>
|
|
</div>
|
|
</SectionContainer>
|
|
)
|
|
}
|
|
|
|
const Content = ({ card, innerClassName }: { card: any; innerClassName?: string }) => {
|
|
if (!card) return null
|
|
|
|
return (
|
|
<Panel
|
|
key={card.heading}
|
|
hasActiveOnHover={false}
|
|
outerClassName="w-full group hover:shadow-none"
|
|
innerClassName={cn('relative flex flex-col justify-between xl:min-h-[250px]', innerClassName)}
|
|
style={{ gridArea: card.id }}
|
|
>
|
|
{card.img && (
|
|
<div className="image-container relative h-full w-full inline-flex items-start p-6">
|
|
{card.img}
|
|
</div>
|
|
)}
|
|
<div className="content-container flex flex-col justify-between gap-3 p-6 flex-1">
|
|
<h3 className="text-foreground-lighter flex items-center gap-2 text-balance">
|
|
{card.heading}
|
|
</h3>
|
|
<div className="flex flex-col justify-between gap-2">
|
|
<p className="text-sm text-foreground-lighter text-pretty">{card.subheading}</p>
|
|
</div>
|
|
</div>
|
|
</Panel>
|
|
)
|
|
}
|