The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
polish events page (#29039)
Francesco Sansalvadore0c3477ab1515
diff --git a/apps/www/components/Blog/BlogListItem.tsx b/apps/www/components/Blog/BlogListItem.tsxindex d6a2974211e..e6fc32364f7 100644--- a/apps/www/components/Blog/BlogListItem.tsx+++ b/apps/www/components/Blog/BlogListItem.tsx@@ -5,6 +5,7 @@ import React from 'react'import type Author from '~/types/author'import type PostTypes from '~/types/post'import dayjs from 'dayjs'+import { Badge } from 'ui'interface Props {post: PostTypes@@ -24,6 +25,8 @@ const BlogListItem = ({ post }: Props) => {}}+ const sanitizeCategory = (category: string) => category.replaceAll('-', ' ')+return (<Linkhref={post.path}@@ -54,12 +57,9 @@ const BlogListItem = ({ post }: Props) => {{post.categories.map((category, i) =>i === 0 && (- <span- key={category}- className="text-sm border border-muted group-hover:border-foreground-muted py-1 px-3 rounded-full text-center w-auto capitalize"- >- {category}- </span>+ <Badge key={category} className="group-hover:border-foreground-muted capitalize">+ {sanitizeCategory(category)}+ </Badge>))}</div>diff --git a/apps/www/components/Events/EventListItem.tsx b/apps/www/components/Events/EventListItem.tsxindex 09ec64d2729..19446684d01 100644--- a/apps/www/components/Events/EventListItem.tsx+++ b/apps/www/components/Events/EventListItem.tsx@@ -36,17 +36,14 @@ const EventListItem = ({ event }: Props) => {<Linkhref={event.disable_page_build ? event.link?.href ?? '' : event.path}target={event.disable_page_build ? event.link?.target ?? '' : '_self'}- className="group flex flex-col lg:grid lg:grid-cols-9 xl:grid-cols-12 w-full py-2 sm:py-4 h-full border-b"+ className="group flex flex-col lg:grid lg:grid-cols-10 2xl:grid-cols-12 w-full py-2 sm:py-4 h-full border-b">- <div className="flex w-full lg:col-span-7 xl:col-span-8">+ <div className="flex w-full lg:col-span-7 2xl:col-span-9"><h3 className="text-foreground text-lg group-hover:underline">{event.title}</h3></div>- <div className="lg:col-span-2 xl:col-span-3 flex justify-start items-center lg:grid grid-cols-2 xl:grid-cols-2 gap-2 text-sm">+ <div className="lg:col-span-3 xl:col-span-3 flex justify-between items-center grid-cols-2 gap-2 text-sm">{event.categories && (- <div className="hidden xl:flex gap-2 text-foreground-lighter flex-grow group-hover:text-foreground-light">- {/* {event.onDemand && (- <Badge className="group-hover:border-foreground-muted capitalize">On Demand</Badge>- )} */}+ <div className="hidden xl:flex gap-2 text-foreground-lighter group-hover:text-foreground-light">{event.categories.map((category, i) =>i === 0 && (@@ -58,17 +55,17 @@ const EventListItem = ({ event }: Props) => {</div>)}{event.date && (- <p className="text-foreground-lighter text-nowrap group-hover:text-foreground-light min-w-40 flex items-center gap-1.5 flex-1 w-full">+ <p className="text-foreground-lighter lg:text-right flex-grow lg:w-full text-nowrap group-hover:text-foreground-light min-w-40 inline-flex items-center lg:justify-end gap-1.5 flex-1 w-full">{dayjs(event.date).tz(event.timezone ?? 'America/Los_Angeles').format('DD MMM YYYY')}- <span className="w-px h-[16px] bg-muted" />+ <span className="min-w-px h-[16px] bg-muted" /><span className="">{dayjs(event.date).tz(event.timezone ?? 'America/Los_Angeles').format('hA')}</span>- <span className="w-px h-[16px] bg-muted" />+ <span className="min-w-px h-[16px] bg-muted" />{dayjs(event.date).tz(event.timezone ?? 'America/Los_Angeles').format('z')}diff --git a/apps/www/components/Events/EventsFilters.tsx b/apps/www/components/Events/EventsFilters.tsxindex 00df9bd0bdd..fa473455be3 100644--- a/apps/www/components/Events/EventsFilters.tsx+++ b/apps/www/components/Events/EventsFilters.tsx@@ -133,9 +133,21 @@ function EventFilters({ allEvents, setEvents, categories }: Props) {type="outline"size="medium"iconRight={<IconChevronDown />}- className="w-full min-w-[200px] flex justify-between items-center py-2"+ className="w-full min-w-[200px] flex [&_span]:flex [&_span]:items-center [&_span]:gap-2 justify-between items-center py-2">- {!activeCategory ? 'All Events' : startCase(activeCategory?.replaceAll('-', ' '))}+ {!activeCategory ? (+ <>+ All Events{' '}+ <span className="text-foreground-lighter text-xs">{categories['all']}</span>+ </>+ ) : (+ <>+ {startCase(activeCategory?.replaceAll('-', ' '))}+ <span className="text-foreground-lighter text-xs">+ {categories[activeCategory]}+ </span>+ </>+ )}</Button></DropdownMenuTrigger><DropdownMenuContent side="bottom" align="start">@@ -151,14 +163,7 @@ function EventFilters({ allEvents, setEvents, categories }: Props) {)}>{category === 'all' ? 'All Posts' : startCase(category.replaceAll('-', ' '))}{' '}- <span- className={cn(- 'flex items-center justify-center rounded-full bg-border-stronger h-[16px] aspect-square',- count > 9 && 'aspect-auto px-1'- )}- >- {count}- </span>+ <span className="text-foreground-lighter text-xs w-3">{count}</span></DropdownMenuItem>))}</DropdownMenuContent>@@ -178,14 +183,9 @@ function EventFilters({ allEvents, setEvents, categories }: Props) {}onClick={() => handleSetCategory(category)}size={is2XL ? 'tiny' : 'small'}- className="rounded-full pr-1.5"+ className="rounded-full"iconRight={- <span- className={cn(- 'flex items-center justify-center rounded-full bg-surface-100 h-[16px] aspect-square',- count > 9 && 'aspect-auto px-1'- )}- >+ <span className="text-foreground-lighter text-xs flex items-center h-[16px] self-center">{count}</span>}diff --git a/apps/www/lib/authors.json b/apps/www/lib/authors.jsonindex 22df45993fa..aefe99dc68e 100644--- a/apps/www/lib/authors.json+++ b/apps/www/lib/authors.json@@ -291,7 +291,7 @@"author_id": "marijana","author": "Marijana Pavlinić","position": "Design",- "author_url": "https://dribbble.com/marijanapav",+ "author_url": "https://github.com/marijanapav","author_image_url": "https://github.com/marijanapav.png"},{diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xmlindex 0356cacc480..7c566fe9d1e 100644--- a/apps/www/public/rss.xml+++ b/apps/www/public/rss.xml@@ -5,9 +5,16 @@<link>https://supabase.com</link><description>Latest news from Supabase</description><language>en</language>- <lastBuildDate>Tue, 27 Aug 2024 22:00:00 GMT</lastBuildDate>+ <lastBuildDate>Wed, 28 Aug 2024 22:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/><item>+ <guid>https://supabase.com/blog/in-browser-semantic-search-pglite</guid>+ <title>In-Browser Semantic AI Search with PGlite and Transformers.js</title>+ <link>https://supabase.com/blog/in-browser-semantic-search-pglite</link>+ <description>Use pgvector in PGlite and combine it with Huggingface Transformers.js for a fully local, in-browser semantic search functionality!</description>+ <pubDate>Wed, 28 Aug 2024 22:00:00 GMT</pubDate>+</item>+<item><guid>https://supabase.com/blog/supabase-vercel-partnership</guid><title>Supabase + Vercel Partnership</title><link>https://supabase.com/blog/supabase-vercel-partnership</link>