© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. LibbyPractical Next.js for E-Commercehttps://doi.org/10.1007/978-1-4842-9612-7_6

6. Adapting for Mobile

Alex Libby1  
(1)
BELPER, UK
 

In the modern age of mobile devices, more and more people are purchasing via cell phones or tablets – making our site work on these devices is essential.

In Chapter 5, we started with styling for desktops, but what about mobiles or tablets? We need our site to work across multiple devices, so in this chapter, we’ll focus on what we need to do to ensure our site works on various environments, from mobile to PC. Before we get into applying styles, let’s first decide which devices we will use to test our site and assess what ...

Get Practical Next.js for E-Commerce: Create E-Commerce Sites with the Next.js Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.