You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sessions.tsx 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { Button } from '@/components/ui/button';
  2. import { Card, CardContent } from '@/components/ui/card';
  3. import { EllipsisVertical, Plus } from 'lucide-react';
  4. function SessionCard() {
  5. return (
  6. <Card className="bg-colors-background-inverse-weak border-colors-outline-neutral-standard">
  7. <CardContent className="px-3 py-2 flex justify-between items-center">
  8. xxx
  9. <Button variant={'icon'} size={'icon'}>
  10. <EllipsisVertical />
  11. </Button>
  12. </CardContent>
  13. </Card>
  14. );
  15. }
  16. export function Sessions() {
  17. const sessionList = new Array(10).fill(1);
  18. return (
  19. <section className="p-6 w-[400px] max-w-[20%]">
  20. <div className="flex justify-between items-center mb-4">
  21. <span className="text-colors-text-neutral-strong text-2xl font-bold">
  22. Sessions
  23. </span>
  24. <Button variant={'icon'} size={'icon'}>
  25. <Plus></Plus>
  26. </Button>
  27. </div>
  28. <div className="space-y-4">
  29. {sessionList.map((x) => (
  30. <SessionCard key={x.id}></SessionCard>
  31. ))}
  32. </div>
  33. </section>
  34. );
  35. }