Remove Best Practices Remove Code Remove Magazine Remove Strategy
article thumbnail

Next.js Wildcard Subdomains

Smashing Magazine

With 100s of real-life examples , guidelines and best practices that you can apply right away. In code, that looks like this: export async function getServerSideProps(context) { let wildcard = context.req.headers.host.split(".")[0]; Now that we’ve explored the theory of this strategy, let’s explore how we put it into practice.

Servers 83
article thumbnail

Gone Floating Labels And Green Lighthouse Scores

Smashing Magazine

Also, if you have released an open-source tool and would love to draw more attention to it, please let us know as well and we’d love to have you presenting your project here in the magazine as well. Workflow & Code. Workflow, Code. Workflow, Code. Workflow, Code. Workflow, Code. Workflow, Code.

Mobile 140
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Refactoring CSS: Strategy, Regression Testing And Maintenance (Part 2)

Smashing Magazine

Refactoring CSS: Strategy, Regression Testing And Maintenance (Part 2). Refactoring CSS: Strategy, Regression Testing And Maintenance (Part 2). In this article, we’ll take a deep dive into the refactoring process itself, and cover incremental refactoring strategy, visual regression testing, and maintaining the refactored codebase.

Strategy 132
article thumbnail

Meet Touch Design For Mobile Interfaces, A New Smashing Book By Steven Hoober

Smashing Magazine

Chapter 10 covers best practices in how the UIs of interactive elements are designed to attract the eye, afford action, be readable, and inspire confidence that they can be safely tapped. Practical Mobile Touchscreen Design. +. Interface Design Checklists (PDF) 100 practical cards for common interface design challenges.

Mobile 87
article thumbnail

Global vs. Local Styling In Next.js

Smashing Magazine

is opinionated about how to organize JavaScript code, but it doesn’t have built-in opinions about how to organize CSS. and exercise best CSS practices. There are a couple of questions we have to consider when organizing style within Next.js: How can we fit within the conventions/best practices of the framework?

Website 142
article thumbnail

Smart CSS Solutions For Common UI Challenges

Smashing Magazine

Ahmad’s strategies on achieving the cut-out effect. The article also provides plenty of code examples to get started with! With 100s of real-life examples , guidelines and best practices that you can apply right away. If you’d like to dive deeper into the code, Hakim also published a demo on Codepen. CSS Charts.

Games 144
article thumbnail

Let’s Dive Into Cypress For End-to-End Testing

Smashing Magazine

However, end-to-end testing does have some pitfalls that are cause for concern: End-to-end tests are slow and, thus, pose a significant hurdle in every continuous integration and continuous deployment (CI/CD) strategy. We know that front-end testing is a set of practices for testing the UI of a web application, including its functionality.

Testing 135