Skip to content

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

chore(studio): update auth overview light mode images (#39484)

kemal.earth1e1b7a05b850
diff --git a/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx b/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx
index ab58f60630a..8678bc08b49 100644
--- a/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx
+++ b/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx
@@ -6,17 +6,29 @@ import { Logs } from 'icons'
import { BASE_PATH } from 'lib/constants'
import { useParams } from 'common'
import { useAiAssistantStateSnapshot } from 'state/ai-assistant-state'
+import { useTheme } from 'next-themes'
+import { useEffect, useState } from 'react'
export const OverviewLearnMore = () => {
+ const [isMounted, setIsMounted] = useState(false)
const { ref } = useParams()
const aiSnap = useAiAssistantStateSnapshot()
+ const { theme, resolvedTheme } = useTheme()
+
+ useEffect(() => {
+ setIsMounted(true)
+ }, [])
+
+ const isLight = resolvedTheme === 'light'
const LearnMoreCards = [
{
label: 'Docs',
title: 'Auth docs',
description: 'Read more on Supabase auth, managing users and more.',
- image: `${BASE_PATH}/img/auth-overview/auth-overview-docs.jpg`,
+ image: isLight
+ ? `${BASE_PATH}/img/auth-overview/auth-overview-docs-light.jpg`
+ : `${BASE_PATH}/img/auth-overview/auth-overview-docs.jpg`,
actions: [
{
label: 'Docs',
@@ -29,7 +41,9 @@ export const OverviewLearnMore = () => {
label: 'Assistant',
title: 'Explain auth errors',
description: 'Our Assistant can help you debug and fix authentication errors.',
- image: `${BASE_PATH}/img/auth-overview/auth-overview-assistant.jpg`,
+ image: isLight
+ ? `${BASE_PATH}/img/auth-overview/auth-overview-assistant-light.jpg`
+ : `${BASE_PATH}/img/auth-overview/auth-overview-assistant.jpg`,
actions: [
{
label: 'Ask Assistant',
@@ -70,7 +84,9 @@ export const OverviewLearnMore = () => {
label: 'Logs',
title: 'Dive into the logs',
description: 'Auth logs provide a deeper view into your auth requests.',
- image: `${BASE_PATH}/img/auth-overview/auth-overview-logs.jpg`,
+ image: isLight
+ ? `${BASE_PATH}/img/auth-overview/auth-overview-logs-light.jpg`
+ : `${BASE_PATH}/img/auth-overview/auth-overview-logs.jpg`,
actions: [
{
label: 'Go to logs',
@@ -81,6 +97,8 @@ export const OverviewLearnMore = () => {
},
]
+ if (!isMounted) return null
+
return (
<ScaffoldSection isFullWidth>
<ScaffoldSectionTitle className="mb-4">Learn more</ScaffoldSectionTitle>
diff --git a/apps/studio/public/img/auth-overview/auth-overview-assistant-light.jpg b/apps/studio/public/img/auth-overview/auth-overview-assistant-light.jpg
new file mode 100644
index 00000000000..06a79b4b593
Binary files /dev/null and b/apps/studio/public/img/auth-overview/auth-overview-assistant-light.jpg differ
diff --git a/apps/studio/public/img/auth-overview/auth-overview-assistant.jpg b/apps/studio/public/img/auth-overview/auth-overview-assistant.jpg
index 9a17a8c9fb6..4695c58a3e1 100644
Binary files a/apps/studio/public/img/auth-overview/auth-overview-assistant.jpg and b/apps/studio/public/img/auth-overview/auth-overview-assistant.jpg differ
diff --git a/apps/studio/public/img/auth-overview/auth-overview-docs-light.jpg b/apps/studio/public/img/auth-overview/auth-overview-docs-light.jpg
new file mode 100644
index 00000000000..d1fd3561533
Binary files /dev/null and b/apps/studio/public/img/auth-overview/auth-overview-docs-light.jpg differ
diff --git a/apps/studio/public/img/auth-overview/auth-overview-docs.jpg b/apps/studio/public/img/auth-overview/auth-overview-docs.jpg
index 788efba5a1f..c594eea4773 100644
Binary files a/apps/studio/public/img/auth-overview/auth-overview-docs.jpg and b/apps/studio/public/img/auth-overview/auth-overview-docs.jpg differ
diff --git a/apps/studio/public/img/auth-overview/auth-overview-logs-light.jpg b/apps/studio/public/img/auth-overview/auth-overview-logs-light.jpg
new file mode 100644
index 00000000000..d91d70c0777
Binary files /dev/null and b/apps/studio/public/img/auth-overview/auth-overview-logs-light.jpg differ
diff --git a/apps/studio/public/img/auth-overview/auth-overview-logs.jpg b/apps/studio/public/img/auth-overview/auth-overview-logs.jpg
index 3573468e452..a90c9dd1901 100644
Binary files a/apps/studio/public/img/auth-overview/auth-overview-logs.jpg and b/apps/studio/public/img/auth-overview/auth-overview-logs.jpg differ