UCLALibrary / ucla-library-website-components

This is a library of Vue components that will be used in UCLA Library Nuxt websites.
Other
4 stars 1 forks source link

Component Request - FTVA Event Detail Block #519

Open tinuola opened 2 weeks ago

tinuola commented 2 weeks ago

Component Description

This component is used on the Event Page to display event details: event date, time, location and an optional Add to Calendar button. (Note: Calendar button/dropdown still in progress.)

Current design without the 'Add to Calendar' button:

event-details_no-button

Design

See design implementation on Event Page comps:

Mobile/responsive component is not needed.

FTVA Tokens: https://github.com/UCLALibrary/design-tokens/blob/1221215c002c3e5992c16817047dea61a0432224/scss/_tokens-ftva.scss

Specs: https://www.figma.com/design/EKazRIMP4B15bD16UDbOwR/UCLA-Library-Design-System?node-id=11275-3797&t=FcCl8uy276sAkOOh-0

event-detail-specs

Slots

No slots needed.

Props

props: {
 startDate: {
   type: String,
   default: '',
 },
 time: {
  type: String,
  default: '',
 },
 location: {
  type: Array,
  default: () => [],
 },
}

Developer Tips

List any developer tips here

  1. Breakpoints likely not needed; in the designs, the component doesn't change sizes across screens
  2. Format/parse event date and time

Craft Info

{
  data: {
    entry: {
      id: "2847944",
      typeHandle: "ftvaEvent",
      title: "La Région Centrale 03-08-24",
      startDateWithTime: "2024-03-09T03:30:00+00:00",
      location: [
        {
          id: "195746",
          title: "Billy Wilder Theater",
          url: "https://test-craft.library.ucla.edu/locations/billy-wilder-theater",
          uri: "locations/billy-wilder-theater"
        },
        {
          id: "770077",
          title: "Music Library",
          url: "https://test-craft.library.ucla.edu/locations/music-library",
          uri: "locations/music-library"
        }
      ]
    }
  }
}

Events

None.

Child components

List out any components that are used by this new component.

  1. icon-with-link component
  2. add-to-calendar button used to save an event to a user's account. (Note: Not the finalized name of the component.)

Screenshots

event-detail-on-desktop

event-detail-on-mobile