Skip to content

A responsive landing page built with HTML, CSS, and JavaScript. This project is a Frontend Mentor challenge solution featuring modern design, interactive elements, and mobile-first approach.

Notifications You must be signed in to change notification settings

Ayokanmi-Adejola/Loopstudios-Landing-Page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Loopstudios Landing Page Solution

This is a solution to the Loopstudios landing page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Overview

The challenge

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

Screenshot

Loopstudios Landing Page Screenshot

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Vanilla JavaScript for mobile navigation

What I learned

This project helped me strengthen my skills in creating responsive layouts using CSS Grid and Flexbox. I particularly focused on implementing a clean, modern design that adapts well to different screen sizes.

Some key learnings include:

  • Creating responsive grid layouts that change from multi-column to single-column on mobile
  • Implementing hover effects with smooth transitions
  • Building an accessible mobile navigation menu
  • Using CSS pseudo-elements for overlay effects

Here are some code snippets I'm proud of:

<!-- Responsive image handling with separate mobile/desktop versions -->
<div class="grid-item">
  <img src="./images/desktop/image-deep-earth.jpg" alt="Deep earth" class="desktop-img">
  <img src="./images/mobile/image-deep-earth.jpg" alt="Deep earth" class="mobile-img">
  <h3>Deep earth</h3>
</div>
/* Hover effect for grid items */
.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 1;
  transition: background 0.3s ease;
}

.grid-item:hover::before {
  background: rgba(255, 255, 255, 0.7);
}

.grid-item h3 {
  position: absolute;
  bottom: 32px;
  left: 32px;
  color: var(--white);
  font-family: var(--font-josefin);
  font-weight: 300;
  font-size: 2rem;
  text-transform: uppercase;
  z-index: 2;
  max-width: 150px;
  transition: color 0.3s ease;
}

.grid-item:hover h3 {
  color: var(--black);
}
// Mobile navigation toggle with smooth transitions
navToggle.addEventListener('click', () => {
  mobileNav.classList.toggle('show');

  // Toggle between hamburger and close icons
  if (hamburger.style.display === 'none') {
    hamburger.style.display = 'block';
    close.style.display = 'none';
    body.style.overflow = 'auto'; // Enable scrolling
  } else {
    hamburger.style.display = 'none';
    close.style.display = 'block';
    body.style.overflow = 'hidden'; // Disable scrolling when menu is open
  }
});

Continued development

In future projects, I want to focus on:

  • Implementing more advanced animations and transitions
  • Improving accessibility features
  • Exploring CSS Grid for more complex layouts
  • Optimizing performance for faster load times
  • Adding more interactive elements with JavaScript

Useful resources

Author

About

A responsive landing page built with HTML, CSS, and JavaScript. This project is a Frontend Mentor challenge solution featuring modern design, interactive elements, and mobile-first approach.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published