Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: update Quote mdx component

Francesco Sansalvadorea2554df451ea
diff --git a/apps/www/components/Quote.tsx b/apps/www/components/Quote.tsx
index f55e82ac291..c20e1adcd0e 100644
--- a/apps/www/components/Quote.tsx
+++ b/apps/www/components/Quote.tsx
@@ -11,12 +11,17 @@ export default function Quote(props: Props) {
const { children, caption, img } = props
return (
- <figure className="border border-gray-100 p-8 dark:border-gray-600">
- <div className="flex flex-col gap-5">
- <blockquote className="text-scale-1200 mb-4 border-none" style={{ margin: 0, padding: 0 }}>
+ <figure className="quote-figure p-0 mt-8">
+ <div className="relative flex flex-col gap-5 pl-8">
+ <p className="text-scale-1100 text-lg border-none" style={{ margin: 0, padding: 0 }}>
{children}
- </blockquote>
- <Avatar caption={caption} img={img} />
+ </p>
+ {caption && img && (
+ <div className="mt-4">
+ <Avatar caption={caption} img={img} />
+ </div>
+ )}
+ <div className="absolute w-0.5 h-full inset-0 right-auto bg-brand-900" />
</div>
</figure>
)
diff --git a/apps/www/styles/index.css b/apps/www/styles/index.css
index 916a53c1eb2..711070a73fb 100644
--- a/apps/www/styles/index.css
+++ b/apps/www/styles/index.css
@@ -92,6 +92,13 @@ h6:not(.overwrite) {
transition: all 0.07s ease-in-out;
}
+.quote-figure p:first-child {
+ margin-top: 0 !important;
+}
+.quote-figure p:last-child {
+ margin-bottom: 0 !important;
+}
+
@media only screen and (max-width: 960px) {
.h1:not(.prose *):not(.overwrite) {
font-size: 2.2rem !important;