Wednesday, October 19, 2016

Newsletter Sign Up Boxes

newsletter-sign-up-box-12

newsletter-sign-up-box-16

newsletter-sign-up-box-02

newsletter-sign-up-box-14

newsletter-sign-up-box-13

newsletter-sign-up-box-04

newsletter-sign-up-box-01

newsletter-sign-up-box-15

newsletter-sign-up-box-07

newsletter-sign-up-box-09

newsletter-sign-up-box-06

newsletter-sign-up-box-10

newsletter-sign-up-fubiz

colin-james-rhoads-newsletter-sign-up-animation

 
 

An ongoing collection of engaging Newsletter Sign Up Boxes within a web page, not pop-ups. Each reference links out to the original feature with a longer website screenshot for context.

by Rob Hope via One Page Love

How to Create and Publish a Jekyll Theme Gem

This Week in Mobile Web Development (#130)

Read this on the Web

Mobile Web Weekly October 19, 2016   #130
Holly Schinsky recommends
Mobile Web Performance Checklist — A variety of best practices for optimizing mobile web apps taken from Max Firtman’s book, High Performance Mobile Web.
Max Firtman
Chris Brandrick recommends
Introducing Chrome Canary for Android — Android now has its own version of the bleeding edge, developer-focused version of Chrome. Builds will ship every day.
Google
Sponsored
Tabris.js 1.10 is here — Now with WebSockets support, app header branding and more. Developing native apps in JavaScript is easy!
Tabris.js

Brian Rinaldi recommends
Why AMP is Fast — A list of all of the various optimizations that are applied to AMP-based documents.
Malte Ubl
Peter Cooper recommends
Swip: A Library to Create Multi Device Experiments — Expand canvases or active Web page space across multiple device screens placed next to each other.
Paul Sonnentag
Brian Rinaldi recommends
Progressive Enhancement Isn’t Dead, But It Smells Funny — Nolan argues that the “HTML-first” progressive enhancement (i.e. without JS) fits a narrow view that may no longer be applicable to the modern web.
Nolan Lawson
Holly Schinsky recommends
Google Launches Firebase Cloud Messaging for the Web — Google extends support for their Firebase Cloud Messaging service to desktop and mobile web to allow developers to send push notifications.
Jordan Novet
Brian Rinaldi recommends
A Priority+ Navigation With Scrolling and Dropdowns — A quick look at how to apply the priority+ design pattern to a navigation menu within a responsive layout.
Micah Miller-Eshleman
Holly Schinsky recommends
Making Mobile Apps Smarter with Geofence Technology — Combining user information with location aware technology to create a personalized user experience.
Mathijs Hoek
Holly Schinsky recommends
Creating Role Based Authentication with Passport in Ionic 2 - Part 2 — Part 2 of a tutorial on how to create a role-based authentication system with Ionic 2 using Passport.
Josh Morony
Brian Rinaldi recommends
“Offline First” with Service Worker (Building a PWA) — The first in a series where Ire walks through the process of turning her blog into a PWA.
Ire Aderinokun
Chris Brandrick recommends
Google’s AMP Reviewed As A Developer — Considering the good and bad parts of AMP as a developer and site owner.
Yvo Schaap
Holly Schinsky recommends
Building Network-Friendly Single-Page Apps — A look at some common network-related performance problems developers experience when using single-page app (SPA) frameworks, with tips on how to address them.
Clay Smith
Brian Rinaldi recommends
Kendo UI Grid Filtering with Querystrings — Matt Millican offers a solution to filtering the Kendo UI Grid that has the benefits of AJAX data loading, but remembers the user’s current criteria.
Telerik Developer Network
Holly Schinsky recommends
Jekyll Progressive Web App Starter Kit Generator — An open-source tool for generating static websites using Jekyll with Progressive Web App (PWA) features and full test coverage.
Gizra
Holly Schinsky recommends
Why Does The Washington Post’s Progressive Web App Increase Engagement on iOS? — The Washington Post’s PWA has seen near 5x increase in user engagement on iOS though iOS doesn’t support PWAs.
CloudFour
Chris Brandrick recommends
How Mobile Has Changed The Way We Search, Based On 10+ Years of Eye-Tracking Studies “Mobile devices have habitually conditioned searchers to scan vertically more than horizontally. This has translated to desktop search as well.”
Kristi Kellogg
Holly Schinsky recommends
AMP-Enabled Web Pages Are Loading Much Faster, Google Says
Jaikumar Vijayan
Sponsored
Don't Love Your Job? You Should - Try Hired and Find the Right Fit. — Hired puts the power back in your hands, by having companies apply to you, not the other way around. With Hired you only talk to companies you're interested in.
Hired

Curated by Brian Rinaldi and Holly Schinsky for Cooper Press.
Cooper Press is located at Office 30, Fairfield Enterprise Centre, Louth, LN11 0LS, UK
Update your email address
or stop receiving MWW here


by via Mobile Web Weekly

Building Your Startup: Refining Email Templates

AtoZ CSS Screencast: The Required Pseudo Class

:required is a state based pseudo class that can be useful when styling forms.

Combined with :valid and :invalid we can have a lot of control over providing visual feedback to users without having to write lots of JavaScript.

In this episode we’ll learn:

  • How to use HTML5 form validation
  • Using :required and other state-based pseudo classes
  • A creative technique for displaying validation messages to users

HTML5 Validation

When asking a user to fill out a form, it’s very common to have certain mandatory fields. These might be for their name, email address or credit card details.

In HTML5 we can leverage client-side validation without JavaScript when the behaviour is built into modern browsers.

Continue reading %AtoZ CSS Screencast: The Required Pseudo Class%


by Guy Routledge via SitePoint

Building RESTful APIs With Flask: ORM Independent

In the first part of this three-part tutorial series, we saw how to write RESTful APIs all by ourselves using Flask as the web framework. In the second part, we created a RESTful API using Flask-Restless which depends on SQLAlchemy as the ORM. In this part, we will use another Flask extension, Flask-Restful, which abstracts your ORM and does not make any assumptions about it. 

I will take the same sample application as in the last part of this series to maintain context and continuity. Although this example application is based on SQLAlchemy itself, this extension can be used along with any ORM in a similar fashion, as shown in this tutorial.

Installing Dependencies

While continuing with the application from the first part, we need to install only one dependency:

The Application

Before we start, you might want to remove the code that we wrote for the second part of this tutorial series for more clarity.

As always, we will start with changes to our application's configuration, which will look something like the following lines of code: 

flask_app/my_app/__init__.py

Just adding the above couple of lines to the existing code should suffice.

flask_app/my_app/catalog/views.py

Most of the code above is self-explanatory. I will highlight a few points, though. The code above seems very similar to the one that we wrote in the first part of this series, but here the extension used does a bunch of behind-the-scenes optimizations and provides a lot more features that can be leveraged. 

Here the methods declared under any class that subclasses Resource are automatically considered for routing. Also, any parameters that we expect to receive along with incoming HTTP calls need to be parsed using reqparse.

Testing the Application

This application can be tested in exactly the same way as we did in the second part of this tutorial series. I have kept the routing URL the same for the same purpose.

Conclusion

In this last part of this three-part tutorial series on developing RESTful APIs with Flask, we saw how to write ORM-independent RESTful APIs. This wraps up the basics of writing RESTful APIs with Flask in various ways. 

There is more that can be learned about each of the methods covered, and you can explore this on your own, using the basics you've learned in this series.


by Shalabh Aggarwal via Envato Tuts+ Code

What's New in watchOS 3?