This is a solution to the Sunnyside agency landing page challenge on Frontend Mentor.
You can view the live site here.
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: Add solution URL here
- Live Site URL: Add live site URL here
- Semantic HTML5 markup
- Javascript
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
-
This was the first project where I created a simple hamburger menu, it was surprisingly easy to implement and only took a few lines of JavaScript.
-
This website is fully responsive for mobile,tablet and desktop. The figma file provided did not include a tablet design, so I adapted the mobile design.
-
I did my best to match the design brief for the mobile and desktop versions as closely as possible, and am pretty pleased with the results, but feel I can do better in the next project.
-
I also added a function that opens links in a new tab for desktop and tablet only. (all the links will take you to pictures of cute dogs)
function openNewTabForDosktopAndTablet() {
links.forEach((link) => {
if (window.innerWidth <= 550) {
link.setAttribute('target', '_self');
} else {
link.setAttribute('target', '_blank');
}
});
}
openNewTabForDosktopAndTablet();
-
I had fun using flexbox and grid in this project as always.
-
I used the css
clamp()
function for the first time in this project,definetly very useful function for responsive design.
In the upcoming weeks I plan to take a deep dive back into React. Thus I would like to rebuild this site using React soon.
- Kieran Gill - Portfolio
- Frontend Mentor profile