Files
supabase/apps/studio/components/layouts/Tabs/MigrateToPostgres.tsx
Ivan Vasilov 56de26fe22 chore: Migrate the monorepo to use Tailwind v4 (#45318)
This PR migrates the whole monorepo to use Tailwind v4:
- Removed `@tailwindcss/container-queries` plugin since it's included by
default in v4,
- Bump all instances of Tailwind to v4. Made minimal changes to the
shared config to remove non-supported features (`alpha` mentions),
- Migrate all apps to be compatible with v4 configs,
- Fix the `typography.css` import in 3 apps,
- Add missing rules which were included by default in v3,
- Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot
of classes
- Rename all misnamed classes according to
https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all
apps.

---------

Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2026-04-30 10:53:24 +00:00

47 lines
1.7 KiB
TypeScript

import { motion } from 'framer-motion'
import { BaggageClaim, BookOpen } from 'lucide-react'
import { Button } from 'ui'
// not in use yet
export const MigrateToPostgres = () => (
<motion.div
className="w-full rounded-lg overflow-hidden relative border border-muted"
variants={{
hidden: { opacity: 0, scale: 0.96, y: 15 },
show: {
opacity: 1,
scale: 1,
y: 0,
transition: {
type: 'spring',
stiffness: 600,
damping: 50,
staggerChildren: 0.08,
delayChildren: 0.03,
},
},
}}
>
<div className="absolute inset-0 bg-linear-to-r from-background-surface-200 via-background-surface-200 to-transparent"></div>
<div className="relative z-10 px-5 py-4 h-full flex gap-5 items-center justify-between">
<div className="flex flex-col gap-3">
<div className="flex gap-4">
<div className="inline-flex items-center justify-center w-7 h-7 rounded-lg bg-surface-300 border">
<BaggageClaim size={14} className="text-foreground-light" strokeWidth={1.5} />
</div>
<div className="flex flex-col gap-1">
<h2 className="text-base text-foreground">Migrate your Database to Postgres</h2>
<p className="text-xs text-foreground-light max-w-md">
Already have a database? Migrate any database to Supabase to access backups, RESTful
auto APIs, Authentication and more.
</p>
</div>
</div>
</div>
<Button type="default" className="rounded-full" iconRight={<BookOpen />}>
Migrate to Postgres
</Button>
</div>
</motion.div>
)