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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<!--Andrej Code-->
<link
  rel="stylesheet"
  href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
  integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay"
  crossorigin="anonymous"
/>
<link
  href="https://fonts.googleapis.com/css?family=Poppins:200i,300,400&display=swap"
  rel="stylesheet"
/>
<link
  href="https://fonts.googleapis.com/css?family=Raleway:700&display=swap"
  rel="stylesheet"
/>

<nav id="navbar" class="nav">
  <ul class="nav-list">
    <li>
      <a href="#andrej">About</a>
    </li>
    <li>
      <a href="#projects">Work</a>
    </li>
    <li>
      <a href="#contact">Contact</a>
    </li>
  </ul>
 </nav>
<section id="welcome-section" class="welcome-section">
  
  <div id='image'>
    <div class="holder">
  <div class="ellipse"></div>
  <div class="ellipse ellipse2"></div>
  </div>
    <img src='https://i.postimg.cc/9f2grSfw/IMG-4634.png' id='andrej-image'/>
  </div>
  <div id='border'>
  <h1 id="hey">Welcome</h1>
  </div>
  <p id="andrej"> My Name Is Andrej Oljaca I am studying Computer Science at SNHU, as well as self studying.  I am passionate in learning code.</p>
</section>
<section id="projects" class="project-section">
  <h2 class="projects-section-header">These are some of my projects</h2>
  <div class="projects-grid">
  <div id="test"><h2 class='short'>Tribute Page</h2>
  <a href="https://codepen.io/drdre5/full/OJyzZBW" target="_blank">
  <img class="project-tile" src="https://i.postimg.cc/vH7khytk/Image-2.jpg" alt="tribute page">
    </a></div>
  <div><h2 class='short'>Survey Form</h2>
  <a href="https://codepen.io/drdre5/full/yLYKxGX" target="_blank">
  <img class= "project-tile" id="survey-form" src="https://i.postimg.cc/TYyF8mG8/Image-3.jpg" alt="survey form">
    </a></div>
  <div><h2 class='long'>Product Landing Page</h2>
  <a href="https://codepen.io/drdre5/full/LYpdMbm" target="_blank">
  <img class= "project-tile" id="landing-page" src="https://i.postimg.cc/xdDhgzGn/l.jpg" alt="landing page">
    </a></div>
  <div><h2 class='super-long'>Technical Documentation</h2>
  <a href="https://codepen.io/drdre5/full/OJyEyYw" target="_blank">
  <img class= "project-tile" id="technical-documentation" src="https://i.postimg.cc/PJ0njFD8/f.jpg" alt="technical documentation">
    </a></div>
  </div>
  <header>
  <a id="white"
    href="https://codepen.io/dashboard/"
    class="btn btn-show-all"
    target="_blank">Show all</a></header>
</section>
<section id="contact" class="contact-section">
  <div class="contact-section-header">
    <h2 id="contacts">Feel free to contact me</h2>
  </div>
  <div class="contact-links">
    <a href="andrejjj222@gmail.com" class="btn contact-details"><i class="fas fa-at"></i>Email</a>
    <a
      id="profile-link"
      href="https://www.freecodecamp.org/forum/u/andrejjj222/summary"
      target="_blank"
      class="btn contact-details"
      >Free Code Camp</a
    >
  </div>
</section>
              
            
!

CSS

              
                
:root {
  --main-white: #f0f0f0;
  --main-red: #be3144;
  --main-blue: #45567d;
  --main-gray: #303841;
}

body {
overflow-x: hidden;
}

* {
  padding: 0;
  margin: 0;
}

.welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: red;
  font-size: 1rem;
  margin-top: 70px;
}

#hey {
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 2rem;
  margin: 0 auto
}

#andrej {
  margin-top: -105px;
  padding-top: 170px;
  margin-right: 400px;
  margin-left: 400px;
  margin-bottom: 70px;
  text-align: center;
  color: white;
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
}

#andrej-image {
  position: relative;
  height: 200px;
  margin-top: 40px;
  margin-bottom: 30px;
}

#navbar {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: blue;
  justify-content: flex-end;
  z-index: 1
}

#border {
  display: flex;
  width: 500px;
  border: 5px solid white;
  border-radius: 50%
}

.nav-list {
  display: flex;
  margin-right: 7rem;
  list-style: none;
}

.nav-list a {
  display: block;
  font-size: 2.2rem;
  padding: 2rem;
  color: white;
}

#white
 {
  text-decoration: none;
  color: var(--main-white);
}

.project-tile {
  width: 250px;
  height: 200px;
  border: solid red 5px;
  float: left
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 3fr));
  grid-gap: 6rem;
  white-space: nowrap;
  overflow: hidden;
}

.btn-show-all {
  font-size: 1.63rem;
  background: red;
  transition: background 0.3s ease-out;
  padding: 10px;
  text-aling: center;
}

.btn:hover {
  background: blue;
}

header {
  padding: 7rem;
  margin-right: auto;
  margin-left: auto;
  border-radius: 2px;
  text-align: center;
}

.btn {
  padding: 1rem;
}

.project-section {
  padding: 2% 1%;
}
.project-section h2 {
  text-align: center;
}
.project-section img{
  margin-top: 10px
}
.projects-section-header {
  max-width: 450px;
  margin: 0 auto 3rem auto;
  text-align: center;
  border-bottom: 0.2rem solid red;
  font-size: 2rem;
  background: red;
  color: pink;
}

.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 8vh;
  font-size: 1.25rem;
}

.btn {
  text-decoration: none;
  color: red;
}

@media (max-width: 300.625em) {
  #andrej {
    padding-left: 2rem;
    padding-right: 2rem;
  }

i {
  margin-right: .25rem;
}

#contacts {
  padding-bottom: 1rem;
}

  .holder {
  /* Clip edges, as some of the lines don't terminate nicely. */
  overflow: hidden;
  position: absolute;
  width: 2000px; 
  height: 50px;
  margin-top: 120px;
  z-index: 0;
  left: -10px;

}

.ellipse {
  position: absolute;
  background: radial-gradient(ellipse, transparent, transparent 7px, white 7px, white 10px, transparent 11px);
  background-size: 36px 40px;
  width: 5000px;
  height: 20px;
}

.ellipse2 {
  top: 20px;
  left: 18px;
  background-position: 0px -20px;
}

  img {
    border-radius: 15%
  }
  
  @media only screen and (max-width: 600px) {
    .nav-list a {
  font-size: 1.5rem;
}
    .nav-list {
  margin-right: 2rem;
}
    #andrej {
      width: 300px
    }
    .projects-grid {
      display: flex; 
      flex-direction: column;
      margin-left: 20%;
    }
    .projects-grid div:not(:first-child) {
    margin-top: 25px
}
    .short{
      margin-left: -90px
    }
    .super-long{
      margin-left: -70px
    }
    .long {
      margin-left: -83px
    } 
    #border {
      width: 350px
    }
  }


 

              
            
!

JS

              
                
              
            
!
999px

Console