Now Reading
Senselessness — The Inflight Leisure Problem

Senselessness — The Inflight Leisure Problem

2023-03-20 17:55:40

On a latest flight from NYC -> SFO, I made a decision to attempt to re-create as a lot of the Delta in-flight leisure system as I may.

Strive the ultimate outcome right here:

And right here’s the code:


Why do one thing like this?

Quickly translating UIs into code is a core ability for UX engineers and design technologists. As I’ve moved extra into administration I’ve been doing much less and fewer coding and needed to check my abilities. Clearly this isn’t an ideal facsimile of real-world growth, nevertheless it was an attention-grabbing problem and a enjoyable option to spend the flight.


  • Began with a clean Vite venture initialized with the react-ts template.
  • No pre-work other than putting in off-the-shelf npm libraries (recoil, lodash, mui icons, and so forth) and downloading any information units you’ll want (e.g. a bunch of film posters).
  • No pre-built element libraries.
  • No web entry apart from the in-flight wifi portal and the airline’s web site (helpful for grabbing logos). No StackOverflow and no new NPM libraries.
  • Don’t fear about manufacturing high quality, simply re-create as a lot of the feel and appear of the UI as rapidly as attainable. No accessibility, responsive design, localization, and so forth; you simply need one thing you may run by means of a consumer take a look at.
  • Venture-specific code can solely be written from after they say you need to use your laptop computer (as soon as the aircraft has reached 10k toes) to closing method after they make you set laptops away.

What did I study?

Getting into, I assumed that not accessing StackOverflow was going to be the most important problem. However that truly turned out to be okay! Except for forgetting the syntax for CSS linear gradient backgrounds and ellipsize a number of strains of textual content I used to be capable of bear in mind most of my syntax and utilization (and VSCode helped me fill within the gaps).

The most important drawback turned out to be not accessing new NPM libraries. Slick draggable scrolling is a key a part of many screens in Delta’s in-flight leisure system (full with momentum-based flicks, over-scroll, page-snapping, and so forth). As a result of I didn’t have entry to a element library and hadn’t thought to pre-install a great drag scroll library, I ended up having to construct my very own. It went okay however took a very long time and isn’t almost pretty much as good as many off-the-shelf choices. Subsequent time I do this I’ll make sure you come better-prepared.

One other problem was the sizes, spacings and colours. Normally after I construct a prototype I’ll embody a hide-able screenshot of the comp to make it straightforward to realize pixel-perfection. With out the web I couldn’t match the fonts and never accessing the uncooked visuals made it laborious to match instantly. Generally I ended up attempting to carry my laptop computer as much as the display screen which received me some humorous seems to be.

One different main takeaway was feeling excellent about my present prototyping toolchain. React, typescript, a vs code extension I wrote to quickly create new React components, recoil, css modules, stylus, and MUI make it actually, very easy and quick to rapidly construct prototypes. They could not all the time be the correct alternative for manufacturing, however dang do they really feel good to make use of.

See Also


This problem was lots of enjoyable and I positively need to do it once more. I made good progress however didn’t get so far as I needed and I’m excited to take what I realized and attempt to do higher subsequent time.

In the event you’re additionally a front-end engineer or work with designers I extremely advocate giving this a strive!

Source Link

What's Your Reaction?
In Love
Not Sure
View Comments (0)

Leave a Reply

Your email address will not be published.

2022 Blinking Robots.
WordPress by Doejo

Scroll To Top