Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <a id="home-nav"> </a>

<!-- Remove the div container and id sig to get to pass code camp --> 
 <div class="container">

 <p id="signature"> Ashton Bennett<p>
       
  <nav id="navbar" class="nav">
  
  <ul>
 
  <li><a href="#home-nav"> Home</a></li>

 <li><a href="#project-nav" class="section-headers"> Portfolio</a></li>
  
 <li><a href="#contact-nav" id="contact-color"> Contact</a></li>
     
  </ul>

 </nav>

</div>



  
<section id="welcome-section">

  <h1> 
    Ashton Bennett<br>
    
  </h1>
  <p id="subhead"> 
    Web Developer
  </p>
  
</section>

<a id="project-nav" > </a>

<section id="projects">
  <h2 class="section-headers1">
    Portfolio
  </h2>
  
  <div class="card" id="tribute-card">
      
    <div class="containertitle">
      
      <a  href="https://codepen.io/Ashtonbennett801/full/rNpjKrK"
    target= "_blank"
    class="project-tile">
        
      <h4>Tribute page</h4>
        
   <img class="project-image" src="https://codepen.io/Ashtonbennett801/pen/rNpjKrK/image/small.png" alt="tribute page">
  
      </a>
  
  </div>
</div>
  
    <br>
  
  <div class="card">
    <div class="containertitle">
    
    
    <a href="https://codepen.io/Ashtonbennett801/full/MWrJXXr"
    target= "_blank"
    class="project-tile">
       <h4>Onine Survey</h4>
   <img class="project-image"
  src="https://codepen.io/Ashtonbennett801/pen/MWrJXXr/image/small.png" alt="survey">
    </a>
    </div>
    </div> 
  
  <br>
  
    <div class="card">
       
      <div class="containertitle">
        
  
      <a href="https://codepen.io/Ashtonbennett801/full/MWrJXVr"
    target= "_blank"
    class="project-tile">
        <h4>Technical Information Site</h4>
   <img class="project-image"
  src="https://codepen.io/Ashtonbennett801/pen/MWrJXVr/image/small.png" alt="Technical page"> 
      </a>
      </div>
     </div> 
    
  <br>
  
      <div class="card">
        
    <div class="containertitle">

        <a href="https://codepen.io/Ashtonbennett801/full/PoEWaeZ"
    target= "_blank"
    class="project-tile">
          
          <h4>Product Landing Page</h4>
          
   <img 
        class="project-image"    src="https://codepen.io/Ashtonbennett801/pen/PoEWaeZ/image/small.png" 
        alt="Product landing page">
 
        </a>
        </div>
      </div>  
 </section>
        
<br>

<a id="contact-nav"></a>

<section id="contact">
<h3 class="section-headers1">
       Contact
</h3>
 <ul id="contact-list1">
 <div>
  <li class="icons">
  <a href="https://github.com/Ashton-Bennett" 
  class="profile-link"
     target= "_blank">
   <i class="fa-brands fa-github fa-5x "></i>
 </a> 
 </li>
 </div>
    
 <div>
  <li class="icons">
  <a href="https://www.freecodecamp.org/Ashton-Bennett" 
  class="profile-link"
     target= "_blank"
     id="profile-link">
    <i class="fa-brands fa-free-code-camp fa-5x"></i>
 </a> 
 </li>
 </div>
   
    <div>
  <li class="icons">
  <a href="https://www.linkedin.com/in/ashton-bennett-76876a207/"
     class="profile-link"
     target= "_blank">
    <i class="fa-brands fa-linkedin fa-5x"></i>
 </a> 
 </li>
 </div>
   
</section>      

<footer>
  <p id= "footerC"> &copy2022 Ashton Bennett </p>
  </footer>
  
</body>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Roboto:400,400i,700");

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@446;500&family=Kanit:ital,wght@1,200&display=swap');

@media (max-width: 700px) {
  .nav li{
    font-size:16px;
    margin-left: 1rem;
  }
  
}

@media (min-width: 700px) {
  h4{
    font-size:30px;
  }
  
}
@media (min-width: 1000px) {
  h4{
    font-size:50px;
  }
  
}

@media (min-width: 1200px) {
  h4{font-size:60px;}
}

@media (min-width: 1600px) {
  h4{
    font-size:80px;}   
}


html{
  color:black;
  font-size: 16px;
  font-family:Roboto, san-serif;
  background-image: linear-gradient(#18292A, #7F8278,#B0C7C0);
  scroll-behavior: smooth;

}

/*-----------------------
  header/nav bar section starts
-----------------------*/

.container {
  width: 100%;
  position:fixed;
  left:0;
  top:0;
  background: white;
  height:4rem; 
  z-index: 900;
}

#signature{
  float: left;
  padding: 5px; 
  font-size: 1.5rem;
  font-family: 'Dancing Script', cursive;

}
#navbar{
  float:right;
  margin: 0;
  padding: 0 100px 0 0;
  list-style:none;
  
}
nav ul{
  margin: 0;
  padding:0;
  list-style:none;
  justify-content: center;
  align-items: center;
}
nav li {
  display: inline-block;
  margin-left: 3rem;
  padding-top: 1.2rem;
  font-size: 1.2rem;
  position: relative;
 
}

nav a{
  color: black;
  text-decoration:none;
  text-transform: uppercase;
  font-weight: 500;
  
}
nav a:hover{
  color:black;
  opacity: 50%;
}
nav a::before{
  content:"";
  display:block;
  height: 5px;
  width: 100%;
  background-color: #444;
  position: absolute;
  top:0;
  width: 0%;
  transition:all ease-in-out 250ms;
}

nav a:hover::before{
  width:100%;
}

/*-----------------------
  HOME section starts
-----------------------*/

#welcome-section{
  background-size:cover;
  background-position: absolute;
  left:0;
  right:0;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
 background-image: url(https://images.unsplash.com/photo-1432821579285-1b649e5b1ce3?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTY0ODMyMzQwNA&ixlib=rb-1.2.1&q=85);
  
  
}

h1{
font-size: 6em;
  text-align:center;
  margin-bottom: 0px;
  margin-top: -50px;
  padding: 0px 0px 5px 0px;
  color:white;
  -webkit-text-stroke-width: .5px;
    -webkit-text-stroke-color: #C5D9D2;
 
}

h1::after{
  background-color: white; 
    bottom: 5;
    content: '';
    display: block;
    height: 1.2px;
    left: 50%;
    position: absolute;
    transform: translate(-50%,0);
    width: 550px;
}
#subhead{
  font-size: 2.5em;
  text-align:center;
  margin-top: 0px;
  font-weight:500;
  padding: 10px;
  -webkit-text-stroke-width: .2px;
  -webkit-text-stroke-color: #C5D9D2;
  color:white;
}
/*-----------------------
 Portfolio section starts
-----------------------*/
.section-headers1{
  color:black;
  margin-top: 100px;
  text-align:center;
  -webkit-text-stroke-width: .2px;
   -webkit-text-stroke-color: black;
  font-size:5rem;
   display:flex;
  flex-direction: column;
  justify-content: center;
  
}
.section-headers1::after{
  background-color: black; 
    bottom: 5;
    content: '';
    display: block;
    height: 1.2px;
    left: 50%;
    position: relative;
    top: .8rem;
    transform: translate(-50%,0);
    width: 350px;
}
#projects{
  display: flex;
  place-items:center;
  flex-direction:column;
  background: #E9E9E9;
  width: 100%;
}
.card{
 box-shadow: 20px 20px 40px rgba(0,0,0, 0.2) ,0 10px 10px rgba(0,0,0,0.23);
 width: 80%;  
 border: 2px solid black;
 margin: 0px 0px 60px 0px;
  letter-spacing: 2px;
  background:/* Gradient in Hex */
linear-gradient(to right, #B0C7C1 0%, 35.671642422676086%, #7D8075 71.34328484535217%, 85.67164242267609%, #192B2B 100%);

/* Gradient in RGBA */
linear-gradient(to right, rgba(176, 199, 193, 1) 0%, 35.671642422676086%, rgba(125, 128, 117, 1) 71.34328484535217%, 85.67164242267609%, rgba(25, 43, 43, 1) 100%);;
}

.project-image{
  width:100%;
  border-top: 2px solid black;
 margin: 0px 0px -5px 0px;
  opacity:0.5;
transition: 1s ease;
}

.project-image:hover{
  opacity:1;
transition: .75s ease;
}

.containertitle:hover{
 box-shadow: 40px 40px 80px rgba(0,0,0, 0.2) ,0 20px 20px rgba(0,0,0,0.23);

}

h4{
  color:black;
  font-size: 1.5;
  text-align:center;
  -webkit-text-stroke-width: .6px;
  -webkit-text-stroke-color: black;
  postition:absolue;
  
}

.project-tile{
  text-decoration:none;
}

/*-----------------------
 Contact section starts
-----------------------*/

.profile-link{
  text-decoration:none;
  color:white;
  
  
}
#contact-list1{
  list-style:none;
  display:flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: -35px 2px 2px 2px;
}
.icons{
  padding: 0px 50px 0px 2px;
  margin: 0px 20px 0px 0px;
}
.icons:hover i{
  color:#36403C;
}
footer{
  background:#36403C;
  color:white;
  margin: 50px 2px 2px 2px;
  height: 35px;
  width:100%;
   display:flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  opacity:80%;
}


              
            
!

JS

              
                
              
            
!
999px

Console