Skip to content

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

Add zoomable image to vercel blog post and restore borders

Francesco Sansalvadore982858ebc294
diff --git a/apps/www/_blog/2023-08-10-using-supabase-with-vercel.mdx b/apps/www/_blog/2023-08-10-using-supabase-with-vercel.mdx
index 867c4b07920..21606166b4a 100644
--- a/apps/www/_blog/2023-08-10-using-supabase-with-vercel.mdx
+++ b/apps/www/_blog/2023-08-10-using-supabase-with-vercel.mdx
@@ -25,7 +25,10 @@ Our new [Vercel Integration](https://vercel.com/integrations/supabase-v2) stream
You can now [link multiple](https://app.supabase.com/org/_/integrations) Vercel projects to a single Supabase project:
-![Vercel in the Supabase dashboard](/images/blog/launch-week-8/day-4/vercel-dashboard.png)
+<Img
+ src="/images/blog/launch-week-8/day-4/vercel-dashboard.png"
+ alt="Vercel in the Supabase dashboard"
+/>
Previously we mapped each Vercel project to a single Supabase project. With this release, we're introducing the concept of project 'Connections'. Supabase projects can have an unlimited number of Vercel Connections. This is especially useful for monorepos using [Turborepo](https://turbo.build/).
@@ -33,7 +36,7 @@ Previously we mapped each Vercel project to a single Supabase project. With this
We've improved the way we manage your Supabase environment variables.
-![Vercel config](/images/blog/launch-week-8/day-4/vercel-config.png)
+<Img src="/images/blog/launch-week-8/day-4/vercel-config.png" alt="Vercel config" />
Supabase keeps each of your Vercel Projects updated with Environment Variables, managing your secrets (like `service-role-key`) and public variables (like `supabase-url`).
@@ -76,7 +79,7 @@ After Vercel has deployed the app, it works without any additional configuration
We announced Database Branching on [Tuesday](/blog/supabase-local-dev#branching-and-preview-environments). We've designed this to work perfectly with Vercel's Preview Deployments.
-![Vercel config](/images/blog/launch-week-8/day-4/supabase-vercel-branching.png)
+<Img src="/images/blog/launch-week-8/day-4/supabase-vercel-branching.png" alt="Vercel branching" />
For now, Branching in Supabase is limited to development partners. We'll be rolling it out to everyone over the coming months. If you're interested in testing the new features, [sign up for early access](https://forms.supabase.com/branching-request).
diff --git a/apps/www/lib/mdx/mdxComponents.tsx b/apps/www/lib/mdx/mdxComponents.tsx
index 6568225002b..92a7c63f8de 100644
--- a/apps/www/lib/mdx/mdxComponents.tsx
+++ b/apps/www/lib/mdx/mdxComponents.tsx
@@ -94,20 +94,14 @@ export default function mdxComponents(type?: 'blog' | 'lp' | undefined) {
Img: ({ zoomable = true, ...props }: any) => (
<figure className="m-0">
<ZoomableImg zoomable={zoomable}>
- <span className={['next-image--dynamic-fill', props.wide && 'wide'].join(' ')}>
- {zoomable ? (
- <img
- className={[type === 'blog' ? 'rounded-md border' : ''].join(' ')}
- layout="fill"
- {...props}
- />
- ) : (
- <Image
- className={[type === 'blog' ? 'rounded-md border' : ''].join(' ')}
- layout="fill"
- {...props}
- />
- )}
+ <span
+ className={[
+ 'next-image--dynamic-fill',
+ type === 'blog' ? 'rounded-md border' : '',
+ props.wide && 'wide',
+ ].join(' ')}
+ >
+ <Image layout="fill" {...props} />
</span>
</ZoomableImg>
{props.caption && (
diff --git a/apps/www/styles/index.css b/apps/www/styles/index.css
index 20c211ab220..17712e0971c 100644
--- a/apps/www/styles/index.css
+++ b/apps/www/styles/index.css
@@ -782,6 +782,11 @@ launch week
/* Zoomable image */
+[data-rmiz-modal]:focus,
+[data-rmiz-modal-overlay]:focus {
+ outline: none !important;
+}
+
[data-rmiz-modal-overlay],
[data-rmiz-modal-img] {
transition-timing-function: cubic-bezier(0.24, 0.25, 0.05, 1) !important;