ES6 modules support lands in browsers: is it time to rethink bundling?

Post pobrano z: ES6 modules support lands in browsers: is it time to rethink bundling?

Modules, as in, this kind of syntax right in JavaScript:

import { myCounter, someOtherThing } from 'utilities';

Which we’d normally use Webpack to bundle, but now is supported in Safari Technology Preview, Firefox Nightly (flag), and Edge.

It’s designed to support progressive enhancement, as you can safely link to a bundled version and a non-bundled version without having browsers download both.

Stefan Judis shows:

<!-- in case ES6 modules are supported -->
<script src="app/index.js" type="module"></script>
<!-- in case ES6 modules aren't supported -->
<script src="dist/bundle.js" defer nomodule></script>

Not bundling means simpler build processes, which is great, but forgoing all the other cool stuff a tool like Webpack can do, like „tree shaking”. Also, all those imports are individual HTTP requests, which may not be as big of a deal in HTTP/2, but still isn’t great:

Khan Academy discovered the same thing a while ago when experimenting with HTTP/2. The idea of shipping smaller files is great to guarantee perfect cache hit ratios, but at the end, it’s always a tradeoff and it’s depending on several factors. For a large code base splitting the code into several chunks (a vendor and an app bundle) makes sense, but shipping thousands of tiny files that can’t be compressed properly is not the right approach.

Preprocessing build steps are likely here to stay. Native tech can learn from them, but we might as well leverage what both are good at.

Direct Link to ArticlePermalink


ES6 modules support lands in browsers: is it time to rethink bundling? is a post from CSS-Tricks

What graphic designers can take from contemporary art

Post pobrano z: What graphic designers can take from contemporary art
first image of the post

A graphic artist who is constantly looking for new sources of inspiration can find it in the most diverse places, from a piece of graffiti glimpsed from a train to an artist’s signature in the corner of a picture.

The world of contemporary art provides a rich variety of great ideas for reasons that are implicit in its name. It is always offering something new, inspirational and innovative. As such, contemporary art can serve as an important influence for graphic designers in the following five ways:

  • It challenges conventional thinking.
  • It offers new approaches to creative design.
  • It provides unique sources of inspiration.
  • It allows for a blending of cultural concepts.
  • It helps graphic designers embrace the latest art trends.

Where to look

There is no shortage of contemporary art galleries in every major city where you can seek inspiration. However, if you wish to find something a little out of the ordinary and truly cutting edge, then it is always a good idea to venture a bit off the beaten track.

For example, no visitor to Zurich should miss Galerie Gmurzynska on Paradeplatz. Originally established in 1960s Cologne, the gallery has a reputation for consistently featuring art that is rather unusual. As a case in point, while it loosely specializes in Russian avant-garde exhibits, it is currently hosting an exhibition on American icons.

This is just one example of the hidden treasures that you can find throughout Europe if you look beyond the usual tourist trails and well-known galleries such as the Tate Modern.

Drawing inspiration

If you are a graphic designer who is new to contemporary art, then you may have some doubts as to what you can take out of it. You might be reluctant to admit it, but you would not be the first to say that you don’t “get” a piece of art. Just keep in mind that every piece of art is not designed to appeal to everyone in the world.

Even if a piece of art does not strike a chord with you, there is much to be learned from considering what inspired the artist to create it and what it says to other people who view it. The range and diversity of what is loosely labeled as contemporary art provides a perfect opportunity to examine it from different viewpoints and perspectives.

The most common criticism of modern art is that it “does not look like anything,” but it is not quite that simple. What people actually mean is that it does not look like anything else, because unlike a portrait or a landscape, it is not attempting to recreate something that already exists. Put another way, is it more artistic to paint a representation of a church or create something entirely new?

The idea is that contemporary art challenges conventional thinking and helps you approach the entire sphere of graphic design from a new angle.

Give it a try

If preconceived notions about what you do and do not appreciate have so far prevented you from entering a contemporary art gallery, then take the plunge and give it a try. It will broaden your perspectives and inspire you to create better designs. And you never know — you might just like it too!

Between the Lines

Post pobrano z: Between the Lines

Media queries are great for changing values in sudden snaps at different screen sizes. But, combining the power of calc() and viewport units like vw and vh , we can get an awful lot of fluidity across our layouts. For this we’ll use a technique called linear interpolation.

Linear interpolation is a formula used to find a value between two points on a line. In our case those two points are CSS values, like font-sizes, margins or widths, that we want to interpolate between over a set of viewport widths.

The reason we might want to interpolate between values over a set of viewport widths is to avoid having to create multiple breakpoints to control the flow of our content when the viewport changes. Instead, we let the user’s browser calculate, according to our instructions, what values it gets. Let me explain.

The following snippet is a Sass function based on linear interpolation that we, at Aranja, have been calling between.

/**
 * Computes a CSS calc function that betweens a value from
 * A to B over viewport-width A to viewport-width B.
 * Requires a media query to cap the value at B.
 */

@function between($to, $from, $toWidth, $fromWidth) {
  $slope: ($to - $from) / ($toWidth - $fromWidth);
  $base: $from - $slope * $fromWidth;

  @return calc(#{$base} + #{100vw * $slope});
}

The function is used like so:

$small: 400px; 
$large: 1000px;

.Container {
  /* The base (smallest) value. */
  padding: 20px;

  /* In $small it should be 20px and in $large it should be 100px,  */
  /* In viewports between that its padding should be calculated */
  @media (min-width: $small) {
    padding: between(20px, 100px, $small, $large);
  }

/* In $large we cap the value at 100px */
  @media (min-width: $large) {
    padding: 100px;
  }
}

The code example above shows how we can between a container’s padding from being 20px in “mobile”-size to being 100px in “desktop”-size. Any size between that would get a calculated amount of padding ranging between 20 and 100 pixels. To prevent the padding from exceeding the maximum value we cap it with a breakpoint.

Try resizing the following demo to see the example in action:

See the Pen

The between function excels in solving spacing problems. Problems that previously we would have solved by hand using different media queries.

Example layout

The talented Carly Sylvester lent me the following wireframe she designed for a volunteer firefighter website so I get to demonstrate this technique on a real-world layout.

The design document consists of a desktop, tablet and mobile versions of the website, at 1440px, 720px and 324px respectively.
In reality, the lines between these different devices are not so clear-cut, so we’ll use the given values as target points and interpolate between them using our function.

Notice how the layout of the desktop and tablet versions are similar except for the use of white-space and font-sizes–which we’ll be able to interpolate between smoothly. When we get to our smallest target point we snap the layout into a classic full-width mobile layout.

See the Pen

For comparison, let’s see the implementation done the usual way, where the 3 main breakpoints are used to snap the layout their new values.

See the Pen

Videos of Demos

Resizing layout with between
Resizing layout without between

Try browsing the demos in different screen sizes and the benefits of our function should be clear. To make the „regular” version of the website better we’d need to add more breakpoints in addition to the original three from the design document, resulting in more jumps.

Combined with the power of rem

A powerful technique we can do with the function is to between the root font-size and base our styles on rems:

See the Pen

The rem unit refers to the root font-size (the font size set on the :root or html element) to determine its value and the root font-size refers to the viewport width to determine its value. We set the root font-size to be 10px at the smallest and 18px at the largest and the result is a smooth transition between the two. The smallest the card in the demo ever gets is 245px, at our $small breakpoint, and it gradually grows until it reaches its peak, 440px, at our $large breakpoint.

Closing

I am convinced that by utilizing this technique we can make the web a better experience for users browsing on devices that don’t fit into the generalization of „mobile” or „tablet” sizes. For me, at least, it also makes the development process more enjoyable as there are fewer layout-related bugs on my table.

Regarding browser support–the fact that we only need calc() and vw for the technique to work puts it at around 97% in USA and Europe, and around 84% globally.

In the demos above, for example, unsupported browsers (Which are mainly Opera Mini and UC Browser) will either use our lowest (base) values or our highest (capped) values, depending on the viewport width.


Between the Lines is a post from CSS-Tricks

Design deals for the week

Post pobrano z: Design deals for the week
first image of the post

Every week, we’ll give you an overview of the best deals for designers, make sure you don’t miss any by subscribing to our deals feed. You can also follow the recently launched website Type Deals if you are looking for free fonts or font deals.

Mato Sans font family

This large font family features 18 fonts, each in 2 unique styles, as well as more than 2,000 glyphs per font! Toss in plenty of OpenType features and extended language sets for Latin and Cyrillic characters.

$15 instead of $290 – Get it now!

Lifetime Access to DesignBold’s Library of 6,000+ Templates

DesignBold can help you create beautiful designs in just a few short minutes! Whip up graphics for any social media account, blog posts, banners, advertisements, invitations, you name it. Fully customizable, this Mighty Deal gets you lifetime access to DesignBold’s extensive library of more than 6,000 templates.

$37 instead of $1140 – Get it now!

Fnord Type Family of 23 Unique Fonts

The Fnord Type Family is a contemporary humanist serif typeface containing 23 unique fonts! That’s 4 styles in 5 weights, plus an additional 3 display styles! With more than 650 glyphs per font, a full European character set and loads of extra features, this family has you covered and then some.

$17 instead of $230 – Get it now!

Tumult Hype for Mac

Animations can turn the ordinary into the extraordinary! With Tumult Hype 3.6, even the extraordinary levels up! This amazing Mac app lets you easily and quickly whip up beautiful HTML5 animations that work on timelines or based on user interactions. These animations can be built with keyframes and will display across all of today’s modern screen sizes. And if you act now, you can get Tumult Hype today for less than half price!

$24 instead of $49 – Get it now!

Bundle of 400+ High Quality Vector Textures from Ultrashock

Stock up on a ton of creative items now with Ultrashock’s latest Creative Bundle which contains 418 brand new vector textures including Slick Tones (smooth halftone patterns with subtle gradients), Scratches and Scuffs, Retropress (distressed halftone scuffs), Subtle Grit Volume 01 and 02, Authentic Wood Grain, Noise Volume 01 and 02, Fine Grit, Retro Textures, Rusty Metal, Destructive Forces Backgrounds, Botched Imperfect Halftones, Granite Textures and more all with amazing value!

$24 instead of $674 – Get it now!

Nissan Frontier CloudCatcher saves village

Post pobrano z: Nissan Frontier CloudCatcher saves village

Nissan Brasil is promoting the new Nissan Frontier four wheel drive pickup with The CloudCatcher (O Caçador de Nuvens), a commercial in which two young farmers take drastic action to save their village from drought. The men are despairing over their dried-up crops when one of them has a bright idea: although their village is parched, there’s a stubborn rain cloud around a nearby mountain that refuses to move. They devise an ingenious scheme involving their Nissan Frontier truck, some ropes and a makeshift parachute that will eventually bring a piece of cloud down to the village. The commercial was filmed in Picotes, a village in Paraíba, northeastern Brazil, where it hadn’t rained for six years. Just as a the final rain scene was about to be shot, it actually started raining. The CloudCatcher campaign, with the tagline “#ÉMaisQueForça” (More than Force) is also made up of magazine and newspaper ads, a microsite, social media pieces and CRM.

Nissan Frontier Cloudcatcher

Nissan Frontier CloudCatcher Credits

The Nissan Frontier CloudCatcher campaign was developed at LewLara/TBWA by chief creative officer Felipe Luchi, creative directors Sthefan Ko and Gustavo Diehl, creatives Sthefan Ko, Fabio Santoro, Pedro Paes, Guilherme Possobon and Renato Simon, RTV team Luzia Oliveira and Cristiane Marinari, planners Renata d’Avila, Luciana Mussato, Maria Fernanda Haddad, Murilo Chagas and Luiz Menezes, media team Luiz Ritton, Thiago Ferraz, Suellen Kiss, Daniele Farhat, Bruna Dantas and Renato Pierote, general account director Wilson Negrini, account team Xiko Coutinho, Raiza Scatena and Caio Bottan, working with Nissan Brasil marketing team Arnaud Charpentier, Humberto Campusano, Mariana Lemos, Fabio Lima, Juliano Fortini and Murilo Almeida.

Filming was shot by director Rodrigo Saavedra via Landia, Sao Paulo, with executive producers Carol Dantas and Sebastian Hall, director of photography Javier Juliá, and production designer Julian Romera.

Film director Rodrigo Saavedra said, “4×4 and pick-up truck ads are generally all about power, all about being aggressive and tackling any terrain that comes your way. What struck me about this film was the fact that it actually has quite an emotional story at it’s core. It tells the story of two farmers struggling with a drought and then goes into a fantastic tale which nonetheless requires some extremely hard work from their Nissan Frontier.”

Visual effects were produced at Clan VFX. Colour grading was by Marla Colour Grading.

Sound and music were produced at Supersonica, by sound designer Vinicius Villani, account director Cristiane Marquesi, composers Antonio Pinto and Gabriel Ferreira, and voiceover artist Denis Garcia.

MIA Onlus Shelter Box helps Milan Homeless

Post pobrano z: MIA Onlus Shelter Box helps Milan Homeless

Milano in Azione Onlus (MIA Onlus) has launched the Shelter Box, a project designed to help the approximately 3,000 homeless people living in Milan. Over winter the number of beds in emergency shelters is increased in a temporary “cold floor” housing plan. However, come March 31, many find themselves back on the streets. “When winter ends, the emergency continues”. Some of these people have been on the streets for years, while others are recent arrivals, having lost their job, their home and love. MIA Onlus is distributing the Shelter Box that serves as a bed, chair, table and portable bag, providing shelter from the elements while sleeping, and storage of possessions during the day. The following commercial raises awareness of the post-Winter realities, and calls for financial support in extending the Shelter Box program.

MIA Onlus Shelter Box

The MIA Onlus Shelter Box is a design product made of quality cardboard, durable and lightweight, able to provide maximum insulation from moisture. This box is composed of a telescopic structure of three elements that interlock and allow the product to easily turn into a bed, a chair, a table or a backpack. It can be transported as a container to be reused over time.

At the end of the “cold Municipal Plan” (March 31), when many homeless people have had to leave their bed and get back on the road, MIA Milan in Action Fund has distributed the first modules to some of its clients but is now looking for financial support to grow the program.

Shelter Box Credits

The MIA Onlus Shelter Box campaign was developed at Leo Burnett Italia, Milan, by executive creative directors Francesco Bozza and Alessandro Antonini, creative director Nicoletta Zanterino, art directors/designers Filippo Formentini and Marco Zilioli, copywriters Alejandra Gumucio and Andrea Zanino, product designer Andrea Longoni, and producer Alessandra Caldi.

Filming was shot by director Claudio Gallinella via Bedeschifilm.

Autism Day in the Life of Enzo

Post pobrano z: Autism Day in the Life of Enzo

French agency Herezie has produced a pro-bono documentary, “With You We Can Heal It”, in partnership with Vaincre L’Autisme, following the day-to-day life of Enzo, a young boy with autism. Launched to coincide with World Autism Awareness Day (April 2, 2017), the film is designed to support global awareness raising and fundraising. For autistic Enzo, climbing stairs is like climbing Mt Everest. Expressing himself, nearly impossible, without being able to say simple words. One cannot imagine how this little boy or his parents do it. But, they do.

Autism film Enzo and Mother

Baptiste Clinet, Executive Creative Director of Herezie explains the thinking behind the campaign:

“Spending a month to create this documentary to help raise awareness for autism and a call for donations, permitted me to witness, first-hand, what the child goes through –with determination– repeating the same exercise over and over again. It was one of the most humbling things I’ve had the chance to witness. We cannot comprehend how hard it is for the child, the parents and caretakers; but, we need to. This need to engage and help in any way we can, is what drove us to create the film to be shared widely by anyone and everyone in support and celebration of World Autism Awareness Day.”

Autism film Enzo climbing steps

Q&A Up close with Herezie

Q. What’s the story in 2 sentences? It’s the story of an autistic and non-verbal 5 years old boy who practices for 30 days to become the spokesman of an association.

Q. In your own words, what is the emotional reason people should care? In France, there are 650 000 people with ASD (Autistic Spectrum Disorder) and a real lack of infrastructure to take care of them. It could be their brother, their child, their life.

Q. Why this idea? To be able to speak, to be able to write.. All these simple things that get us through life, we take them for granted. We wanted to show the amount of effort, help and time an autistic person needs to achieve these simple things, and the fact that only money can assure these kids to be appropriately accompanied.

Q How does the idea position the marque? The idea shows how the association can accompany and take care of all the people with ASD. It also shows that it’s a « human size » association that needs money.

Q. Tell me about the tonality you chose and why? For too many people, « autism » is hard to define. We wanted to explain and show them what it’s like. Instead of showing tears and failure, we wanted to show determination, dedication and love. When you get to know the families who have to deal with ASD, you immediately get blown away by those precise qualities.

Q. Where did you shoot and why? We shot at the Futuroschool, where Enzo goes every day. It had to be 100% real. No acting, nothing.

Q. What was the most challenging part of pulling off this idea and how did you overcome it? The most challenging thing was to not disturb Enzo’s routine in the process of bringing this campaign to life. Besides, we didn’t know the outcome of all this. We had to adapt our message to Enzo’s capacities; and, yet, we weren’t sure he was going to succeed. With the help of his parents and all the people at the Futuroschool, we managed to spend enough time with him.

Q. Who was the director and why? With a very low budget, we had to find clever solutions to follow Enzo through this journey. We decided to partner with Auguste Bas and Robin Deriaud, two freshly graduated and talented students of Luc Besson’s school École de la Cité. This way, they could be with Enzo 8 hours a day for an entire month.

Autism Day in the Life Credits

The Autism Day in the Life campaign was developed at Herezie Group by executive creative director Baptiste Clinet, head of creative content Paul Marty, art directors/copywriters Jacques Denain, Nicolas Duménil, strategic planner Camille Lallier, PR directors Kim Ball and Morgane Le Rol, agency producer Barbara Vaira, COO Pierre Callegari, CEO Andrea Stillacci, associate general managers Edouard De Pouzilhac, Thomas Couteau, and associate managing director Arno Pons.

Digital work was done at 5eme Gauche.

Filming was shot by directors Auguste Bas and Robin Deriaud via FullDawa Production, Paris, with producers Boris Mendza, Gael Cabouat, Alexandre Bonaldi, production coordinator Maud ramos Guerrero.

Editor was Mehdi Lachhab. Grading was done at Bend the Colour Studio by colourist Raphael Kourisky.

Original music was by Eraldo Bernocchi and Lorenzo Esposito Fornasari, at TransmutationLtd.

AirBnB Until we all belong in Australia

Post pobrano z: AirBnB Until we all belong in Australia

AirBnB Australia is raising support for marriage equality in Australia with “Until We All Belong”, a campaign featuring an incomplete ring. As part of its mission is to create a world where anyone can belong, Airbnb is today asking Australians to make their support of marriage equality known by wearing the symbol of marriage itself – a ring. Launched with support from some of Australia’s biggest brands including Qantas, Google, ANZ and eBay, and in collaboration with The Equality Campaign, AirBnB Until We All Belong marks the most public corporate declaration for marriage equality in Australia to date. Online at untilweallbelong.com, the campaign includes a 60 second and 30 second commercials, along with personal stories and opportunities to make a public statement of support.

AirBnB Until We All Belong

The AirBnB Until We All Belong initiative calls on the people of Australia to show their acceptance of marriage equality and commit to wearing a bespoke ring until same-sex marriage is recognised in Australia. Designed in support from world-renowned designer Marc Newson, this unique, matte black metal ring is a visual representation of the gap in marriage equality and is intricately engraved with the words ‘Until We All Belong’ on the interior. Airbnb is also making it easier for Australians – no matter where they call home – to get involved by making the rings free of charge and standardising postage costs across the country.

AirbnB Until my uncle can belong
AirBnB Until We All Belong - the gap we need to close

Airbnb CEO and head of community, Brian Chesky, said he hopes the movement will spark conversations about acceptance across Australia by putting marriage equality back on top of the nation’s political agenda.

Says Chesky: “Openness and belonging are at the heart of Airbnb – it’s at the core of what we do every day. We are committed to helping people belong no matter where they are in the world and strongly believe that everyone should have the right to marry the person they love. This is an opportunity for people to show their support for marriage equality – not just those within the LGBTQI+ community, but for anyone to make their support for a brother, sister, parent, friend or loved one known.”

The Equality Campaign executive director, Tiernan Brady, said this campaign is about the most Australian of our values, which is a fair go for all.

Says Brady: “Two-thirds of the nation as well as a majority of politicians want every Australian to be able to marry the person they love in the country they love. Marriage equality will not change anything for the vast majority of Australians but will make a profound difference to the status and dignity of many. It is wonderful to have so many businesses creating this campaign. They do so because they know that equality and fairness is good for their employees, their customers and for all Australians. Until We All Belong sends a powerful signal to parliament that the need for marriage equality will continue to grow in size and determination until the law changes to reflect the will of the Australian people.”

AirBnB Until We All Belong Credits

The AirBnB Until We All Belong campaign was developed at Clemenger BBDO Melbourne and Flare BBDO. Media was handled by Starcom.

Filming was shot by The Glue Society director Jonathan Kneebone via Revolver/Will O’Rourke.

Photography was by Derek Henderson and Map Ltd.

Music by Angus MacRae was licensed via Level Two Music.

PR was handled by n2n Communications.