Skip to content

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

wrappers first pass (#10984)

Francisco Mazzoni8a1f0d6aa715
diff --git a/apps/docs/public/img/icons/nuxt-icon.svg b/apps/docs/public/img/icons/nuxt-icon.svg
index 1cc014898bb..1330c8336aa 100644
--- a/apps/docs/public/img/icons/nuxt-icon.svg
+++ b/apps/docs/public/img/icons/nuxt-icon.svg
@@ -1 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 298"><g fill="none" fill-rule="nonzero"><path fill="#00C58E" d="M227.92099 82.07407l-13.6889 23.7037-46.8148-81.08641L23.7037 273.58025h97.3037c0 13.0912 10.61252 23.7037 23.70371 23.7037H23.70371c-8.46771 0-16.29145-4.52017-20.5246-11.85382-4.23315-7.33366-4.23272-16.36849.00114-23.70174L146.89383 12.83951c4.23415-7.33433 12.0596-11.85252 20.5284-11.85252 8.46878 0 16.29423 4.51819 20.52839 11.85252l39.97037 69.23456z"/><path fill="#2F495E" d="M331.6642 261.7284l-90.05432-155.95062-13.6889-23.7037-13.68888 23.7037-90.04445 155.95061c-4.23385 7.33325-4.23428 16.36808-.00113 23.70174 4.23314 7.33365 12.05689 11.85382 20.5246 11.85382h166.4c8.46946 0 16.29644-4.51525 20.532-11.84955 4.23555-7.3343 4.23606-16.37123.00132-23.706h.01976zM144.7111 273.58024L227.921 129.48148l83.19012 144.09877h-166.4z"/><path fill="#108775" d="M396.04938 285.4321c-4.23344 7.33254-12.05656 11.85185-20.52345 11.85185H311.1111c13.0912 0 23.7037-10.6125 23.7037-23.7037h40.66173L260.09877 73.74815l-18.4889 32.02963-13.68888-23.7037L239.5753 61.8963c4.23416-7.33433 12.0596-11.85252 20.5284-11.85252 8.46879 0 16.29423 4.51819 20.52839 11.85252l115.41728 199.8321c4.23426 7.33395 4.23426 16.36975 0 23.7037z"/></g></svg>
\ No newline at end of file
+<svg width="61" height="40" viewBox="0 0 61 40" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M33.9971 39.539H56.5247C57.2402 39.539 57.9432 39.3564 58.5628 39.0093C59.1825 38.6623 59.697 38.1631 60.0546 37.5619C60.4122 36.9608 60.6003 36.2789 60.6 35.5849C60.5997 34.8908 60.411 34.2091 60.0528 33.6083L44.9239 8.1904C44.5663 7.5894 44.0519 7.09032 43.4324 6.74332C42.8129 6.39632 42.1101 6.21363 41.3947 6.21363C40.6793 6.21363 39.9766 6.39632 39.357 6.74332C38.7375 7.09032 38.2231 7.5894 37.8655 8.1904L33.9971 14.6939L26.4338 1.97648C26.0759 1.37553 25.5613 0.876518 24.9416 0.52958C24.3219 0.182643 23.619 0 22.9035 0C22.188 0 21.4851 0.182643 20.8654 0.52958C20.2457 0.876518 19.7311 1.37553 19.3732 1.97648L0.547184 33.6083C0.189033 34.2091 0.00031171 34.8908 3.85805e-07 35.5849C-0.000310938 36.2789 0.187799 36.9608 0.54541 37.5619C0.903021 38.1631 1.41752 38.6623 2.03717 39.0093C2.65681 39.3564 3.35975 39.539 4.07528 39.539H18.2162C23.819 39.539 27.9509 37.1518 30.794 32.4945L37.6965 20.8993L41.3936 14.6939L52.4895 33.3335H37.6965L33.9971 39.539ZM17.9857 33.3272L8.11711 33.325L22.9101 8.47362L30.2912 20.8993L25.3492 29.2044C23.4611 32.2262 21.3162 33.3272 17.9857 33.3272Z" fill="#00DC82"/>
+</svg>
diff --git a/apps/www/_blog/2022-12-14-mfa-auth-via-rls.mdx b/apps/www/_blog/2022-12-14-mfa-auth-via-rls.mdx
new file mode 100644
index 00000000000..0e013169035
--- /dev/null
+++ b/apps/www/_blog/2022-12-14-mfa-auth-via-rls.mdx
@@ -0,0 +1,126 @@
+---
+title: 'Multi-factor Authentication via Row Level Security Enforcement'
+description: MFA Auth with enforcement via RLS
+author: joel,kangmingtay,stojan
+image: lw6-auth/mfa-banner.jpg
+thumb: lw6-auth/mfa-banner.jpg
+tags:
+ - launch-week
+ - auth
+ - mfa
+ - saml
+date: '2022-12-14'
+toc_depth: 3
+---
+Today, we’re releasing Multi Factor Authentication for everyone.
+
+Additionally, in preparation for releasing SAML, we're "dogfooding" the feature with the introduction of Single Sign On (SSO) on our dashboard. Contact us at [[email protected]](mailto:[email protected]) if you want to [enable this in your Enterprise or Pro plan](https://docs.supabase.com/guides/platform/sso/enable-sso).
+
+## What is MFA?
+
+Multi-factor authentication (MFA), sometimes called two-factor authentication (2FA), adds an additional layer of security to your application by letting you verify users’ identity through extra steps. This typically consists of something you know, like a password, and something you have, like an authenticator application. We built MFA in response to customer requests - developers wanted enhanced security - be it for compliance, client requirements, or simply for peace of mind. As such, we started by building MFA support for Time-Based One Time Passwords (TOTP).
+
+
+## An Overview of TOTP
+
+[TOTP](https://www.rfc-editor.org/rfc/rfc6238) works by generating a unique, one-time password that is valid for a limited amount of time, usually 30 seconds or less. This password is generated using a shared secret key that is known only to the device and Supabase Auth, along with the current time. To exchange the shared secret key, a user scans a QR code generated by the server in order to establish a connection. The QR code can be represented by a URI which conforms to the [Google Authenticator Key URI format](https://github.com/google/google-authenticator/wiki/Key-Uri-Format):
+
+```bash
+otpauth://totp/supabase.io:[email protected]?algorithm=SHA1&digits=6&issuer=supabase.io&period=30&secret=BFSXQHFB2BGAZIOQWCDBJUF7B54A52JQ
+```
+
+The first portion of `otpauth://totp/supabase.io` describes the protocol and issuer while `[email protected]` refers to the user. The remaining parameters refer to specifics around OTP generation. In this case, the OTP code is generated using a SHA1 hash of the secret combined with the timestamp and the OTP code is valid for `30s`
+
+In the event that the user faces difficulties entering a QR code the user can also opt to manually type the secret into the authenticator device.
+
+## MFA Flows: Enrollment and Verification
+
+An MFA flow can be broken into two key steps: Enrollment and Verification. During the *Enrollment* process Supabase Auth exchanges a randomly generated secret with the user’s authenticator application. During the *Verification* process, the device makes use of the timestamp together with the secret to produce a six digit code that the server can verify.
+
+![Flowchart of an MFA flow](/images/blog/lw6-auth/mfa-flow.png)
+**Enrollment**
+
+To generate a QR code, call the `/enroll` endpoint which returns an SVG encoded QR and the secret. Thereafter, create a challenge by calling the `/challenge` endpoint. Once the user has entered the six digit TOTP code generated by their authenticator app, call the`/verify` endpoint with the corresponding factor and challenge details.
+
+You might wonder: why the need for the "challenge" step? This step creates an interval between MFA initiation and the action of making a verification. This is useful in cases like Yubikey authentication where a user might need to request a challenge before placing their finger on the device.
+
+
+![MFA Enrollment Flow](/images/blog/lw6-auth/enrollment_flow.png)
+*Overview of Enrollment Flow*
+
+**Verification**
+
+On subsequent logins attempts, redirect a user to an MFA verification after they have completed the conventional sign in process. On the verification page, wait for the user to enter the six digit OTP code from the authenticator application and then call the`/challenge` endpoint followed by the `/verify` endpoint. If a correct code is submitted, a JWT will be created with a few additional fields.
+
+![MFA Verification Flow](/images/blog/lw6-auth/verify_flow.png)
+*Overview of Verification Flow*
+
+## Enforcement via Row Level Security
+
+Using MFA without enforcing it is like buying an expensive door and never locking it. We love Postgres RLS at Supabase. To support RLS integration, JWTs issued by Supabase Auth now contain two additional pieces of information:
+
+1. An Authenticator Assurance Level (AAL) claim. Use this to quickly identify the level of identity checks the user has performed. `aal1` is reserved for conventional sign in, while `aal2` is issued only after the user has verified with an additional factor.
+2. An Authenticator Method Reference (AMR) claim. Use this to identify all of the authentication methods used by the user. This is also useful if you wish to implement step-up login scenarios.
+
+```jsx
+{
+ "sub": "8802c1d6-c555-46e3-aacd-b61198b058d9",
+ "email": "[email protected]",
+ "aud": "authenticated",
+ "exp": 1670929371,
+ "aal": "aal2",
+ "amr": [
+ {
+ "method": "password",
+ "timestamp": 1670924394
+ },
+ {
+ "method": "totp",
+ "timestamp": 1670925771
+ }
+ ],
+ // ...
+}
+````
+
+The information encoded in these claims can be used for both full enforcement and partial enforcement across database queries.
+
+```sql
+create policy "Enforce MFA for all end users."
+ on table_name
+ as restrictive
+ to authenticated
+ using ( auth.jwt()->>'aal' = 'aal2' );
+```
+
+*Enforce MFA for all end users*
+
+```sql
+create policy "Allow access on table only if user has gone through MFA"
+ on table_name
+ as restrictive -- very important!
+ to authenticated
+ using (
+ array[auth.jwt()->>'aal'] <@ (
+ select
+ case
+ when count(id) > 0 then array['aal2']
+ else array['aal1', 'aal2']
+ end as aal
+ from auth.mfa_factors
+ where auth.uid() = user_id and status = 'verified'
+ ));
+```
+
+*Enforce MFA for selected users*
+
+Note that both RLS policies are restrictive. By default, overlapping policies in PostgreSQL are permissive rather than restrictive. This means that RLS policies are combined with an `OR` clause and only one policy needs to pass in order for a row to be operated on. Therefore, we set RLS policies as restrictive to enforce the checks from multiple policies.
+
+Be mindful of your user’s preference, though. If a user has enabled MFA, they are expecting a higher level of security for their account. Consequently, we recommend that developers enforce MFA across all operations if a user has MFA enabled. You can check out [our MFA guide](https://supabase.com/docs/guides/auth/auth-mfa) for more details about MFA enforcement.
+
+
+## What's Next
+
+For starters, we are looking to support WebAuthn and FIDO2 compliant devices such as Yubikeys. We also hope to allow users to receive email notifications when selected MFA actions are triggered. If you have MFA requirements which are not covered here feel free to write to us at support[at]supabase.io .
+
+We are grateful to our early MFA users for the support and feedback provided throughout this period. In particular, we would like to thank [Fabian Beer](https://madebyfabian.com), [Cogram](https://www.cogram.com), and [Happl](https://happl.com) whose detailed feedback helped to shape our implementation. We would also like to specially thank the community behind the [pquerna/otp](https://github.com/pquerna/otp) and [ajstarks/svgo](https://github.com/ajstarks/svgo) libraries - their work is indispensable to this implementation.
diff --git a/apps/www/components/LaunchWeek/lw6_days.json b/apps/www/components/LaunchWeek/lw6_days.json
index 0f5f6af8109..7a0a022eacd 100644
--- a/apps/www/components/LaunchWeek/lw6_days.json
+++ b/apps/www/components/LaunchWeek/lw6_days.json
@@ -47,28 +47,44 @@
]
},
{
- "title": "Day 3",
- "shipped": false,
+ "title": "Multi-factor Authentication",
+ "shipped": true,
"date": "14 Dec 2022",
- "description": "Day 3",
+ "description": "Multi-factor Authentication",
"d": 3,
"dd": "Wednesday",
- "youtube_id": "6bGQotxisoY",
+ "youtube_id": "CGZr5tybW18",
"blogpost": "https://supabase.com/blog",
"docs": "https://supabase.com/docs",
- "steps": []
+ "steps": [
+ {
+ "title": "Multi-factor Authentication",
+ "blog": "/blog/mfa-auth-via-rls",
+ "docs": "/docs/guides/auth/auth-mfa",
+ "isNew": false,
+ "description": ""
+ }
+ ]
},
{
- "title": "Day 4",
- "shipped": false,
+ "title": "Supabase Wrappers - FDW Framework",
+ "shipped": true,
"date": "15 Dec 2022",
- "description": "Day 4",
+ "description": "Supabase Wrappers",
"d": 4,
"dd": "Thursday",
"youtube_id": "CGZr5tybW18",
"blogpost": "https://supabase.com/blog",
"docs": "https://supabase.com/docs",
- "steps": []
+ "steps": [
+ {
+ "title": "Supabase Wrappers",
+ "blog": "/blog",
+ "docs": "/docs",
+ "isNew": true,
+ "description": "Connect Postgres to external systems with Postgres Foreign Data Wrappers"
+ }
+ ]
},
{
"title": "Day 5",
@@ -81,5 +97,17 @@
"blogpost": "https://supabase.com/blog",
"docs": "https://supabase.com/docs",
"steps": []
+ },
+ {
+ "title": "Day 4",
+ "shipped": false,
+ "date": "15 Dec 2022",
+ "description": "Day 4",
+ "d": 4,
+ "dd": "Thursday",
+ "youtube_id": "CGZr5tybW18",
+ "blogpost": "https://supabase.com/blog",
+ "docs": "https://supabase.com/docs",
+ "steps": []
}
]
diff --git a/apps/www/data/Announcements.json b/apps/www/data/Announcements.json
index c56455e62a6..be53ae3db0d 100644
--- a/apps/www/data/Announcements.json
+++ b/apps/www/data/Announcements.json
@@ -1,33 +1,32 @@
[
{
"type": "Announcement",
- "title": "Works With Supabase - announcing our Partner Gallery",
- "description": "Introducing our Partner Gallery - open source and made with Supabase.",
- "imgUrl": "images/blog/partner-gallery/partner-showcase-thumb.png",
- "logoUrl": "images/blog/partner-gallery/partner-showcase-thumb.png",
+ "title": "Supabase Launch Week 6",
+ "description": "One new feature (or more) every day during a week.",
+ "imgUrl": "/images/launchweek/launch-week-6.jpg",
+ "logoUrl": "/images/launchweek/launch-week-6.jpg",
"organization": "Supabase",
- "url": "/blog/2022/04/20/partner-gallery-works-with-supabase",
+ "url": "/launch-week",
"postMeta": {
- "name": "Thor Shcaeff, Alaister Young, Shane Rice",
- "publishDate": "Apr 20, 2022",
+ "name": "Paul Copplestone",
+ "publishDate": "Dec 12, 2022",
"readLength": 5
},
- "ctaText": "Read blog post"
+ "ctaText": "Learn more"
},
{
"type": "Announcement",
- "title": "Supabase Launch Week 4",
- "description": "Launch Week 4 had something for everybody: Community Day, GraphQL support, Edge Functions, and more.",
- "imgUrl": "images/blog/launch-week-4/friday-before/launchweek-4-promo-cal.png",
- "logoUrl": "images/blog/launch-week-4/friday-before/launchweek-4-promo.png",
+ "title": "The Supabase Content Storm",
+ "description": "We worked with dozens of content creators from around the world to create Supabase-related content and publish everything on the same day!",
+ "imgUrl": "/images/blog/2022-12-06-content-storm/content-storm.jpg",
+ "logoUrl": "/images/blog/2022-12-06-content-storm/content-storm.jpg",
"organization": "Supabase",
- "url": "/blog/2022/03/25/supabase-launch-week-four",
+ "url": "/blog/the-supabase-content-storm",
"postMeta": {
- "name": "Paul Copplestone",
- "avatarUrl": "https://avatars0.githubusercontent.com/u/10214025?v=4",
- "publishDate": "Mar 25, 2022",
+ "name": "Ramiro",
+ "publishDate": "Dec 06, 2022",
"readLength": 4
},
- "ctaText": "Read blog post"
+ "ctaText": "See the full list"
}
]
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index 7e6fe56e6f3..e8a14a7f8b8 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -38,7 +38,7 @@ export default function launchweek() {
const { isDarkMode } = useTheme()
const title = 'Launch Week 6'
const description = 'Supabase Launch Week 6 | 12-18 Dec 2022'
- const liveDay = 'Tuesday'
+ const liveDay = 'Thursday'
const [supabase] = useState(() =>
createClient(process.env.NEXT_PUBLIC_SUPABASE_URL!, process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!)
@@ -93,7 +93,7 @@ export default function launchweek() {
const AccordionHeader = ({ date, day, title, shipped }: any) => {
return (
<div className="flex flex-1 flex-col sm:flex-row">
- <div className="flex gap-4 min-w-[320px] items-center">
+ <div className="flex gap-4 min-w-[380px] items-center">
{liveDay === day ? (
<Badge className="bg-gradient-to-r from-[#0E3737C2] to-[#67947F] hover:to-[#39617D94] dark:hover:to-[#A6FFD899] text-whiteA-1200 dark:text-black font-normal !py-1 !px-4 dark:from-white dark:via-white dark:to-[#1a7a4c75] bg-slate-1200 border-[#DFFFF1]">
Currently Happening
@@ -223,12 +223,13 @@ export default function launchweek() {
<div className="border rounded-2xl border-slate-400 text-sm px-5 py-4 flex flex-col sm:flex-row justify-between items-center">
<div className="relative flex items-center mb-4 sm:mb-0">
<div className="flex">
- <Image
- src="/images/launchweek/antcopplecall.png"
- className="rounded-xl w-32 h-32 brightness-125"
+ <img
+ src={`/images/launchweek/antcopplecall.png`}
+ className="brightness-125"
width={120}
height={80}
- ></Image>
+ priority
+ ></img>
</div>
<div className="flex flex-col lg:flex-row ml-8 sm:ml-10">
<span className="text-black dark:text-white mr-2">Who we hire at Supabase</span>
@@ -264,7 +265,12 @@ export default function launchweek() {
justified={false}
bordered={false}
chevronAlign="right"
- defaultValue={[day2.d.toString()]}
+ defaultValue={[
+ day1.d.toString(),
+ day2.d.toString(),
+ day3.d.toString(),
+ day4.d?.toString(),
+ ]}
>
<div className="border-b pb-3">
<Accordion.Item
@@ -281,7 +287,15 @@ export default function launchweek() {
id={day1.d.toString()}
>
{day1.steps.length > 0 && (
- <div className="h-[400px] flex flex-col lg:flex-row">
+ <div className="h-[400px] flex flex-col lg:flex-row group/day1 relative overflow-hidden">
+ <div
+ className="absolute group-hover/day1:scale-105 opacity-60 group-hover/day1:opacity-100 w-full h-full -z-10 transition-all duration-500"
+ style={{
+ background: `radial-gradient(650px 150px at 50% 100%, ${
+ isDarkMode ? '#103633' : '#b8e8e7'
+ }, transparent)`,
+ }}
+ ></div>
<div
className={`flex flex-col flex-1 items-center gap-5 lg:items-start lg:justify-between border rounded-xl h-full relative overflow-hidden after:opacity- after:absolute after:bg-no-repeat after:bg-[center_bottom] lg:after:bg-[right_15%_top_100px] xl:after:bg-[right_15%_top_60px] after:bg-[length:300px_180px] after:lg:bg-[length:450px_300px] after:xl:bg-[length:528px_367px] after:bg-[url('/images/launchweek/docs-update-bg.png')] after:top-0 after:right-0 after:bottom-0 after:left-0 p-14 text-2xl before:absolute before:w-full before:h-full before:top-52 before:right-0 before:bottom-0 before:left-0 before:border-[#1f3536] before:-z-10 !px-3 sm:!px-14`}
>
@@ -291,7 +305,6 @@ export default function launchweek() {
Redesigned
</Badge>
</div>
-
<SectionButtons
docs={day1.steps[0].docs}
blog={day1.steps[0].blog}
@@ -321,8 +334,16 @@ export default function launchweek() {
{day2.steps.length > 0 && (
<div className="h-[800px] lg:h-[400px] flex flex-col gap-5 lg:flex-row">
<div
- className={`flex-1 flex flex-col items-center gap-5 lg:items-start justify-between basis-1/2 lg:basis-2/3 border rounded-xl h-full p-14 xs:text-2xl text-xl text-center bg-no-repeat bg-[url('/images/launchweek/image-processing-bg-light-alt.png')] xs:bg-[url('/images/launchweek/image-processing-bg-light.png')] dark:bg-[url('/images/launchweek/image-processing-bg-alt.png')] xs:dark:bg-[url('/images/launchweek/image-processing-bg.png')] bg-[right_30px_top_35px] lg:bg-[top_25px_right_25px] bg-contain`}
+ className={`relative overflow-hidden group/2 flex-1 flex flex-col items-center gap-5 lg:items-start justify-between basis-1/2 lg:basis-2/3 border rounded-xl h-full p-14 xs:text-2xl text-xl text-center bg-no-repeat bg-[url('/images/launchweek/image-processing-bg-light-alt.png')] xs:bg-[url('/images/launchweek/image-processing-bg-light.png')] dark:bg-[url('/images/launchweek/image-processing-bg-alt.png')] xs:dark:bg-[url('/images/launchweek/image-processing-bg.png')] bg-[right_30px_top_35px] lg:bg-[top_25px_right_25px] bg-contain`}
>
+ <div
+ className="top-0 absolute group-hover/2:scale-105 opacity-60 group-hover/2:opacity-100 w-full h-full -z-10 transition-all duration-500"
+ style={{
+ background: `radial-gradient(90% 130px at 80% 0px, ${
+ isDarkMode ? '#103633' : '#b8e8e7'
+ }, transparent)`,
+ }}
+ ></div>
<div className="flex items-center justify-between flex-col-reverse lg:flex-row lg:justify-start gap-2 text-black dark:text-white">
<div>{day2.steps[0].title}</div>
<Badge className="!bg-transparent h-fit ml-4 text-sm !py-1 !px-4 text-transparent bg-clip-text bg-gradient-to-r from-[#99bbab] to-[#396f55] border-[#598973] dark:from-white dark:to-[#1a7a4ca1] dark:border-[#DFFFF1]">
@@ -332,8 +353,16 @@ export default function launchweek() {
<SectionButtons docs={day2.steps[0].docs} blog={day2.steps[0].blog} />
</div>
<div
- className={`flex-1 flex flex-col items-center justify-between basis-1/2 lg:basis-1/3 border rounded-xl h-full bg-no-repeat p-14 text-2xl bg-[url('/images/launchweek/cdn-caching-bg-light.png')] dark:bg-[url('/images/launchweek/cdn-caching-bg.png')] bg-[top_170px_center] lg:bg-[center_bottom] bg-contain`}
+ className={`relative overflow-hidden group/3 flex-1 flex flex-col items-center justify-between basis-1/2 lg:basis-1/3 border rounded-xl h-full bg-no-repeat p-14 text-2xl bg-[url('/images/launchweek/cdn-caching-bg-light.png')] dark:bg-[url('/images/launchweek/cdn-caching-bg.png')] bg-[top_170px_center] lg:bg-[center_bottom] bg-contain`}
>
+ <div
+ className="top-0 absolute group-hover/3:scale-105 opacity-60 group-hover/3:opacity-100 w-full h-full -z-10 transition-all duration-500"
+ style={{
+ background: `radial-gradient(90% 130px at 50% 0px, ${
+ isDarkMode ? '#103633' : '#b8e8e7'
+ }, transparent)`,
+ }}
+ ></div>
<div className="flex flex-col items-center gap-2 min-w-[300px]">
<Badge className="!bg-transparent h-fit text-sm !py-1 !px-4 text-transparent bg-clip-text bg-gradient-to-r from-[#99bbab] to-[#396f55] border-[#598973] dark:from-white dark:to-[#1a7a4ca1] dark:border-[#DFFFF1]">
New
@@ -364,30 +393,44 @@ export default function launchweek() {
id={day3.d.toString()}
>
{day3.steps.length > 0 && (
- <div className="h-[800px] lg:h-[400px] flex flex-col gap-5 lg:flex-row">
+ <div className="h-[400px] flex gap-5 group">
<div
- className={`flex flex-col justify-between flex-1 basis-1/2 lg:basis-2/3 border rounded-xl h-full p-14 text-2xl bg-no-repeat bg-contain bg-[url('/images/launchweek/vault-bg-light.png')] dark:bg-[url('/images/launchweek/vault-bg.png')] bg-[center_bottom]`}
+ className={`flex flex-col text-center items-center lg:items-start justify-between flex-1 border rounded-xl h-full bg-no-repeat p-14 text-2xl relative`} // bg-[url('/images/launchweek/mfa-bg-light.png')] dark:bg-[url('/images/launchweek/mfa-bg.png')] bg-[bottom_right_30%] bg-contain
>
- <div className="flex items-center">
+ <div className="absolute top-0 right-0 w-full h-full -z-20 ">
+ <Image
+ src={
+ isDarkMode
+ ? '/images/launchweek/mfa-dark.png'
+ : '/images/launchweek/mfa-light.png'
+ }
+ layout="fill"
+ objectFit="cover"
+ quality={100}
+ priority
+ />
+ </div>
+ <div className="absolute top-0 right-0 w-full h-full -z-10 opacity-0 group-hover:opacity-100 duration-500 transition-all">
+ <Image
+ src={
+ isDarkMode
+ ? '/images/launchweek/mfa-dark-hover.png'
+ : '/images/launchweek/mfa-light-hover.png'
+ }
+ layout="fill"
+ objectFit="cover"
+ quality={100}
+ />
+ </div>
+
+ <div className="flex items-center justify-between flex-col-reverse lg:flex-row lg:justify-start text-black dark:text-white">
<span>{day3.steps[0].title}</span>
- <Badge className="!bg-transparent h-fit ml-4 text-sm !py-1 !px-4 text-transparent bg-clip-text bg-gradient-to-r from-[#99bbab] to-[#396f55] border-[#598973] dark:from-white dark:to-[#1a7a4ca1] dark:border-[#598973]">
- New
+ <Badge className="!bg-transparent h-fit ml-4 text-sm !py-1 !px-4 text-transparent bg-clip-text bg-gradient-to-r from-[#99bbab] to-[#396f55] border-[#598973] dark:from-white dark:to-[#1a7a4ca1] dark:border-[#DFFFF1]">
+ Updated
</Badge>
</div>
<SectionButtons docs={day3.steps[0].docs} blog={day3.steps[0].blog} />
</div>
- <div
- className={`flex-1 flex flex-col items-center justify-between basis-1/2 lg:basis-1/3 border rounded-xl h-full bg-no-repeat p-14 text-2xl bg-[url('/images/launchweek/encryption-bg-light.png')] dark:bg-[url('/images/launchweek/encryption-bg.svg')] bg-contain bg-[center_center] shadow-[inset_0px_130px_50px_-52p_rgb(10,31,30)]`}
- >
- {/* inset 0px 130px 50px -52px #121f1e; */}
- <div className="flex flex-col items-center gap-2 min-w-[300px]">
- <Badge className="!bg-transparent h-fit text-sm !py-1 !px-4 text-transparent bg-clip-text bg-gradient-to-r from-[#99bbab] to-[#396f55] border-[#598973] dark:from-white dark:to-[#1a7a4ca1] dark:border-[#598973]">
- New
- </Badge>
- <span className="text-center">{day3.steps[1].title}</span>
- </div>
- <SectionButtons docs={day3.steps[1].docs} blog={day3.steps[1].blog} />
- </div>
</div>
)}
</Accordion.Item>
@@ -407,17 +450,31 @@ export default function launchweek() {
id={day4.d.toString()}
>
{day4.steps.length > 0 && (
- <div className="h-[400px] flex gap-5">
+ <div className="h-[400px] flex flex-col gap-5 lg:flex-row group/day4 relative overflow-hidden">
+ <div
+ className="absolute opacity-60 group-hover/day4:opacity-100 w-full h-full z-10 transition-all duration-500 rounded-b-xl"
+ style={{
+ background: `radial-gradient(650px 150px at 50% 100%, ${
+ isDarkMode ? '#103633' : '#b8e8e7'
+ }, transparent)`,
+ }}
+ ></div>
<div
- className={`flex flex-col justify-between flex-1 border rounded-xl h-full bg-no-repeat p-14 text-2xl bg-[url('/images/launchweek/mfa-bg-light.png')] dark:bg-[url('/images/launchweek/mfa-bg.png')] bg-[bottom_right_30%] bg-contain`}
+ className={`flex flex-col justify-between flex-1 basis-1/2 lg:basis-2/3 border rounded-xl h-full p-14 text-2xl bg-no-repeat bg-cover sm:bg-contain bg-[url('/images/launchweek/wrappers-bg-light.png')] dark:bg-[url('/images/launchweek/wrappers-bg.png')] bg-[left_90%_bottom] sm:bg-[center_bottom] !px-3 sm:!px-14`}
>
<div className="flex items-center">
<span>{day4.steps[0].title}</span>
- <Badge className="!bg-transparent h-fit ml-4 text-sm !py-1 !px-4 text-transparent bg-clip-text bg-gradient-to-r from-white to-[#1a7a4ca1] border-[#598973]">
- Updated
+ <Badge className="!bg-transparent h-fit ml-4 text-sm !py-1 !px-4 text-transparent bg-clip-text bg-gradient-to-r from-[#99bbab] to-[#396f55] border-[#4d898c] dark:from-white dark:to-[#1a7a4ca1] dark:border-[#DFFFF1]">
+ New
</Badge>
</div>
- <SectionButtons docs={day4.steps[0].docs} blog={day4.steps[0].blog} />
+ <SectionButtons
+ docs={day4.steps[0].docs}
+ blog={day4.steps[0].blog}
+ video={
+ 'https://www.youtube.com/watch?v=Q1Amk6iDlF8&ab_channel=Supabase'
+ }
+ />
</div>
</div>
)}
@@ -440,7 +497,7 @@ export default function launchweek() {
{day5.steps.length > 0 && (
<div className="h-[800px] lg:h-[400px] flex flex-col gap-5 lg:flex-row">
<div
- className={`flex flex-col justify-between flex-1 basis-1/2 lg:basis-2/3 border rounded-xl h-full bg-no-repeat p-14 text-2xl bg-[url('/images/launchweek/wrappers-bg-light.png')] dark:bg-[url('/images/launchweek/wrappers-bg.png')] bg-contain bg-[right]`}
+ className={`flex flex-col justify-between flex-1 basis-1/2 lg:basis-2/3 border rounded-xl h-full bg-no-repeat p-14 text-2xl bg-[url('/images/launchweek/vault-bg-light.png')] dark:bg-[url('/images/launchweek/vault-bg.png')] bg-contain bg-[right]`}
>
<div className="flex items-center">
<span>{day5.steps[0].title}</span>
diff --git a/apps/www/public/images/blog/lw6-auth/enrollment_flow.png b/apps/www/public/images/blog/lw6-auth/enrollment_flow.png
new file mode 100644
index 00000000000..b141080c9dd
Binary files /dev/null and b/apps/www/public/images/blog/lw6-auth/enrollment_flow.png differ
diff --git a/apps/www/public/images/blog/lw6-auth/mfa-banner.jpg b/apps/www/public/images/blog/lw6-auth/mfa-banner.jpg
new file mode 100644
index 00000000000..c753b910899
Binary files /dev/null and b/apps/www/public/images/blog/lw6-auth/mfa-banner.jpg differ
diff --git a/apps/www/public/images/blog/lw6-auth/mfa-flow.png b/apps/www/public/images/blog/lw6-auth/mfa-flow.png
new file mode 100644
index 00000000000..f91487abfd8
Binary files /dev/null and b/apps/www/public/images/blog/lw6-auth/mfa-flow.png differ
diff --git a/apps/www/public/images/blog/lw6-auth/verify_flow.png b/apps/www/public/images/blog/lw6-auth/verify_flow.png
new file mode 100644
index 00000000000..2c59997047c
Binary files /dev/null and b/apps/www/public/images/blog/lw6-auth/verify_flow.png differ
diff --git a/apps/www/public/images/launchweek/docs.svg b/apps/www/public/images/launchweek/docs.svg
index 89218192301..d682b98a8a8 100644
--- a/apps/www/public/images/launchweek/docs.svg
+++ b/apps/www/public/images/launchweek/docs.svg
@@ -1,7 +1,7 @@
-<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M7.5 18.4995H17.4996V10.1008L13.8816 6.5H7.5V18.4995Z" stroke="#4CC38A" stroke-width="0.999957" stroke-miterlimit="10" stroke-linejoin="bevel"/>
-<path d="M13.8805 6.49966L17.4648 10.084L13.8805 10.084L13.8805 6.49966Z" fill="#1C1C1C" stroke="#4CC38A" stroke-width="0.999957" stroke-miterlimit="10" stroke-linejoin="bevel"/>
-<path d="M9.46094 11.9863H15.4609" stroke="#4CC38A"/>
-<path d="M9.46094 13.9863H15.4609" stroke="#4CC38A"/>
-<path d="M9.46094 15.9863H13.4609" stroke="#4CC38A"/>
+<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M3 14.1342H12.9996V5.73556L9.38156 2.13477H3V14.1342Z" stroke="#4CC38A" stroke-width="0.999957" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M9.38052 2.13443L12.9648 5.71875L9.38052 5.71875L9.38052 2.13443Z" stroke="#4CC38A" stroke-width="0.999957" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M4.96094 7.62109H10.9609" stroke="#4CC38A"/>
+<path d="M4.96094 9.62109H10.9609" stroke="#4CC38A"/>
+<path d="M4.96094 11.6211H8.96094" stroke="#4CC38A"/>
</svg>
diff --git a/apps/www/public/images/launchweek/icons-docs.svg b/apps/www/public/images/launchweek/icons-docs.svg
index 274b20b8e4f..d682b98a8a8 100644
--- a/apps/www/public/images/launchweek/icons-docs.svg
+++ b/apps/www/public/images/launchweek/icons-docs.svg
@@ -1,7 +1,7 @@
-<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M3 13.9995H12.9996V5.60079L9.38156 2H3V13.9995Z" stroke="#4CC38A" stroke-width="0.999957" stroke-miterlimit="10" stroke-linejoin="bevel"/>
-<path d="M9.38052 1.99966L12.9648 5.58398L9.38052 5.58398L9.38052 1.99966Z" fill="#1C1C1C" stroke="#4CC38A" stroke-width="0.999957" stroke-miterlimit="10" stroke-linejoin="bevel"/>
-<path d="M4.96094 7.48633H10.9609" stroke="#4CC38A"/>
-<path d="M4.96094 9.48633H10.9609" stroke="#4CC38A"/>
-<path d="M4.96094 11.4863H8.96094" stroke="#4CC38A"/>
+<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M3 14.1342H12.9996V5.73556L9.38156 2.13477H3V14.1342Z" stroke="#4CC38A" stroke-width="0.999957" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M9.38052 2.13443L12.9648 5.71875L9.38052 5.71875L9.38052 2.13443Z" stroke="#4CC38A" stroke-width="0.999957" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M4.96094 7.62109H10.9609" stroke="#4CC38A"/>
+<path d="M4.96094 9.62109H10.9609" stroke="#4CC38A"/>
+<path d="M4.96094 11.6211H8.96094" stroke="#4CC38A"/>
</svg>
diff --git a/apps/www/public/images/launchweek/icons-docs_.svg b/apps/www/public/images/launchweek/icons-docs_.svg
new file mode 100644
index 00000000000..274b20b8e4f
--- /dev/null
+++ b/apps/www/public/images/launchweek/icons-docs_.svg
@@ -0,0 +1,7 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M3 13.9995H12.9996V5.60079L9.38156 2H3V13.9995Z" stroke="#4CC38A" stroke-width="0.999957" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M9.38052 1.99966L12.9648 5.58398L9.38052 5.58398L9.38052 1.99966Z" fill="#1C1C1C" stroke="#4CC38A" stroke-width="0.999957" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M4.96094 7.48633H10.9609" stroke="#4CC38A"/>
+<path d="M4.96094 9.48633H10.9609" stroke="#4CC38A"/>
+<path d="M4.96094 11.4863H8.96094" stroke="#4CC38A"/>
+</svg>
diff --git a/apps/www/public/images/launchweek/mfa-dark-hover.png b/apps/www/public/images/launchweek/mfa-dark-hover.png
new file mode 100644
index 00000000000..fb413cfe7bd
Binary files /dev/null and b/apps/www/public/images/launchweek/mfa-dark-hover.png differ
diff --git a/apps/www/public/images/launchweek/mfa-dark.png b/apps/www/public/images/launchweek/mfa-dark.png
new file mode 100644
index 00000000000..b5bb692bc09
Binary files /dev/null and b/apps/www/public/images/launchweek/mfa-dark.png differ
diff --git a/apps/www/public/images/launchweek/mfa-light-hover.png b/apps/www/public/images/launchweek/mfa-light-hover.png
new file mode 100644
index 00000000000..7abd2a8c38b
Binary files /dev/null and b/apps/www/public/images/launchweek/mfa-light-hover.png differ
diff --git a/apps/www/public/images/launchweek/mfa-light.png b/apps/www/public/images/launchweek/mfa-light.png
new file mode 100644
index 00000000000..d4038672ce3
Binary files /dev/null and b/apps/www/public/images/launchweek/mfa-light.png differ
diff --git a/apps/www/public/images/product/auth/nuxt-icon.svg b/apps/www/public/images/product/auth/nuxt-icon.svg
index 1cc014898bb..1330c8336aa 100644
--- a/apps/www/public/images/product/auth/nuxt-icon.svg
+++ b/apps/www/public/images/product/auth/nuxt-icon.svg
@@ -1 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 298"><g fill="none" fill-rule="nonzero"><path fill="#00C58E" d="M227.92099 82.07407l-13.6889 23.7037-46.8148-81.08641L23.7037 273.58025h97.3037c0 13.0912 10.61252 23.7037 23.70371 23.7037H23.70371c-8.46771 0-16.29145-4.52017-20.5246-11.85382-4.23315-7.33366-4.23272-16.36849.00114-23.70174L146.89383 12.83951c4.23415-7.33433 12.0596-11.85252 20.5284-11.85252 8.46878 0 16.29423 4.51819 20.52839 11.85252l39.97037 69.23456z"/><path fill="#2F495E" d="M331.6642 261.7284l-90.05432-155.95062-13.6889-23.7037-13.68888 23.7037-90.04445 155.95061c-4.23385 7.33325-4.23428 16.36808-.00113 23.70174 4.23314 7.33365 12.05689 11.85382 20.5246 11.85382h166.4c8.46946 0 16.29644-4.51525 20.532-11.84955 4.23555-7.3343 4.23606-16.37123.00132-23.706h.01976zM144.7111 273.58024L227.921 129.48148l83.19012 144.09877h-166.4z"/><path fill="#108775" d="M396.04938 285.4321c-4.23344 7.33254-12.05656 11.85185-20.52345 11.85185H311.1111c13.0912 0 23.7037-10.6125 23.7037-23.7037h40.66173L260.09877 73.74815l-18.4889 32.02963-13.68888-23.7037L239.5753 61.8963c4.23416-7.33433 12.0596-11.85252 20.5284-11.85252 8.46879 0 16.29423 4.51819 20.52839 11.85252l115.41728 199.8321c4.23426 7.33395 4.23426 16.36975 0 23.7037z"/></g></svg>
\ No newline at end of file
+<svg width="61" height="40" viewBox="0 0 61 40" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M33.9971 39.539H56.5247C57.2402 39.539 57.9432 39.3564 58.5628 39.0093C59.1825 38.6623 59.697 38.1631 60.0546 37.5619C60.4122 36.9608 60.6003 36.2789 60.6 35.5849C60.5997 34.8908 60.411 34.2091 60.0528 33.6083L44.9239 8.1904C44.5663 7.5894 44.0519 7.09032 43.4324 6.74332C42.8129 6.39632 42.1101 6.21363 41.3947 6.21363C40.6793 6.21363 39.9766 6.39632 39.357 6.74332C38.7375 7.09032 38.2231 7.5894 37.8655 8.1904L33.9971 14.6939L26.4338 1.97648C26.0759 1.37553 25.5613 0.876518 24.9416 0.52958C24.3219 0.182643 23.619 0 22.9035 0C22.188 0 21.4851 0.182643 20.8654 0.52958C20.2457 0.876518 19.7311 1.37553 19.3732 1.97648L0.547184 33.6083C0.189033 34.2091 0.00031171 34.8908 3.85805e-07 35.5849C-0.000310938 36.2789 0.187799 36.9608 0.54541 37.5619C0.903021 38.1631 1.41752 38.6623 2.03717 39.0093C2.65681 39.3564 3.35975 39.539 4.07528 39.539H18.2162C23.819 39.539 27.9509 37.1518 30.794 32.4945L37.6965 20.8993L41.3936 14.6939L52.4895 33.3335H37.6965L33.9971 39.539ZM17.9857 33.3272L8.11711 33.325L22.9101 8.47362L30.2912 20.8993L25.3492 29.2044C23.4611 32.2262 21.3162 33.3272 17.9857 33.3272Z" fill="#00DC82"/>
+</svg>