10Pines / smart-open-space

Organizá tu Open Space!
https://smartopenspace.10pines.com/
GNU General Public License v3.0
5 stars 1 forks source link

New Component - Generic Card #313

Closed nicovillamonte closed 2 weeks ago

nicovillamonte commented 2 weeks ago

Generic cards - Issue #286

Card

image

Time Card

image

Code

<Card title="Título de la Card" color="card-blue" showVotes />

image

<Card
  title="Título de la Card"
  description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
/>

image

<Card
  title="Título de la Card"
  description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
  color="card-green"
  buttons={[
    {
      icon: HaltIcon,
      onClick: () => console.log('Clicked halt in card'),
      secondary: true,
      blackAndWhite: true,
    },
    {
      icon: EditIcon,
      onClick: () => console.log('Clicked edit in card'),
      blackAndWhite: true,
    },
    {
      icon: AddIcon,
      onClick: () => console.log('Clicked add in card'),
      blackAndWhite: true,
    },
  ]}
/>

image

<TimeCard
  time={{
    start: new Date(new Date().setHours(18, 0, 0, 0)),
    end: new Date(new Date().setHours(21, 0, 0, 0)),
  }}
  title="Título de la Card"
  showVotes
/>

image

<TimeCard
  time={{
    start: new Date(new Date().setHours(10, 0, 0, 0)),
    end: new Date(new Date().setHours(16, 0, 0, 0)),
  }}
  title="Título de la Card"
  description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
  footerDescription={{
    items: [
      {
        icon: <UserIcon />,
        text: '25 invitados',
      },
      {
        icon: <ChatIcon />,
        text: '21 charlas postuladas',
      },
    ],
  }}
/>

image