Users should be able to:
- View the optimal layout for the site depending on their device's screen size
- See hover states for all interactive elements on the page
- Solution URL: (Website Github Repo)
- Live Site URL: (Website Live Link)
- Study the layout for all devices
- Structure html to make it simple to replicate
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- Javascript DOM manipulation
To see how you can add code snippets, see below:
window.addEventListener("resize", function(){
if (viewport > 500) {
viewport = this.window.innerWidth
arrowImage.width = viewport / 40;
console.log("Viewport: ", viewport, "\nArrow: ", arrowImage.width);
} else {
console.log("Something is wrong.")
}
})
};
With this code I can update the size of any element base on the viewport width.
- Tablet screen can be refined more
- Website - David McLean
- Frontend Mentor - @davupls
- Twitter - @davutech
To my Sister for taking the time out to check how the website looked on different devices, thank you.
An to Matthew Thomas for doing the same.