
Hosting my static sites with nginx
Hosting my static sites with nginx
1,745 articles published in 2022.

Hosting my static sites with nginx

We all have run into CSS collisions and sudden regressions in our codebases when new styles are written or 3rd-party styles are added. This is because of the interdependence of styles due to source order, specificity, and inheritance. Some ways to control the cascade have included methodologies like ITCSS and BEM and other newer native features. Cascade layers will be the ultimate native solution

The early hours of Friday, January 21, 2022, started in Yemen with a country-wide Internet outage

An aspect of web components is that a JavaScript function is called whenever a web component is added or removed from a page.

SVG is a great image format, so it's nice to able to use it in WordPress. If you're looking to be using SVG in WordPress. , we've got you covered here with all the best options.

Our community has been hard at work through December shipping updates. Here’s our staff picks for open source projects with major version releases.

Joining a team where there are no established design practices may feel disheartening. Does this situation resonate with you? If yes, then read on — as this article is sharing the author’s advice based on his personal experience and it will show you a way (although not easy) of facing the problem in a manner that will bring other benefits, beside order and consistency.

Let's look at Node and how it plays alongside npm to install features and tooling as packages in modern front-end web development.

The command line is a place we can type commands to be executed directly by our computer. It’s extremely fast, and ideal for a tool like npm.

In this article, we'll install npm and Node, then make a little sample project to give you real hands-on experience working with the npm basics

Next up in this beginner’s guide to npm is likely why you’re here in the first place: installing npm packages, which uses the `npm install` command.

npm stands for Node Package Manager. In order to get a better understanding of npm, we need to learn what a package manager is and does.

This article provides covers how to install an existing npm project rather than starting from scratch, using a real-life project as an example.

This npm guide helps you understand what npm is, what what makes npm a package manager, and how to use npm from a beginner's view.

npm is short for Node Package Manager. Let's unpack exactly the meaning of npm and get an idea of how it fits into modern front-end development.

npm commands run various tasks for you, either as a one-off or a continuously running process for things like starting a server or compiling code.

How we tested, iterated, and rolled out updates to comments in Figma

When digital infrastructure is overlooked by governments, it isn’t just a missed opportunity: policies may inadvertently endanger open source collaboration.

Shopify CTO Allan Leinwand outlines some of the company's biggest engineering priorities for 2022.

You probably know how annoying it could be to handle different states, if you have ever built React applications that use asynchronous data. In this article, Georgii Perepecho explains the most common React Query features that you need to be familiar with when creating a real-life application that is stable when testing.

I’m excited to announce that I recently joined Cloudflare in Japan as Vice-President and Managing Director, to help build and expand our customer, partner base, and presence in Japan

The latest Internet outage, in the South Pacific country of Tonga (with 169 islands), is still ongoing. It started with the large eruption of Hunga Tonga–Hunga Haʻapai, an uninhabited volcanic island of the Tongan archipelago on Friday, January 14, 2022

CSS3 was a massive success for CSS. No doubt loads of people boned up during that time. How has CSS changed since? Let's count the ways.

We can create a life-like dappled light effect In CSS, adding a magic touch to what might otherwise be drab walls of content to bring them back to life.

We’re excited to announce the V4 release of the OpenSSF’s Scorecard project in partnership with Google.

What goes into creating a successful design system? How can you take your testing workflow to the next level? And what smart interface design patterns could help you enhance your UIs? Let’s figure it out. With our [online workshops on front-end and UX](https://smashingconf.com/online-workshops).

There are a number of options for including a Table of Contents block in WordPress, including several plugins, or trying to do it yourself.

The VitePWA plugin adds a service worker that handles offline support, caching assets, and prompting users when new content is available.

With the successful liftoff of the James Webb Space Telescope, we ask our very own Arfon Smith about the history of open source and space science.

Facebook Ordered Queueing Service (FOQS) is a fully managed, distributed priority queueing service used for reliable message delivery among many services. FOQS has evolved from a regional deployment into a geo-distributed, global deployment to help ensure that data stored within logical queues is highly available, even through large-scale disaster scenarios. Migrating to a global architecture

Every once in a while, we publish [freebies](https://www.smashingmagazine.com/category/freebies) related to different occasions and themes. We hope that with this icon set, everyone will be able to find their own use case for these icons in particular. Today, we present to you three icon sets designed by the creative folks at GraphicSurf — all free for personal and commercial use.

We’re excited to announce that customers using our Free plan can now get real-time alerts about HTTP DDoS attacks that were automatically detected and mitigated by Cloudflare

A complete list of the most popular front-end tools in 2021, according to the Web Tools Weekly newsletter. See which resources made the list.

This is a guest post by Ankit Sirmorya. Ankit is working as a Machine Learning Lead/Sr. Machine Learning Engineer at Amazon and has led several machine-learning initiatives across the Amazon ecosystem. Ankit has been working on applying machine learning to solve ambiguous business problems and improve customer experience. For instance, he created a platform for experimenting with different hypothe

In this article, Adrian Bece will explore fluid typography principles, use-cases, best practices, implementation with CSS clamp function and how to calculate the right parameters. He’ll also show you how to address some accessibility concerns and watch out for one important issue that you cannot fix as of yet, but have to be aware of regardless.

Some ways DNS can break

Recently, we made an optimization to the Cloudflare Workers runtime which reduces the amount of time Workers need to spend in memory. We're passing the savings on to you for all your Unbound Workers

The CSS Me Not bookmarklet lets you see all of the CSS files on a site, notably unused files you might want to prevent from loading.

I saw some Mondrian Art in CSS going around the other day and figured I'd go looking for others I've seen over the years and round them up.

The Svelte transition API provides a way to animate components when they enter or leave the document, including custom Svelte transitions.

At Shopify, we draw very few lines between “data” and “engineering” work. Instead we have “search” work.

If you are a beginner at design and are willing to learn UI (user interface), UX (user experience) and product design, then this article is definitely for you! In [Part 1](https://www.smashingmagazine.com/2022/01/ten-tips-aspiring-designer-beginners-part1/), Luis Ouriach shared advice he wished he had when starting out in his career. In this second and last part of this series, Luis continues shar

Every so often, I accumulated a bunch of links about various things I find interesting. Accessibility is one of them! Here are 8 helpful accessibility links.

Sass offers functions and mixins that accept parameters. You can use Sass default parameters, that is, parameters that have a value even if you don't provide

Here are the top games created in our annual game jam as rated and reviewed by the developers that made them. Game On! 🤘🏻

From answering questions about a new release to fielding feature requests, here’s how five open source communities use GitHub Discussions.

My colleague Stormy Peters and I are proud to represent GitHub at the White House’s Open Source Software Security Summit.

If you’re a developer who’s thinking about building a platform that requires a code editor in one form or another, then this article is for you. This article explains how to create a web code editor that displays the result in real time with the help of some HTML, CSS and JavaScript.

You know how you can get cardboard boxes that come totally flat? You fold ‘em up and tape ‘em to make them into a useful box. Then when it’s time to recycle

I don't feel confident operating or maintaining open source. That makes me scared of it, and my fear makes me avoid doing it at all.

Netlify Identity is a robust offering that provides authentication on a Jamstack site. It’s super easy to enable and opens up a bunch of possibilities.

Hot off the presses from Devon Govett, creator of Parcel, is Parcel CSS, a CSS parser, transformer, and minifier written in Rust.

Learn how the GitHub Mobile Team automates their release process with GitHub Actions.

In distributed systems, there’s plenty of occasions for things to go wrong. This is why resiliency and redundancy are important. But no matter the systems you put in place, no matter whether you did or didn’t touch your deployments, issues might arise. It makes it critical to acknowledge the near misses: the situations where something could have gone wrong and the situations where something did, b

When do you need to overhaul a large code base to address tech debt? What is the best way to address widespread inconsistencies and outdated patterns? How can you make significant architectural improvements to a complex application while still continuing to ship features? These were questions we grappled with at the beginning of 2020, when…

Accessibility must be a permanent program within organizations, much like security. There are many ways to increase your team’s capacity for accessibility and it’s less important where you start than it is that you do start. Accessibility must be a permanent program within organizations, much like security. You wouldn’t just do one round of security testing and consider it taken care of. In this a

In April 2021, Cloudflare relaunched Project Jengo, Cloudflare’s prior art search contest. Here is the latest case update, along with our second round of winners.

Sometimes UI elements, like tooltips, need to be edge-aware to prevent the content inside from triggering weird scrollbars or cutting off content.

Vite (pronounced “veet”) is a newish JavaScript bundler. It comes batteries-included, requires almost no configuration to be useful, and includes plenty of

This is a guest post by Ankit Sirmorya. Ankit is working as a Machine Learning Lead/Sr. Machine Learning Engineer at Amazon and has led several machine-learning initiatives across the Amazon ecosystem. Ankit has been working on applying machine learning to solve ambiguous business problems and improve customer experience. For instance, he created a platform for experimenting with different hypothe