GetStartedHero.tsx 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. import { cn } from 'ui'
  2. const Checkbox = () => (
  3. <div className="w-[10%] h-full flex items-center border-r border-default px-2">
  4. <div className="w-3 h-3 rounded-sm border border-control" />
  5. </div>
  6. )
  7. const Row = ({
  8. className,
  9. col1,
  10. col2,
  11. col3,
  12. }: {
  13. className?: string
  14. col1: string
  15. col2: string
  16. col3: string
  17. }) => (
  18. <div className={cn('h-[30px] flex items-center bg-studio border-b border-default', className)}>
  19. <Checkbox />
  20. <div className="w-[15%] h-full flex items-center border-r border-default px-2">
  21. <p className="text-xs">{col1}</p>
  22. </div>
  23. <div className="w-[45%] h-full flex items-center border-r border-default px-2">
  24. <p className="text-xs">{col2}</p>
  25. </div>
  26. <div className="w-[30%] h-full flex items-center px-2">
  27. <p className="text-xs">{col3}</p>
  28. </div>
  29. </div>
  30. )
  31. export const GetStartedHero = () => {
  32. return (
  33. <div className="w-full max-w-[500px] h-full pb-10 lg:pb-0 relative pointer-events-none">
  34. <div
  35. className={cn(
  36. 'w-[290px] lg:w-[400px] h-[180px] bg-alternative border border-default',
  37. 'rounded-t px-4 py-3 space-y-1 overflow-hidden'
  38. )}
  39. >
  40. <div className="text-xs font-mono space-x-4 flex items-center">
  41. <span className="text-foreground-light">1</span>
  42. <p className="text-blue-900">
  43. create table <span className="text-foreground">todos {`(`}</span>
  44. </p>
  45. </div>
  46. <div className="text-xs font-mono space-x-8 flex items-center">
  47. <span className="text-foreground-light">2</span>
  48. <p className="text-foreground">
  49. id <span className="text-blue-900">bigint generated by default</span>,
  50. </p>
  51. </div>
  52. <div className="text-xs font-mono space-x-8 flex items-center">
  53. <span className="text-foreground-light">3</span>
  54. <p className="text-foreground">
  55. task <span className="text-blue-900">text</span>,
  56. </p>
  57. </div>
  58. <div className="text-xs font-mono space-x-8 flex items-center">
  59. <span className="text-foreground-light">4</span>
  60. <p className="text-foreground">
  61. status <span className="text-blue-900">status default 'Not Started'</span>,
  62. </p>
  63. </div>
  64. <div className="text-xs font-mono space-x-8 flex items-center">
  65. <span className="text-foreground-light">5</span>
  66. <p className="text-foreground">
  67. user_id <span className="text-blue-900">uuid references auth.users not null</span>,
  68. </p>
  69. </div>
  70. <div className="text-xs font-mono space-x-8 flex items-center">
  71. <span className="text-foreground-light">6</span>
  72. <p className="text-foreground">
  73. inserted_at <span className="text-blue-900">timestamp with time zone</span>,
  74. </p>
  75. </div>
  76. <div className="text-xs font-mono space-x-8 flex items-center">
  77. <span className="text-foreground-light">7</span>
  78. <p className="text-foreground">
  79. updated_at <span className="text-blue-900">timestamp with time zone</span>,
  80. </p>
  81. </div>
  82. <div className="text-xs font-mono space-x-4 flex items-center">
  83. <span className="text-foreground-light">8</span>
  84. <p className="text-blue-900">{`);`}</p>
  85. </div>
  86. </div>
  87. <div
  88. className={cn(
  89. 'w-[260px] lg:w-[320px] h-[160px] lg:h-[220px] bg-surface-100 border border-default',
  90. 'absolute right-0 top-[50px] lg:top-[-40px] rounded-t overflow-y-hidden'
  91. )}
  92. >
  93. <Row col1="id" col2="task" col3="status" className="h-[24px] bg-surface-100" />
  94. <Row col1="1" col2="Create a project" col3="Complete" />
  95. <Row col1="2" col2="Read documentation" col3="Complete" />
  96. <Row col1="3" col2="Build application" col3="In progress" />
  97. <Row col1="4" col2="Connect Briven" col3="In progress" />
  98. <Row col1="5" col2="Deploy project" col3="Not started" />
  99. <Row col1="6" col2="Get users" col3="Not started" />
  100. <Row col1="7" col2="Upgrade to Pro" col3="Not started" />
  101. </div>
  102. </div>
  103. )
  104. }