Online Education - landing page

Table of contents

Overview

User ability

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
  • Switch between the slides by dragging the slides right and left

Screenshot

screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Large-screen-first workflow
  • javscript
  • swiper js (for sliding)

What I learned ?

I learned some awesome stuff like dealing with beautiful library like swiper to build the slider.

<!-- Slider main container -->
<div class="swiper .container">
  <!-- swiper wrapper -->
  <div class="swiper-wrapper">
    <!-- Slides -->
    <div class="swiper-slide slide">
      <div class="image">
        <img src="images/course-1.svg" alt="" srcset="" />
      </div>
      <div class="content">
        <h3>web development</h3>
        <p>
          Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui laborum
          omnis nulla magni! Explicabo.
        </p>
      </div>
    </div>

    <div class="swiper-slide slide">
      <div class="image">
        <img src="images/course-2.svg" alt="" srcset="" />
      </div>
      <div class="content">
        <h3>digital marketing</h3>
        <p>
          Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui laborum
          omnis nulla magni! Explicabo.
        </p>
      </div>
    </div>
  </div>
  <!-- pagination -->
  <div class="swiper-pagination"></div>
</div>
// swiper js controle.

var swiper = new Swiper(".swiper", {
  spaceBetween: 20,
  grabCursor: true,
  loop: true,
  pagination: {
    el: ".swiper-pagination",
    clickable: true,
  },
  breakpoints: {
    540: {
      slidesPerView: 1,
    },
    768: {
      slidesPerView: 2,
    },
    1024: {
      slidesPerView: 3,
    },
  },
});

Author