This is a solution to the Bookmark landing page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
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
- Receive an error message when the newsletter form is submitted if:
- The input field is empty
- The email address is not formatted correctly
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
- I divided the project into sections by the use of sass partials. Which made this project more organized;
- used the sass functions to convert pixel values to rem.sass functions make things way easier;
- created mixins to handle the various buttons on the page which keeps repeating itself at different sections. In this way i do not have to worry about creating a new button each and every time. I just need to import just one mixin.
- I created this responsive project on mobile first. in this way things get way more easier as I scale/develop the project for desktop;
- I used js regular expressions to validate the email;
- I used flexbox and grid system design to create this project;
- used only one JavaScript file for this project;
- Semantic HTML5 markup
- Flexbox
- CSS Grid
- Mobile-first workflow
In this project I learnt how to use the css min() and the clamp() functions to archieve greater responsiveness.
.proud-of-this-css {
font-size: clamp(14px, 17px + 2vw, )
}
forEach((item)) = () => {
item.addEventListener('click',()=> {
console.log('🎉')
})
}
- Avoiding the use of muliple media query breakpoints
- Accessibility[the use of ARIA attributes]
- Frontend Mentor - @Kamasah Dickson
- Twitter - @Kamasah Dickson