MigrateToPostgres.tsx 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { motion } from 'framer-motion'
  2. import { BaggageClaim, BookOpen } from 'lucide-react'
  3. import { Button } from 'ui'
  4. // not in use yet
  5. export const MigrateToPostgres = () => (
  6. <motion.div
  7. className="w-full rounded-lg overflow-hidden relative border border-muted"
  8. variants={{
  9. hidden: { opacity: 0, scale: 0.96, y: 15 },
  10. show: {
  11. opacity: 1,
  12. scale: 1,
  13. y: 0,
  14. transition: {
  15. type: 'spring',
  16. stiffness: 600,
  17. damping: 50,
  18. staggerChildren: 0.08,
  19. delayChildren: 0.03,
  20. },
  21. },
  22. }}
  23. >
  24. <div className="absolute inset-0 bg-linear-to-r from-background-surface-200 via-background-surface-200 to-transparent"></div>
  25. <div className="relative z-10 px-5 py-4 h-full flex gap-5 items-center justify-between">
  26. <div className="flex flex-col gap-3">
  27. <div className="flex gap-4">
  28. <div className="inline-flex items-center justify-center w-7 h-7 rounded-lg bg-surface-300 border">
  29. <BaggageClaim size={14} className="text-foreground-light" strokeWidth={1.5} />
  30. </div>
  31. <div className="flex flex-col gap-1">
  32. <h2 className="text-base text-foreground">Migrate your Database to Postgres</h2>
  33. <p className="text-xs text-foreground-light max-w-md">
  34. Already have a database? Migrate any database to Briven to access backups, RESTful
  35. auto APIs, Authentication and more.
  36. </p>
  37. </div>
  38. </div>
  39. </div>
  40. <Button type="default" className="rounded-full" iconRight={<BookOpen />}>
  41. Migrate to Postgres
  42. </Button>
  43. </div>
  44. </motion.div>
  45. )