Building a modal with multiple functional requirements
Requirements
UX and Product presented to me this concept of a modal, to launch at initial login, that would have multiple functionalities:
- Modal to have two main parts; the initial screen and a user-option to slide in screen of “Try Out a Session”, where a brief description of a session is described and a trial run could be initiated via download of the application
- The modal needed to contain three cards for the three applications: Desktop, iOS & Android, and RealWear
- Each card to have an image
- Each card to have Title, benefit pills, bullet list of features and benefits, two with CTAs.
- iOS card to have a slide animation on CTA click, next slide to have QR code and App store buttons for app download
- User could easily dismiss modal if not interested
All of our applications were built in LitHTML which uses the ShadowDOM method. Most styling needed to be encapsulated within the component — excepting where CSS Properties were called.
I used CSS grid to layout the two states: the responsive view and the wide desktop view. In the responsive view the cards were to take on a stacked landscape orientation, in desktop view, horizontal portrait alingment. The iOS card also needed to adjust its sliding orientation from portrait to landscape.
Once the JavaScript was in place to enable the slider, the next part to be done were the cards with respecitve content and they needed to be responsive per the Figma comps. The completion of this part in the 1st video below:
Next the entire content needed to slide left to reveal the “Try Out a Session” section, revealing an image, marketing copy, app download QR Code and app store buttons, and also be responsive.
Finally the iOS and Android card had to individually slide left to reveal an image, marketing copy, app download QR Code and app store buttons, and also be responsive.
Success! and a highly functional modal.