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

              
                
<header>
  <script id="fcc" src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>  
        <nav id="navbar">
            <div id="brandlogo">
            <img id= "logo" src="https://i.postimg.cc/fy9gsDnv/logo-transparent.png" alt="logo">
            <h2>web developer</h2>
        </div>
        <input type= "checkbox" id="btn-menu">
            <label  for="btn-menu"> <i class="fas fa-bars fa-2x"></i></label>
            <ul id="navlist"> 
                <li> <a href="#welcome-section">About me</a>
                </li>
                <li> <a href="#projects">Projects</a>
                </li>
                <li> <a href="#contact">Contact me</a>
                </li>
            </ul>
        </nav>
    </header>
    <section id="welcome-section">
        <img id="creatorweb" src="https://i.postimg.cc/htgZkkC9/webcreator.png" alt="me working">
        <h1>Looking for a better web design?</h1>
        <p id="beginner">The design of your dreams in your hand</p>
        <a  href="#projects" id="CTA">Take a look at my work</a>
        <i id="down-arrow" class="fas fa-chevron-down fa-2x"></i>
    </section>
 
    <section id="projects">
    
        <div id="cards">
        <div class="project-tile">
            <h2 class="numbah">1 </h2>
          <h4 class="hoverme">Put your mouse over here!</h4>
            <div class="contain">
            <div id="image1"></div>
            <h3>First web page</h3>
            <p>Did this one inspired by Will Smith</p>
            <a class="linkstopage" href="https://codepen.io/aiden22/pen/qBqmOje" target="_blank">Click <strong>here</strong> to see the tribute page</a>

            </div>
            </div>
        <div class="project-tile">
            <h2 class="numbah">2</h2>
            <h4 class="hoverme">or here!</h4>
            <div class="contain" id="contain2">
            <div id="image2"></div>
            <h3>First form page</h3>
            <p>Did this one inspired by my coffee</p>

            <a class="linkstopage" href="https://codepen.io/aiden22/pen/QWGaGWO" target="_blank">Click <strong>here</strong> to see the form page</a>

        </div>
        </div>
        <div class="project-tile">
            <h2 class="numbah">3</h2>
          <h4 class="hoverme">or here!</h4>
            <div class="contain" id="contain3">
            <div id="image3"></div>
            <h3>First landing page</h3>
            <p>Did this one inspired by my dog</p>
            <a  class="linkstopage" href="https://codepen.io/aiden22/pen/PobdOBP" target="_blank">Click <strong>here</strong> to see the tribute landing page</a>
            </div>
        </div>
        <div class="project-tile">
            <h2 class="numbah">4</h2>
          <h4 class="hoverme">or here!</h4>
            <div class="contain" id="contain4">
            <div id="image4"></div>
            <h3>First technical page</h3>
            <p>Did this one inspired by FCC</p>
            <a  class="linkstopage" href="https://codepen.io/aiden22/pen/QWGYRJQ" target="_blank">Click <strong>here</strong> to see the technical page</a>
        </div>
        </div>
      </div>
    </section>
    <section id="contact">
            
        <div id="contactways">
            <h3 id="coffeegrab">Lets take some <span style="color: orange;">coffee</span> together!</h3>
            <div id="contactme">
            <a class="contacticons" id="profile-link" href="https://codepen.io/aiden22/pen/PobdOBP" target="_blank">
            <i class="fab fa-codepen fa-3x"></i></a>
            <a target="_blank" class="contacticons" href="#">
                <i class="fab fa-facebook-f fa-3x"></i></a>
            <a target="_blank" class="contacticons" href="#">
                <i class="fab fa-twitter fa-3x"></i></a> 
            <a  target="_blank" class="contacticons" href="#">
                <i class="fas fa-at fa-3x"></i></a>
        </div>
       
        </div>
        <div id="image-contact">
            <img src="https://i.postimg.cc/8CZYBZmL/contactme.png" id="thinking" alt="me thinking">

        </div>


    </section>
    <footer>

    </footer>
              
            
!

CSS

              
                *{
    box-sizing: border-box;
    margin:0;   
    
}
html{
    scroll-behavior: smooth;
}
header{
    background-color:transparent;
    position:fixed;
    displaY:block;
    top:0;
    width:100vw;
    z-index:99999;

}

#navbar{
    display:flex; 
    justify-content: space-between;
    margin-right:1em;
    height:4em;
    background-color:#96BDD9;  
}
#logo{
    width:70px;
    height:auto;
}

h2{
    font-size: 1.3rem; 
   background: linear-gradient(to right, #199ed3 0%, #5f2c9e 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   padding: 0.5em 0em 0.5em 0.2em;
   font-family: 'Roboto', sans-serif;
   border-left:rgba(255, 255, 255, 0.356) solid 1px;
   text-transform: uppercase;
}
#brandlogo{
    display:Flex;
    justify-content: flex-start;
    align-items:center;
}

#navlist{
    display:flex;
    justify-content: flex-end;
    align-items: center;
}

#navlist li{
    list-style:none;
}
#navlist li a{
    text-decoration:none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    margin: 0em 1em 1em 1em;
    color:black;
    text-transform: uppercase;    
    font-weight:bold;
}
#navlist li a:hover{
  transition: 1s padding ease;
  padding:1em;
  background-color: #637081;
}
#btn-menu{
    display:none;
}
header label{
    display:none;
    padding:1em;
}
header label:hover{
    background-color:rgba(0,0,0,0.3);
    cursor:pointer;
}
#welcome-section{
    height:100vh;
    background: linear-gradient(to right,#43cea2, #185a9d);
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction:column;
    position:relative;
    z-index:-9;
    
 
    
}

#welcome-section::after{
    content: '';
    height:100%;
    width:100%;
    background:linear-gradient(to right,#CCF6Ff,#ff9eca);
    position:absolute;   
    clip-path: circle(30% at bottom left);
    z-index:-9;
}

/* #welcomeimg{
    border:1px solid lightblue;
    display:flex;
    justify-content: flex-end;
    height:70%;
    align-items: center;
    flex-direction:column;
} */
#creatorweb{
    display:block;
    width: 25rem;
    height:auto;
    
}
h1{ 
    /* display:inline; */
    font-size:3rem;
    font-family: 'Josefin Sans', sans-serif;
}
#beginner{
    font-family: 'Montserrat', sans-serif;
}
#CTA{
    padding:0.7em 2em;
    border-radius:1em;
    margin:1em;
    background-color:#cea043;
    text-decoration:none;
    color:white;
    font-family: 'Montserrat', sans-serif;
    font-size:1.5rem;

}
#down-arrow{
    position:absolute;
    bottom:3px;
    cursor:pointer;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-name: bounce;
    animation-timing-function: linear;
}
    @keyframes bounce {
        0%   { transform: translateY(0); }
        50%  { transform: translateY(-30px); }
        100% { transform: translateY(0); }
}
body{
    position:relative;
    z-index:-999;
}
#projects{
    height:100vh;
    display:Flex;
    justify-content:center;
    align-items:center;
    background: linear-gradient(to right,#43cea2, #185a9d);
    position:relative;
    z-index:-9;
    
    
}
#projects::before{
    content: '';
    height:100%;
    width:100%;
    background:linear-gradient(to left,#CCF6FF,#ffff3c);
    position:absolute;
    clip-path: circle(30% at right bottom);
    
}
#projects::after{
    content: '';
    height:100%;
    width:100%;
    background:linear-gradient(to right,#CCF6Ff,#ff9eca);
    position:absolute;   
    clip-path: circle(30% at top left);

    
}
#cards{
    display:flex;
    width:100%;
    height:60%;
    justify-content:space-between;
    z-index:9;
    flex-wrap:wrap;


}

.project-tile{
    display:flex;
    flex-direction:column;
    margin: 0 0.7em 0 0.7em;
    width:20%;
    background-color:rgba(255,255,255,0.1);
    border-radius:20px;
    box-shadow: 20px 20px 50px rgba(0,0,0, 0.5);
    backdrop-filter: blur(30px);
    position:relative;
    z-index:9;

  

}


.contain{
    height:100%;
    /* transform:translateY(500px); */
    opacity:0;
    display:flex;
    flex-direction:column; 
    justify-content: space-between;
}
#cards .project-tile:hover .contain{
    /* transform:translateY(0); */
    opacity:1;
    z-index:9;
    transition:1s ease;  
}

#image1{
    background-image: url(https://i.postimg.cc/XJhDtXhJ/FCC1-WILLSMITH.jpg);
    background-position: center;
    background-size:cover;
    background-repeat:no-repeat;
    height:70%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
#image2{
    background-image: url(https://i.postimg.cc/kM0pc6KY/FCC2-COFEE.jpg);
    background-position: center;
    background-size:cover;
    background-repeat:no-repeat;
    height:70%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;

}
#image3{
    background-image: url(https://i.postimg.cc/L6j009V9/FCC3-SAVINGTREES.jpg);
    background-position: center;
    background-size:cover;
    background-repeat:no-repeat;
    height:70%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
#image4{
    background-image: url(https://i.postimg.cc/2jbthFbB/FCC4-BASICJS.jpg);
    background-position: center;
    background-size:cover;
    background-repeat:no-repeat;
    height:70%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.numbah{
    position:absolute;
    font-size:5rem;
    top:30%;
    left:40%;
    font-family:'Josefin Sans', sans-serif;
    border:none;
}
.hoverme{
  position:absolute;
  top:20%;
  left:15%;
  font-family:'Josefin Sans', sans-serif;
  text-align: center;
 
}
@media (max-width:1300px){
    #cards{
        display:flex;
        flex-direction:column;
        justify-content:space-around;
        align-items:center;
        width:100%;
        
    }
    .project-tile{
        
        box-shadow:none;
        margin-bottom:1em; 
        height:40%;
        width:40%; 
        display:flex;
        flex-direction:column;
        margin:0;
      

    }
    .numbah{
        position:absolute;
        font-size:5rem;
       left:0;
        font-family:'Josefin Sans', sans-serif;
        border:none;
    }
}
/* .linkflex{
    border:1px solid red;
    display:flex;
    height:16.5%;

   
} */
.linkstopage{
    margin-top:1em;
    padding: 0.5em;
    border-radius:20px;
    text-align:center;
    color:black;
    width:100%;
    text-decoration: none;
    align-self:center;
    font-size:0.9rem;
    font-family: 'Roboto', sans-serif;  
    background-color:white;
    
    font-weight:500;
}
.project-tile .contain h3,p{
    margin-top:1em;
    font-family:'Josefin Sans', sans-serif;
    text-align:center;
}
#contact{
    position:relative;
    z-index:-9;
    background: linear-gradient(to right,#43cea2, #185a9d);


}
#contact::before{
    content: '';
    height:100%;
    width:100%;
    background:linear-gradient(to left,#CCF6FF,#ffff3c);
    position:absolute;
    clip-path: circle(30% at right top);
}

#coffeegrab{
    font-family:'Josefin Sans', sans-serif;
    font-size: 2.5rem;
    color:white;

}
#contactways{
    display:flex;

    height:50vh;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    position:relative;
    z-index:9999;
}
.contacticons{
    display:inline-block;
    margin:2em;
    color:white;
    transition: color,transform 0.5s ease;

    
}
.contacticons:hover{
    color:#185a9d;
    transform:translateY(-10px);

    
}
#image-contact{

    displaY:flex;
    height:50vh;
    justify-content: center;

}
#contactme{
    margin-top:5em;


}
@media (max-width:724px){
   
   h1{
    font-size:2.5rem;
    text-align:center;
    }
    #beginner{
        font-size:1rem;
    }
    #CTA{
    font-size:1.5rem;
    padding:0.5em;
    }
    #projects, #contact{

        height:100%;
    }
    #welcome-section::after{
        display:none;
        
    }
    #cards{
     
        display:flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .project-tile{
        margin:2em 0em 2em 0em;

        width:90%;
        height:300px;
      
    }
    #creatorweb{
        width:10em;
    }
    #projects::after{
        content: '';
        height:100%;
        width:100%;
        background:linear-gradient(to right,#CCF6Ff,#ff9eca);
        position:absolute;   
        clip-path: circle(30% at top left);
      display:none;
    }
    #projects::before{
        content: '';
        height:100%;
        width:100%;
        background:linear-gradient(to left,#CCF6FF,#ffff3c);
        position:absolute;   
        clip-path: circle(30% at bottom right);
      display:none;
    }
    .contain{
      
        background: url(https://i.postimg.cc/XJhDtXhJ/FCC1-WILLSMITH.jpg);
        background-position: center;
        background-size:cover;
        background-repeat:no-repeat;
        border-radius:20px;
        color:white;
        display:flex;
        justify-content: flex-end;
        position:relative;
      opacity:1;
      z-index:9;
    
        
    }
  .contain:hover{
    z-index:0;
  }
  
    .contain::after{
        content: '';
        height:100%;
        width:100%;
        background-color:rgba(0,0,0, 0.5);
        position:absolute;
        border-radius:20px;
        z-index:-9;
    }
    .contain > h3{

        font-size:2rem;
        margin-bottom:1em;
        text-transform: uppercase;
    }
    .contain > p{

        font-size:1.5rem;
        margin-bottom:2em;
    }
    .contain > a{
        font-size:1.5rem;
        
    }
  .project-tile > h4{
    display:none;
  }
    #image1{
        display:none;
    }
    #image2{
        display:none;
    }
    #image3{
        display:none;
    }
    #image4{
        display:none;
    }
    .linkstopage{
        font-size:0.9rem;
        padding:0.2em;
    }
    #contain2{
        background: url(https://i.postimg.cc/kM0pc6KY/FCC2-COFEE.jpg);
        background-position: center;
        background-size:cover;
        background-repeat:no-repeat;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        color:orange;
        font-weight:bold;
        display:flex;
        justify-content: flex-end;
    }
    #contain3{
        background: url(https://i.postimg.cc/L6j009V9/FCC3-SAVINGTREES.jpg);
        background-position: center;
        background-size:cover;
        background-repeat:no-repeat;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        color:white;
        font-weight:bold;
        display:flex;
        justify-content: flex-end;
    }
    #contain4{
        background: url(https://i.postimg.cc/2jbthFbB/FCC4-BASICJS.jpg);
        background-position: center;
        background-size:cover;
        background-repeat:no-repeat;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        color:orange;
        font-weight:bold;
        display:flex;
        justify-content: flex-end;
    }
    #coffeegrab{
        text-align: center;
        font-size: 2.5rem;
    }
    #navbar{
        display:flex;
        width:100%;
    
    }
    #contact::before{
        display:none;
        
    }

   header label{
        display:block;
        position:relative;
    
    }
    #navlist{
        position:absolute;
        display:flex;
        flex-direction:column;
      justify-content: space-between;
        bottom:-240%;
        right:200%;
        padding:1em 1em 1em 0;
        background-color:rgba(0, 0, 0, 0.3);
      height:150px;
   
        transition:right 0.5s ease;
        overflow:hidden;
     
    }
    #btn-menu:checked ~ #navlist{
        right:0%;
     

    }
  #navlist li a{

    font-size:1.5rem;
    margin-bottom:1em;
    color:white;
    padding:0em;
    
  }
  #navlist li a:hover{
    transition:color 1s ease; 
    padding:0;
    background:none;
    color:#7C98B3;


  }
}

#fcc{
  position:relative;
  z-index:9999;
}
              
            
!

JS

              
                
              
            
!
999px

Console