JSFiddle - React, Tailwind, and code Playground

by dmitriyPHC

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <div class="dots-wrapper">
    <a href="#section-1"><span class="dots"></span></a>
    <a href="#section-2"><span class="dots"></span></a>
    <a href="#section-3"><span class="dots"></span></a>
    <a href="#section-4"><span class="dots"></span></a>
  </div>
  <section id="section-1"></section>
  <section id="section-2"></section>
  <section id="section-3"></section>
  <section id="section-4"></section>
</body>
</html>

CSS

*, *::after, *::bedore{
  box-sizing: border-box;
}

body{
  margin: 0;
  padding: 0;
  position: relative;
}

section{
  width: 100%;
  height: 400px;
}

#section-1, #section-3{
  background-color: grey;
}

#section-2, #section-4{
  background-color: #FCFAF4;
}

.dots-wrapper{
  position: fixed;
  top: 140px;
  right: 40px;
  display: flex;
  flex-direction: column;
}

.dots{
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  margin-bottom: 10px;
}