Files
supabase/apps/www/components/Sections/ParagraphSection.tsx
35de059bbd Feat/eagle 1 (#22730)
* content structure

* remove component

* reorder sections

* eagle new path

* nav

* meetups

* update lw11-og function with service key

* add ticket button in sticky nav

* disable and exit game when not in view

* enable light mode

* add placeholders

* highlights

* update

* typo

* fix mainDays import

* update og image

* update sections

* add hackathon link

* add video id

* add spaces and update ga

* remove highlights

* enterprise section

* highlights

* Adds the bootstrap post

* Updates the desc

* fixing tags

* fixing authors

* fix the admonition

* Adds the AWS post

* fixing categories

* Adds LW number

* Adds the branching post

* fix description

* chore: minor typos in blog post

* swift scaffold

* fix dates on all posts

* adds chris as the author

* Adds the branching tagline

* Adds oriole post

* updates oriole

* Fix caption

* Adds the YT video

* update GA page

* adds branching publicly available post

* bootstrap image update

* updated AWS images

* first section in GA

* update CLI bg

* Updates community

* fix build

* Adds scale section

* Adds all the sections

* updated images

* chore: adds partners and integrations

* padds out the swift post

* chore: whats new

* chore: whats next

* add chart

* updates AWS page

* chore: ai names

* section numbering

* Adds some stats for the community

* Adds humat

* edits

* edits

* update announcements

* add star growth

* update videoid

* Adds edits

* Update ga.tsx

* build stage svg color

* remove meetups link

* remove backticks

* update chart

* Add PWC

* add community stats

* Adds full URLs

* fix charts

* fix whats new

* fix broken HTML

* Fix orderign

* Fix swift video

* fix list

* spelling

* Update ga.tsx

* merge

* update community stats

from Ants feedback

* chore: links and small changes

* Change the category for Oriole

* add bg support

* Update ga.tsx

* fixes formatting on the quote

* update cta

* fixes

* add vercel partner

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Francesco Sansalvadore <francescosansalvadore@MacBook-Pro-2.local>
Co-authored-by: Francesco Sansalvadore <francescosansalvadore@mac.wind3.hub>
Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
Co-authored-by: Han Qiao <sweatybridge@gmail.com>
Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: awalias <antwilson@hotmail.co.uk>
2024-04-15 12:16:43 +02:00

61 lines
1.7 KiB
TypeScript

import Link from 'next/link'
import React, { ReactNode } from 'react'
import SectionContainer from '~/components/Layouts/SectionContainer'
import { ReactMarkdown } from 'react-markdown/lib/react-markdown'
import { Button, IconArrowUpRight, cn } from 'ui'
interface Feature {
icon: string
title: string
text: string
}
interface Props {
id?: string
title: string | ReactNode
paragraph?: string
cta?: {
label?: string
link: string
}
content?: string
className?: string
hasStickyTitle?: boolean
}
const FeaturesSection = ({
id,
title,
content,
cta,
paragraph,
className,
hasStickyTitle,
}: Props) => (
<SectionContainer id={id} className={className}>
<div className="grid grid-cols-1 lg:grid-cols-12 gap-4 md:gap-8 xl:gap-10 justify-between">
<div className="col-span-full lg:col-span-4 gap-2 flex flex-col items-start">
<div className={cn('gap-2 flex flex-col items-start', hasStickyTitle && 'sticky top-24')}>
<h2 className="text-2xl sm:text-3xl xl:text-4xl max-w-[280px] sm:max-w-xs xl:max-w-[360px] tracking-[-1px]">
{title}
</h2>
<p className="text-lighter mb-4 font-mono">{paragraph}</p>
{cta && (
<Button asChild type="default" size="small" icon={<IconArrowUpRight />}>
<Link href={cta.link}>{cta.label ?? 'Explore documentation'}</Link>
</Button>
)}
</div>
</div>
{content && (
<div className="col-span-full lg:col-start-6 lg:col-span-7">
<ReactMarkdown className="prose !max-w-none text-foreground-light">
{content}
</ReactMarkdown>
</div>
)}
</div>
</SectionContainer>
)
export default FeaturesSection