It's always interesting to see real world applications of new Web functionality, so kudos to the Stripe team for pushing the envelope in an environment where mistakes could surely be expensive. I hadn't realised that CSS Grid Layout was a viable option for production use yet, for example, so TIL. I do wonder whether sometimes the code here is using trendy tools just to be trendy, though. For example, is const getDist…
Connect: behind the front-end experience
41–50 of 63 posts
Re: Connect: behind the front-end experience
#42Their landing pages are just so beautiful, like fine art. I do wonder though the return on investment. The pages must take forever to create. Perhaps Stripe just has that much cash.
Or perhaps, Stripe has front-end engineers that really know what they're doing.
Re: Connect: behind the front-end experience
#43Their landing pages are just so beautiful, like fine art. I do wonder though the return on investment. The pages must take forever to create. Perhaps Stripe just has that much cash.
...or perhaps Stripes just take pride in their work.
Re: Connect: behind the front-end experience
#44* CSS Grid "defines a two-dimensional grid-based layout system, optimized for user interface design."[1]
* Flexbox is "a CSS box model optimized for user interface design."[2]
It looks like CSS Grid is optimized for two-dimensional layouts, whereas Flexbox is oriented around a single axis.
Are there different use cases? Do they solve the same problem in different ways?
Re: Connect: behind the front-end experience
#45How does CSS Grid compare to CSS Flexible Box ("Flexbox") for user interface design? According to W3C: * CSS Grid "defines a two-dimensional grid-based layout system, optimized for user interface design."[1] * Flexbox is "a CSS box model optimized for user interface design."[2] It looks like CSS Grid is optimized for two-dimensional layouts, whereas Flexbox is oriented around a single axis. Are there different use ca…
Grids are also more flexible in where they position things, where Flexbox goes strictly by order and hierarchy in the document.
Re: Connect: behind the front-end experience
#46How does CSS Grid compare to CSS Flexible Box ("Flexbox") for user interface design? According to W3C: * CSS Grid "defines a two-dimensional grid-based layout system, optimized for user interface design."[1] * Flexbox is "a CSS box model optimized for user interface design."[2] It looks like CSS Grid is optimized for two-dimensional layouts, whereas Flexbox is oriented around a single axis. Are there different use ca…
These come up quite a bit. Look at Pinterest, it is all staggered/made of nonuniform cells.
Re: Connect: behind the front-end experience
#47How does CSS Grid compare to CSS Flexible Box ("Flexbox") for user interface design? According to W3C: * CSS Grid "defines a two-dimensional grid-based layout system, optimized for user interface design."[1] * Flexbox is "a CSS box model optimized for user interface design."[2] It looks like CSS Grid is optimized for two-dimensional layouts, whereas Flexbox is oriented around a single axis. Are there different use ca…
I'll give an example of something you can't do with a one-dimensional layout system like Flexbox but can do with Grid Layouts: a staggered grid/one made of nonuniform cells: https://i.stack.imgur.com/QI2ol.png . These come up quite a bit. Look at Pinterest, it is all staggered/made of nonuniform cells.
Re: Connect: behind the front-end experience
#48Earlier quoted context omitted.
I'll give an example of something you can't do with a one-dimensional layout system like Flexbox but can do with Grid Layouts: a staggered grid/one made of nonuniform cells: https://i.stack.imgur.com/QI2ol.png . These come up quite a bit. Look at Pinterest, it is all staggered/made of nonuniform cells.
That’s interesting, I didn’t know about that. Didn’t Pinterest migrate its web front end to using react which uses flexbox for its layout system? If so, how did they do this?
I haven't dug into Pinterest's code but I imagine it's most likely a mix of Flexbox and Multi-column layouts: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Columns....
Edit: See this blog post on how to combine them to achieve the staggered effect: https://medium.com/@_jh3y/how-to-pure-css-masonry-layouts-a8....
Re: Connect: behind the front-end experience
#49Their landing pages are just so beautiful, like fine art. I do wonder though the return on investment. The pages must take forever to create. Perhaps Stripe just has that much cash.
Re: Connect: behind the front-end experience
#50Earlier quoted context omitted.
...or perhaps Stripes just take pride in their work.
Well deserved pride. It should be customary to showcase a frontend project with brilliant landing pages :)