Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <nav id="navbar">
  <a href="#welcome-section" class="logo-link"><img class="logo-img" src="https://i.postimg.cc/G23xkNwY/Artboard1-3x.png" width="160" height="29" alt="logo"></a>
<button class="dropdown-icon" onclick="dropdownMenu()" id="dropX">&#9776;</button>
  <ul class="navbar_menu" id="dropdownClick">
     
    <li class="link-item"><a class="nav-link" href="#services">Services</a></li>
    <li class="link-item"><a class="nav-link" href="#projects">Projects</a></li>
    <li class="link-item"><a class="nav-link" href="#contact">Contacts</a></li>
  </ul>
  
</nav>
<section id="welcome-section">
  <div class="writer-container">
    <div class="writer">
      <h1>Hi there! My name is David</h1>
    </div>
    <div class="break"></div>
    <div class="focus-in-contract-bck ">
      <p>Professional Websites Designer and Developer </p>
      <p>for your business</p>
    </div>
    <div class="break"></div>
    <div class="gallery-button">
      <a href="#contact" class="link-button button-fadein">Get in touch</a>
    </div>
    <div class="break"></div>

  </div>
</section>
<div class="wrapper">
  <section id="services">
    <h2>Services</h2>
    <div class="container align-container">

      <div class="my-services">
        <div class="services-img">
          <img src="https://i.postimg.cc/zvPfdxtV/Artboard1-3x-2.png" alt="development">
        </div>
        <h3>Development</h3>
        <p>The building and maintenance of websites; it's the work that happens behind the scenes to make a website look great. </p>

      </div>
      <div class="my-services">
        <div class="services-img">
          <img src="https://i.postimg.cc/26k8rsg1/Artboard1-3x-3.png" alt="design">
        </div>
        <h3>Design</h3>
        <p>Creating the design and layout of a website. It and can mean working on a brand new website or updating an already existing site. </p>
      </div>

      <div class="my-services">
        <div class="services-img">
          <img src="https://i.postimg.cc/htQXYqqg/Artboard1-3x.png" alt="">
        </div>
        <h3>Optimization</h3>
        <p>The process of using tools, advanced strategies, and experiments to improve the performance of your website </p>
      </div>
    </div>

  </section>
  <section id="projects">
    <h2>Projects</h2>
    <div class="container project-tile right-side">

      <div class="col-3 article">
        <h3>Product Landing Page</h3>
        <p>Responsive Web development services landing page.</p>
        <p>Used: HTML, CSS, JS.</p>

        <a href="https://codepen.io/deividas-enteris/full/MWmRGXb" target="_blank" class="link-button"> See more &#8594;</a>

      </div>
      <div class="col-3 project-img">
        <img src="https://i.postimg.cc/FzW6MPBS/landingpage.png" alt="">
      </div>
    </div>

    <div class="container project-tile left-side">

      <div class="col-3 article">
        <h3>PS5 Technical Documentation</h3>
        <p>Tehcnical documentation page for PS5 gaming console. Describing device perfomance and features in a nice layout.</p>
        <p>Used: HTML, CSS, JS.</p>

        <a href="https://codepen.io/deividas-enteris/full/MWoZQNo" target="_blank" class="link-button">See more &#8594;</a>

      </div>
      <div class="col-3 project-img">
        <img src="https://i.postimg.cc/dQpLFqch/ps5.png" alt="">
      </div>
    </div>
    <div class="container project-tile right-side">

      <div class="col-3 article">
        <h3>Survey Form</h3>
        <p>Simple survey form for personal web development bootcamp. Introduced me to html forms and inputs</p>
        <p>Used: HTML,CSS.</p>

        <a href="https://codepen.io/deividas-enteris/full/JjNVrbe" target="_blank" class="link-button">See more &#8594;</a>

      </div>
      <div class="col-3 project-img">

        <img src="https://i.postimg.cc/YqyPLttm/suvery.png" alt="">

      </div>
    </div>

    <div class="container project-tile left-side">

      <div class="col-3 article">
        <h3>Tribute Page</h3>
        <p>My first project made for basketball player's Wilt Chambarlain tribute with his biography and NBA achievements.</p>
        <p>Used: HTML,CSS.</p>

        <a href="https://codepen.io/deividas-enteris/full/MWmReaZ" target="_blank" class="link-button">See more &#8594;</a>

      </div>
      <div class="col-3 project-img">
        <img src="https://i.postimg.cc/QCfLXNHH/tribute.png" alt="">
      </div>
    </div>

  </section>
  <section id="contact">
    <h2>Contacts</h2>
    <div class="container">
      <div class="col-3 flex-align">
        <h3>Always ready for help</h3>
        <ul class="contact-info">
          <li><b>Email</b>: Dsdevelopment@gmail.com</li>
          <li><b>Phone</b>: 0XXXXXXXXXXX</li>
          <li><b>Address</b>: 8 XXXXX,XXXXXXX,XX2222</li>

        </ul>

        
      </div>
      <div class="col-3 flex-align">
        <form id="contact-form">
          <div class="form-group">
            <label for="email">Email:</label>
            <input type="email" name="email" id="email" class="input-field" minlength="5" maxlength="50" placeholder="Write your email here" required />
          </div>

          <div class="form-group">
             <label for="comments">Comment:</label>
            <textarea id="comments" class="input-field" name="comment" placeholder="Write your comment here"></textarea>
          </div>
          <div class="form-group">
            <button type="submit" id="submit" class="submit-button">
              Send &#10148;
            </button>
          </div>
        </form>

      </div>
      
    </div>
<div class="social-media">
          <h3>Find me on:</h3>
          <ul>
            <li><a href="https://www.facebook.com" target="_blank"><img src="https://i.postimg.cc/t44Dqryv/Artboard1-3x.png" width="50" height="50" alt="visit Facebook.com personal page"></a></li>
            <li><a href="https://www.instagram.com" target="_blank"><img src="https://i.postimg.cc/9FWYbx4X/Artboard1-3x-2.png" width="50" height="50" alt="visit Instagram.com account"></a></li>
            <li><a href="https://www.freecodecamp.org/fcc9674052d-a861-44da-b6c1-d35c29dfed24" id="profile-link" target="_blank"><img src="https://i.postimg.cc/xTty4KHv/Artboard1-3x-3.png" width="50" height="50" alt="visit FreeCodeCamp.org profile"></a></li>
          </ul>
        </div>
  </section>
</div>
<footer class="page-footer">
  <p>THIS PAGE WAS MADE FOR FREECODECAMP 2021 DeiSen</p>
</footer>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

* {
  margin: 0;
  box-sizing: border-box;
  user-select:none;
}
html {
  font-size: 62.5%; /*Setting 10px = 1rem*/
  font-family: "Poppins", cursive;
  scroll-behavior: smooth;
}
body {
  color: #00237c;
}
.wrapper {
  width: 100%;
  padding: 5rem 9rem 0 9rem;
}
section {
  padding: 2rem;
}
/*DEFAULTS*/
h1 {
  color: white;
  font-family: "Poppins", cursive;
  font-size: 7.2rem;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  margin: 9rem 0 2rem 0;
  letter-spacing: 0.1rem;
  animation: typing 1s steps(30, end);
}
h2 {
  margin-top: 6rem;
  text-align: center;
  font-size: 4.2rem;
}
h3 {
  font-size: 3.2rem;
  margin: 1rem 0 1rem 0;
}

p {
  margin: 0.5rem;
  font-size: 1.6rem;
}
::placeholder {
  color:#00237C;
  font-size:1.6rem;
  opacity:0.6;
}
.writer-container {
  display: flex;
  width: 100%;
  margin: auto 0 auto 0;
  justify-content: left;
  flex-wrap: wrap;
}
.container {
  padding: 1rem;
  margin-top: 10rem;
  display: flex;
  width: 100%;
  height: auto;
  flex-wrap: wrap;
  justify-content: center;
}
.col-1 {
  width: 25%;
}
.col-2 {
  width: 33.333%;
}
.col-3 {
  width: 50%;
}
.col-4 {
  width: 66.667%;
}
.col-5 {
  width: 75%;
}
/*NAVIGATION BAR*/
#navbar {
  width: 100%;
  height: 5rem;
  position: sticky;
  display: block;
  top: 0;
  bottom: 0;
  margin: 0;
  padding: 1rem 9rem 1rem 9rem;
  text-align: right;
  background-color: #3077ed;
  z-index: 1;
}
.navbar_menu {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar_menu li.link-item {
  display: inline;
  margin-left: 3rem;
}
.navbar_menu li.link-item a {
  text-decoration: none;
  font-size: 1.6rem;
  color: white;
}
.dropdown-icon {
  font-size: 2rem;
  height: 100%;
  width:auto;
  border:none;
  color:white;
  text-decoration: none;
  background-color: #3077ed;
  display: none;
  z-index:2;
}

/*LOGO IMAGE*/
.logo-img {
  display: block;
  margin: 0;
  float: left;
}
/*Button Fade animation*/
.button-fadein {
  opacity: 0;
  animation: buttonfade 1s forwards;
  animation-delay: 1.5s;

  transition: all 0.3s ease 0s;
}
@keyframes buttonfade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/*Buttons visual change while hovering*/
.link-button:hover, .link-button:focus,
 .submit-button:hover,.submit-button:focus {
  background-color: white;
  border: 2px solid #3077ed;
  color: #3077ed;
  cursor: pointer;
}
/*Main screen*/
#welcome-section {
  width: 100%;
  height: 100vh;
  background-image: url("https://i.postimg.cc/7L2VH71G/Bg2.jpg");
  background-repeat: no-repeat;
  background-size: cover;

  overflow-x: hidden;
  padding: 3rem 9rem 0 9rem;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* ----------------------------------------------
 * Generated by Animista on 2021-12-7 11:34:33
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation focus-in-contract-bck
 * ----------------------------------------
 */
.focus-in-contract-bck {
  -webkit-animation: focus-in-contract-bck 1s
    cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s both;
  animation: focus-in-contract-bck 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s
    both;
}
@-webkit-keyframes focus-in-contract-bck {
  0% {
    letter-spacing: 1em;
    -webkit-transform: translateZ(300px);
    transform: translateZ(300px);
    -webkit-filter: blur(12px);
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(12px);
    transform: translateZ(12px);
    -webkit-filter: blur(0);
    filter: blur(0);
    opacity: 1;
  }
}
@keyframes focus-in-contract-bck {
  0% {
    letter-spacing: 1em;
    -webkit-transform: translateZ(300px);
    transform: translateZ(300px);
    -webkit-filter: blur(12px);
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(12px);
    transform: translateZ(12px);
    -webkit-filter: blur(0);
    filter: blur(0);
    opacity: 1;
  }
}

/*------------------------------------------*/
.focus-in-contract-bck p {
  font-size: 3.2rem;
  margin: 0;
  color: white;
}
/*Break line in flex container*/
.break {
  flex-basis: 100%;
  height: 0;
}
/*MY SERVICES INFO CARDS*/
.align-container {
  justify-content: space-between;
}
.my-services {
  height: 450px;
  width: 30%;

  padding: 5rem 2rem 0 2rem;
  text-align: center;
  box-shadow: 0px 8px 15px #e7e8f3;
  border-radius: 10px;
  background-color: white;
}
.my-services:hover {
  transform: scale(1.1);
  transition: 0.5s;
}
.services-img {
  margin: 1rem auto 2rem auto;
  border-radius: 50%;
}
.services-img img {
  height: 166px;
  width: 166px;
}

/*PROJECTS SECTION*/
.project-tile {
  height: 400px;
}
.article.right-side {
  display: block;
  padding-right: 4rem;
}
.article.left-side {
  padding-left: 4rem;
}
.article p {
  margin-top: 2rem;
  font-size: 1.6em;
}
.right-side {
  flex-flow: row;
  text-align: left;
}
.left-side {
  flex-flow: row-reverse;
  text-align: right;
}

.left-side .article .link-button {
  float: right;
}
.right-side .article .link-button {
  float: left;
}

.link-button,
.submit-button {
  display: block;
  border: none;
  margin-top: 4rem;
  font-weight: bolder;
  letter-spacing: 0.1rem;
  width: 22rem;
  height: 5rem;
  padding: 1.2rem 3rem 1.2rem 3rem;
  text-decoration: none;
  font-size: 1.6rem;
  color: white;
  border-radius: 35px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  background-color: #3077ed;
  font-family: "Poppins", sans-serif;
  text-align: center;
}
.project-img {
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  display: block;

  height: auto;
}

.project-img img {
  height: 100%;
  width: 100%;
}
/*CONTACT FORM*/
.form-group {
  margin: 3rem 0 3rem 0;
}

.input-field {
  display: block;
  width: 100%;
  font-family: "Poppins", cursive;
  font-size: 1.6rem;
  color: #00237c;
  height: 4rem;
  margin: 0 auto 0 auto;
  padding: 0.2rem 0.5rem 0.2rem 0.5rem;
  border-radius: 5px;
  border: 1px solid #3077ed;
  box-shadow: 0 2px 10px 0 rgba(33, 34, 36, 0.3);
}
#comments {
  height: 16rem;
}
 label{
    margin:0.5rem;
    font-size:1.6rem;
  }
.contact-info {
  margin: 0;
  padding: 0;
  font-size: 1.6rem;
  text-align: left;
  line-height: 3rem;
  list-style: none;
}
/*SOCIAL MEDIA ICONS*/
.social-media {
  display:block;
  
  padding: 0;
  margin: auto;
  width: 320px;
  text-align:center;
}
.social-media ul {
  padding: 0;
  margin-top: 2rem;
  display: block;
  list-style: none;
}
.social-media ul li {
  display: inline;
  margin: 1rem;
}
.social-media ul li:first-child {
  margin-left: 0;
}
.social-media ul li a {
  text-decoration: none;
}
.media-icon {
  height: 50px;
  width: 50px;
}
/*FOOTER*/
.page-footer {
  min-height: 5rem;
  margin: 0;
  padding: 1rem;
  text-align: center;
  background-color: #3077ed;
  box-shadow: 0 2px 10px 0 rgba(33, 34, 36, 0.3);
  color: white;
}
.page-footer p {
  margin: auto;
}
.flex-align {
  display: flex;
  flex-flow: column nowrap;
}
/*TABLET*/
@media screen and (max-width: 1080px) {
  .col-2 {
    width: 100%;
  }
  h1 {
    font-size: 5.2rem;
  }
  .focus-in-contract-bck p {
    font-size: 2.6rem;
  }
  .my-services {
    width: 100%;
    margin-bottom: 1rem;
    pointer-events: none;
  }
  .project-tile {
    height: auto;
  }
  .right-side,
  .left-side {
    flex-flow: column-reverse;
    justify-content: center;
  }
  .article,
  .project-img {
    margin-top: 1rem;
    padding: 0;
    width: 100%;
    text-align: center;
  }
  .left-side .article .link-button,
  .right-side .article .link-button,
  .submit-button {
    float: none;
    margin-right: auto;
    margin-left: auto;
  }
}

/*Phone*/
@media screen and (max-width: 800px) {
  #navbar,
  .wrapper {
    padding: 1rem;
  }
  h1 {
    font-size: 4.2rem;
    white-space: pre-wrap;
  }
  h2 {
    font-size: 3.4em;
  }
  h3 {
    font-size: 2.6rem;
  }

  p {
    font-size: 1.6rem;
  }
  .writer-container {
    text-align: center;
    justify-content: center;
  }
  .focus-in-contract-bck p {
    display: inline;
  }
   .dropdown-icon {
    display: block;
    float: right;
     position: absolute;
    top: 0;
    right: 0;
  }
  ul.navbar_menu li.link-item {
    display: none;
  }
  ul.navbar_menu.responsive {
    position: relative;
    background-color: #3077ed;
  }
 

  ul.navbar_menu.responsive li.link-item {
    display: inline;

    float: none;
  }
  .logo-img {
    clear: right;
  }
  .logo-link{
     display: block;
    width: fit-content;
    height: 29px;
  }
  ul.navbar_menu.responsive li a {
    display: block;
    height: 4rem;
    text-align: left;
    color: white;
    margin-top:auto;
    margin-bottom:auto;
  }
  ul.navbar_menu.responsive li.link-item a {
    margin: auto;
    padding: 0.5rem 2rem 0.5rem 2rem;
  }
  ul.navbar_menu.responsive li.link-item a:hover,ul.navbar_menu.responsive li.link-item a:focus {
    background-color: white;
    color: #00237c;
  }
  .container {
    margin-top: 6rem;
  }
  #welcome-section {
    padding: 3rem 2rem 0 2rem;
  }
  .focus-in-contract-bck,
  .button-fadein,
  h1 {
    animation: none;
    opacity: 1;
  }
  .my-services {
    margin-left: 0;
    margin-right: 0;
  }
  .services-img img {
    height: 135px;
    width: 180px;
  }
 
  #contact .container {
    flex-flow: column-reverse;
    align-items: center;
  }
  .flex-align,
  .social-media {
    text-align: center;
    width: 100%;
  }
}

              
            
!

JS

              
                function dropdownMenu() {
  var x = document.getElementById("dropdownClick");
  if (x.className === "navbar_menu") {
    x.className += " responsive";
    document.getElementById("dropX").innerHTML = "&#10006";
    var elements = document.getElementsByClassName("nav-link");
    for (var i = 0; i < elements.length; i++) {
      elements[i].addEventListener("click", closeNav);
    }
  } else {
    x.className = "navbar_menu";
    document.getElementById("dropX").innerHTML = "&#9776";
  }
}
function closeNav() {
  var x = document.getElementById("dropdownClick");
  x.className = "navbar_menu";
  document.getElementById("dropX").innerHTML = "&#9776";
  elements = document.getElementsByClassName("nav-link");

  for (var i = 0; i < elements.length; i++) {
    elements[i].removeEventListener("click", closeNav);
  }
}

              
            
!
999px

Console