Skip to content

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

fix: import swiper styles to page.

Jonathan Summers-Muire2c48b5c54a5
diff --git a/apps/www/pages/realtime/Realtime.tsx b/apps/www/pages/realtime/Realtime.tsx
index 15a0075a174..2160c490c7a 100644
--- a/apps/www/pages/realtime/Realtime.tsx
+++ b/apps/www/pages/realtime/Realtime.tsx
@@ -19,6 +19,9 @@ import APISection from '~/components/Sections/APISection'
import GithubExamples from '~/components/Sections/GithubExamples'
import ProductHeader from '~/components/Sections/ProductHeader'
+// Import Swiper styles
+import 'swiper/swiper.min.css'
+
const Cursor = ({ className = '', color = 'none' }) => {
return (
<svg
@@ -266,22 +269,24 @@ function RealtimePage() {
<div className="grid gap-12 md:grid-cols-2 lg:grid-cols-4">
{exampleApps.map((example) => {
return (
- <div className="flex flex-col gap-4">
- <img
- className="bg-scale-300 hidden rounded-lg dark:block"
- src={`/images/realtime/example-apps/dark/${example.img}`}
- alt={example.title}
- />
- <img
- className="bg-scale-300 block rounded-lg dark:hidden"
- src={`/images/realtime/example-apps/light/${example.img}`}
- alt={example.title}
- />
- <div className="prose">
- <h4 className="">{example.title}</h4>
- <p className="text-sm">{example.description}</p>
+ <>
+ <div className="flex flex-col gap-4">
+ <img
+ className="bg-scale-300 hidden rounded-lg dark:block"
+ src={`/images/realtime/example-apps/dark/${example.img}`}
+ alt={example.title}
+ />
+ <img
+ className="bg-scale-300 block rounded-lg dark:hidden"
+ src={`/images/realtime/example-apps/light/${example.img}`}
+ alt={example.title}
+ />
+ <div className="prose">
+ <h4 className="">{example.title}</h4>
+ <p className="text-sm">{example.description}</p>
+ </div>
</div>
- </div>
+ </>
)
})}
</div>