Files
supabase/apps/www/components/Modules/Queues/QueuesSQLSection.tsx
a2831e2e69 feat: lw13d4 (#30908)
* lw13:d4

* www queues page (#30907)

* new products menu

* set up cron page

* set up cron page

* placeholder sections

* set up queues page

* update meta

* update Supabase Queues landing page content

* Updated the text to exclude queue creation/management from the API management section

* queues www page

---------

Co-authored-by: Wen Bo Xie <wenbo.xie3@gmail.com>
Co-authored-by: Greg Papas <gregpapas@Gregs-MacBook-Pro.local>

* feat: add queue module (#30853)

* feat: postgres integrations

Create a new global navigation and homepage menu section for the Postgres Integrations category.
reorg: move cron docs into postgres integrations
feat: postgres integrations

Create a new global navigation and homepage menu section for the Postgres Integrations category.
reorg: move cron docs into postgres integrations
docs homepage layout

feat: postgres integrations

Create a new global navigation and homepage menu section for the Postgres Integrations category.
reorg: move cron docs into postgres integrations
feat: postgres integrations

Create a new global navigation and homepage menu section for the Postgres Integrations category.
reorg: move cron docs into postgres integrations
docs homepage layout

feat: postgres integrations

Create a new global navigation and homepage menu section for the Postgres Integrations category.
reorg: move cron docs into postgres integrations
feat: postgres integrations

Create a new global navigation and homepage menu section for the Postgres Integrations category.
reorg: move cron docs into postgres integrations
docs homepage layout

* fix: add pg_cron back to extensions sidebar

* update Supabase Cron docs

* feat: add queues module


feat: add queues module

* remove staging url from screenshots

* remove outdated cron files

* typo

* queues description update

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Wen Bo Xie <wenbo.xie3@gmail.com>
Co-authored-by: Oliver Rice <github@oliverrice.com>

* visibility timeout to window

* queues landing page sql example

* capitalize Dashboard

* cron blog post citus data callout update

* added draft of queues feature

* updated features bulleting

* pluralize queues

* fix Queues features page

* Inital bp

* queues docs updates

* format queues docs

* queues blog post updates

* edits

* Update the images for role in the docs quickstart for queues.

* updated images

* update images

* update more images

* Update 2024-12-05-supabase-queues.mdx

* fix breaks

* punchier title

* better ul

* clean up

* Retake screenshots

* grammar

* whitelines

* video + images

* update docs

* blog updates

* blog update

* api snippet

* api snippet fix

* queues features yt video

* api snippet fix

* update docs

* blog update

* api snippet fix and vale

* format

* vale off

* vale off

* blog update

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Greg Papas <gregpapas@Gregs-MacBook-Pro.local>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
Co-authored-by: Oliver Rice <github@oliverrice.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-12-05 15:05:47 +00:00

64 lines
1.7 KiB
TypeScript

import React, { FC } from 'react'
import { cn, TextLink } from 'ui'
import SectionContainer from '~/components/Layouts/SectionContainer'
import CodeWindow from '~/components/CodeWindow'
const codeSnippet = `
select pgmq.create('my_special_queue');
select * from pgmq.send(
queue_name => 'my_special_queue',
msg => '{"hello": "world"}',
);
select * from pgmq.pop('my_special_queue');
`
interface Props {
id: string
label: string | JSX.Element
heading: string | JSX.Element
subheading: string | JSX.Element
className?: string
cta?: {
label: string
url: string
}
}
const QueuesSQLSection: FC<Props> = (props) => {
return (
<SectionContainer
id={props.id}
className={cn(
'mx-auto lg:max-w-6xl flex flex-col md:flex-row justify-between items-center gap-8',
props.className
)}
>
<ul className="w-full flex-grow rounded-lg max-w-md">
<div className="w-full h-full relative">
<CodeWindow
code={codeSnippet}
lang="sql"
className="
h-full xl:!text-lg
[&_.synthax-highlighter]:!pb-8
[&_.synthax-highlighter]:xl:min-h-[240px]
"
/>
</div>
</ul>
<div className="flex order-first md:order-last flex-col gap-2 max-w-md">
<span className="label">{props.label}</span>
<h2 className="h2 !m-0">{props.heading}</h2>
<p className="p !text-foreground-lighter">{props.subheading}</p>
{props.cta && (
<TextLink hasChevron label={props.cta.label} url={props.cta.url} className="mt-2" />
)}
</div>
</SectionContainer>
)
}
export default QueuesSQLSection