UCLALibrary / ucla-library-website-components

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

Component Request - FTVA Header Primary, Header Sticky, SiteBrand #570

Open tinuola opened 3 months ago

tinuola commented 3 months ago

Component Description

This component request is for FTVA variants (usetheme: ftva) to be created for existing components; the variants will be assembled to build the FTVA Header section.

Existing components to be updated:

Design

Default display:

ftva-header-primary

Search component display:

ftva-header-search-display

On hover and expanded:

ftva-header-hover-expanded

Responsiveness

Pending feedback and Updated preview(s) from UX:

https://www.figma.com/design/EKazRIMP4B15bD16UDbOwR/UCLA-Library-Design-System?m=auto&node-id=14773-5400&t=0J9aDhKfi3VDDFdf-1

ftva-nav-mobile-collapsed



ftva-nav-mobile-pressed



ftva-nav-mobile-expanded

Slots

No slots

Props

No new props?

Developer Tips

List any developer tips here

  1. See annotations for specs
  2. pinia state name sTop which can be used to enable the header sticky in the default layout, when the user scrolls past brand bar which is approximately 40px: { "has-scrolled-past-brand": useStore.state.sTop >= 40 },
  3. Logic needed on mobile view to render search field alone when the search icon is pressed, and to render both search field and menu items when the hamburger is pressed

Events

  1. Header items on click reveal the expanded menu
  2. Search icon on click reveals the search component
  3. On mobile, the search icon reveals the search field; the hamburger icon reveals the search field and the menu items in the overlay

Child components

Screenshots

ftva-header-desktop

ftva-header-mobile

farosFreed commented 2 months ago

Approved, looks great