<button type="button" class="button">
      <a href="https://codepen.io/navinnavi19/full/QRmJrd" target="_blank">BootStrap <i class="fas fa-arrow-right"></i></a>
    </button>
    <aside class="navigation">
      <ul>
        <li class="active">
          <a class="navLink" href="#home"
            ><i class="fas fa-home"></i> <span>Home Page</span></a
          >
        </li>
        <hr />
        <li>
          <a class="navLink" href="#personal"
            ><i class="fas fa-user"></i> <span>Personal Details</span></a
          >
        </li>
        <hr />
        <li>
          <a class="navLink" href="#tech"
            ><i class="fas fa-laptop-code"></i> <span>Technical Skills</span>
          </a>
        </li>
        <hr />
        <li>
          <a class="navLink" href="#project"
            ><i class="fas fa-project-diagram"></i> <span>Project Details</span>
          </a>
        </li>
      </ul>
    </aside>
    <div class="main">
      <section id="home" class="home">
        <h1>NAVIN</h1>
        <h2>A Self Thought Web Developer</h2>
      </section>
      <section id="personal" class="personal">
        <h2>Personal Details</h2>
        <div class=" container">
          <div class="image">
            <img
              src="https://res.cloudinary.com/navinnavi19/image/upload/v1553952261/VANUSS/_MG_8642.jpg"
              alt=""
            />
          </div>
          <div class="details">
            <p><b>Name :</b> Navin</p>
            <p><b>Designation :</b> Security Administrator</p>
            <p><b>Industry :</b> CRS (Cyber Risk Services)</p>
            <p><b>Twitter :</b> @ANavin007</p>
            <p><b>CodePen :</b> navinnavi19</p>
          </div>
        </div>
      </section>
      <section id="tech" class="technical">
        <h2>Technical Skills</h2>
        <div class="table">
          <table>
            <tr>
              <th>Skills</th>
              <th>Experience</th>
            </tr>
            <tr>
              <td>Information Security</td>
              <td>12 months</td>
            </tr>
            <tr>
              <td>Email Security</td>
              <td>13 months</td>
            </tr>
            <tr>
              <td>HTML, CSS, JS, Markdown</td>
              <td>4 months</td>
            </tr>
            <tr>
              <td>Bootstrap, MDC</td>
              <td>4 months</td>
            </tr>
            <tr>
              <td>Node JS</td>
              <td>2 months</td>
            </tr>
            <tr>
              <td>Angular JS</td>
              <td>2 months</td>
            </tr>
          </table>
        </div>
      </section>
      <section id="project" class="project">
        <h2>
          Project Details
        </h2>
        <h3>
          <a
            href="http://angular7-udemy-the-complete-guide.s3-website.ap-south-1.amazonaws.com/"
            target="_blank"
            >Angular Recipe Book SPA Application</a
          >
        </h3>
      </section>
    </div>
* {
  --primary-color: #008552;
  --secondary-color: #005729;
  --third-color: #4ab67f;
  --main-color: #efefef;
}

body {
  margin: 0;
  background: var(--main-color);
  font-family: 'Ubuntu', sans-serif;
  display: flex;
}

body > * {
  max-height: 100vh;
  overflow: auto;
}

.button {
  position: absolute;
  top: 20px;
  right: 30px;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px -1px rgba(0, 0, 0, 0.2);
  padding: 10px;
  text-transform: uppercase;
  background: -webkit-linear-gradient(
    45deg,
    rgb(158, 189, 19) 0%,
    rgb(0, 133, 82) 100%
  );
  border: none;
  outline: 0;
  z-index: 100;
}

.button:hover {
  background: -webkit-linear-gradient(
    45deg,
    rgb(94, 110, 11) 0%,
    rgb(13, 110, 13) 100%
  );
}

.button:active {
  box-shadow: none;
}

.button a {
  font: 500 16px 'Ubuntu', sans-serif;
  letter-spacing: 1px;
  text-decoration: none;
  color: #efefef;
  font-weight: bold;
}

.navigation {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: 18rem;
  background: var(--secondary-color);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--main-color);
  text-transform: uppercase;
  box-shadow: 0px 0px 14px 0px black;
  transition: all 0.1s ease-in-out;
}

.navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navigation li {
  padding: 25px 25px;
  border-radius: 10px;
  margin: 10px;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.navigation a {
  text-decoration: none;
  color: inherit;
}

.navigation li.active {
  background: var(--third-color);
}

.navigation li:hover {
  background: var(--primary-color);
}

hr {
  margin: 0 auto;
  width: 50px;
}

.main {
  display: block;
  width: 100%;
}

.main > * {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px;
}

.home > * {
  background: -webkit-linear-gradient(90deg, #9ebd13 0%, #008552 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home h1 {
  font-size: 5rem;
  margin: 20px auto;
  text-shadow: 2px 4px 5px rgba(0, 0, 0, 0.3);
}

.home h2 {
  font-size: 2rem;
}

.personal h2,
.technical h2,
.project h2 {
  background: linear-gradient(90deg, #9ebd13 0%, #008552 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  margin-bottom: 80px;
}

.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
  background: linear-gradient(295deg, #9ebd13 0%, #008552 100%);
  border-radius: 30px;
  box-shadow: 0px 0px 14px 0px black;
}

.container .image {
  justify-content: center;
  margin: 5px auto;
}

.container img {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.container .details {
  padding: 15px;
  padding-left: 0;
  color: var(--main-color);
  font-size: 18px;
}

.table {
  background: linear-gradient(295deg, #9ebd13 0%, #008552 100%);
  padding: 20px;
  border-radius: 30px;
  color: var(--main-color);
  font-size: 18px;
  text-align: center;
  box-shadow: 0px 0px 14px 0px black;
}

.table td,
.table th {
  width: 150px;
  height: 20px;
  padding: 0.5rem;
}

.project h2 {
  margin-bottom: 60px;
}

.project h3 {
  background: linear-gradient(295deg, #9ebd13 0%, #008552 100%);
  padding: 20px;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.7);
}

.project h3:hover {
  background: -webkit-linear-gradient(
    45deg,
    rgb(94, 110, 11) 0%,
    rgb(13, 110, 13) 100%
  );
}

.project a {
  text-decoration: none;
  color: white;
  letter-spacing: 1px;
}

@media (max-width: 490px) {
  .project h3 {
    padding: 10px;
  }
}

@media (max-width: 876px) {
  .navigation {
    width: 75px;
    transition: all 0.3s ease-out;
  }

  .navigation span {
    display: none;
  }

  .navigation li {
    padding: 15px;
  }
}

@media (max-width: 656px) {
  .home h1 {
    font-size: 3rem;
  }

  .home h2 {
    font-size: 1rem;
  }

  .personal h2,
  .technical h2,
  .project h2 {
    font-size: 1.5rem;
    margin-bottom: 50px;
  }

  .container {
    max-width: 260px;
    grid-template-columns: none;
  }

  .container .image {
    justify-content: center;
    margin: 15px auto;
    margin-bottom: 0px;
  }

  .container img {
    width: 100px;
    height: 100px;
    padding: 0;
  }

  .container .details {
    padding: 15px;
    font-size: 16px;
  }

  .table {
    max-width: 260px;
    padding: 5px;
    font-size: 16px;
  }

  .table td,
  .table th {
    padding: 0;
  }

  .table th {
    padding-bottom: 10px;
  }
}
const section = document.querySelectorAll("section");
const main = document.querySelector(".main");

const spyScrolling = () => {
  const sections = document.querySelectorAll("section");

  main.onscroll = () => {
    const scrollPosition = main.scrollTop;
    for (let s in sections) {
      if (
        sections.hasOwnProperty(s) &&
        sections[s].offsetTop <= scrollPosition
      ) {
        const id = sections[s].id;
        document.querySelector(".active").classList.remove("active");
        document
          .querySelector(`a[href*="${id}"]`)
          .parentNode.classList.add("active");
      }
    }
  };
};

const makeNavLinksSmooth = () => {
  const navLinks = document.querySelectorAll(".navLink");

  for (let n in navLinks) {
    if (navLinks.hasOwnProperty(n)) {
      navLinks[n].addEventListener("click", e => {
        e.preventDefault();
        document.querySelector(navLinks[n].hash).scrollIntoView({
          behavior: "smooth"
        });
      });
    }
  }
};

makeNavLinksSmooth();
spyScrolling();
Run Pen

External CSS

  1. https://use.fontawesome.com/releases/v5.8.2/css/all.css

External JavaScript

  1. https://codepen.io/navin_moorthy/pen/aboQoVX.js