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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<head>
<link href="https://fonts.googleapis.com/css?family=Girassol|Dosis|Antonio" rel="stylesheet">
</head>

<body id="body">
  
  <!-- Navigation bar -->
  
<navbar id="navbar" class="navbar">
  <ul class="nav-list">
    <li>
      <a href="#welcome-section" id="navbar-li" class="navbar-li"> About </a>
        </li>
    <li>
      <a href="#projects" id="navbar-li" class="navbar-li"> Projects </a>
        </li>
    <li> 
      <a href="#contact-section" id="navbar-li" class="navbar-li"> Contact </a>
        </li>
  </ul>
</navbar>

  <!-- Welcome Section -->
  
<section id="welcome-section" class="welcome-section">
  <h1>
    Hi, 
    <br> I'm <span style="color:#ff6961"> Michael </span>,
      <br> and this is my Portfolio. 
  </h1>
  <p>
    created with <span style="color:#ff6961"> html / css </span>
  </p>
 </section>
  
  <!-- Portfolio Section -->
   
  <section id="projects" class="projects">
    <h1 id="project-header" class="project-header"> Below are my projects, feel free to look.  </h1>
    <div id="project-tile" class="project-tile">
      <a class="project-img"
         href="https://codepen.io/JackTar8619/pen/qBRLGNR"
         target="_blank">
      <img class="project_image" src="https://i.pinimg.com/736x/a8/df/d6/a8dfd627331a4f6c65de50211c3602a8.jpg"
           alt="Landing_Page">        
        <p id="project-title" class="project-title">  
        <span>
            Landing Page
          </span>   
        </p>
         </a>
      <a class="project-img"
         href="https://codepen.io/JackTar8619/pen/bGgJqWe"
         target="_blank">
      <img class="project_image" src="https://www.nicepng.com/png/detail/196-1969509_free-icons-png-technical-icon.png"
           alt="Technical_Documentation">        
        <p id="project-title" class="project-title"> 
        <span>
            Technical Documentation
          </span> 
        </p>
         </a>
      <a class="project-img"
         href="https://codepen.io/JackTar8619/pen/WNRLxjo"
         target="_blank">
      <img class="project_image" src="https://www.nicepng.com/png/detail/200-2009806_survey-icon.png"
           alt="Survey_Form"> 
        <p id="project-title" class="project-title">
          <span>
            Survey Form
          </span>
        </p>
         </a>
      </div>
  </section>
  

   
  <!-- Contact Section -->
  

  <section id="contact-section" class="contact-section"> 
    <h1 class="contact-header"> 
      Want to know more? 
    </h1> 
    <br>
    <h2 class="contact_header_2"> Contact me <span style="color:#ff6961; text-decoration:underline;"> below </span>
    </h2>
      <br>
      <br>
    <div id="contact-links" class="contact-links">      
      <a href="https://www.linkedin.com/in/michael-crossley/"
         target="_blank"
         class="btn-colour">
         <b> 
           LinkedIn
        </b>
      <a href="mailto:michael.crossley8619@gmail.com"
         target="_blank"
         class="btn-colour">
         <b> 
           Email
        </b>
        <a 
         id="profile-link"
         href="tel:+1856-419-9813"
         target="_blank"
         class="btn-colour">
         <b> 
           Phone
        </b>
         </a>
     </div>
    </section>

 
<!-- Footer Section -->  
  
<footer>
    <ol>
      <li> <a href="https://codepen.io/JackTar8619/pen/bGgJqWe"
              target="_blank">
                Technical Documentation 
        </a></li>
      <li> <a href="https://codepen.io/JackTar8619/pen/qBRLGNR"
              target="_blank"> 
                Product Landing Page
        </a></li>
      <li> <a href="https://codepen.io/JackTar8619/pen/WNRLxjo"
              target="_blank">
                Survey Form 
        </a></li>      
  </footer>
  </body>

              
            
!

CSS

              
                * { margin: 0; padding: 0;}

/* Navigation Bar */

.navbar {
  position: fixed;
    z-index: 1;
  top: 0px;
  left: 0px;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 10px;
  border-bottom: solid;
    border-color: white;
  background-color: #203647;
  
}

@media only screen   
and (min-device-width : 360px)   
and (max-device-width : 640px){
  #navbar {
  justify-content: space-evenly;
      
  }
}

/* ul & li section */

.nav-list {
  display: flex;
  
}

li {
  list-style: none;
  
}

.navbar-li {
  display: block;
  margin-right: 100px;
  text-decoration: none;
  font-size: 20px;
  color: white;
  
 
}

@media only screen   
and (min-device-width : 360px)   
and (max-device-width : 640px){
    .navbar-li {
  display: block;
  justify-content: space-evenly;
  width: 100px;
  margin-right: 0;
  font-size: 15px;  
  
    }
}

a {
  text-decoration: none;
  color: white;
  
}


/* Welcome Section */

.welcome-section {
  display: flex;
    flex-direction: column;
      justify-content: center;
  width: 100%;
  height: 100vh;
  background-color: #007CC7;
    color: white;    
  
}

.welcome-section > h1 {
  text-align: left;
    padding-left: 40px;
      font-size: 80px;
  
}

.welcome-section > p {
  text-align: left;
    padding-left: 40px;
      font-size: 50px;
       font-style: italic;
  
}

.portfolio_picture {
  width: 15%;
    height: auto;
      border-radius: 50%;
  position: absolute;
    margin-left: 75%;
      z-index: 0;
  
}

@media only screen   
and (min-device-width : 360px)   
  and (max-device-width : 640px){
    .portfolio_picture {
      display: none;
      
   }
    .welcome-section > h1 {
      padding-left: 15px;
        font-size: 50px;
      
   }
    .welcome-section > p{
      padding-left: 15px;
        font-size: 30px;
   }
}

/* Portfolio Section */

.project-header {
  margin-left: auto;
  margin-right:  auto;
  width: 100%;
    max-width: 50%;
  text-align: center;
  background-color: #12232E;
  padding-top: 30px;
  padding-bottom: 30px;
  border-bottom: solid;
    border-color: white;
  color: white;  
  
}

@media only screen   
and (min-device-width : 360px)   
  and (max-device-width : 640px){
    .project-header {
      font-size: 15px;
        max-width: 80%;
    }
}

.projects {
  background-color: #12232E;
  height: 100vh;
  border-top: solid;
    border-color: white;
}

@media only screen   
and (min-device-width : 360px)   
  and (max-device-width : 640px){
    .projects {
      height: 200vh;
    }
}


.project-tile {
  background-color: #12232E;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-template-rows: 100%;
  column-gap: 5%;
  width: 100%;
    max-width: 80%;
  height: 100%;
    max-height: 65%;
  margin-right: auto;
      margin-left: auto;
        margin-top: 2.5%;
  
}

@media only screen   
and (min-device-width : 360px)   
  and (max-device-width : 640px){
    .project-tile {
  grid-template-rows: repeat(3, 1fr);
      row-gap: 10px;
  width: 100%;
    max-width: 80%;
  height: 100%;
    max-height: 85%;
  margin-top: 30px;
      
    }
}

img {
  width: 100%;
  height: 85%;
  background-color: white;
  border-radius: 5px;
    
}

.project-title {
  background-color: gray;
  text-align: center;
  font-size: 20px;
  color: white;
  padding-top: 30px;
    padding-bottom: 30px;
  text-decoration: none;
  position: relative;
  bottom: 7px;
}

@media (hover: hover) {
.project-title:hover {
  background-color: #007CC7;
  
  }
}

@media (hover: none) {
  .project-title:hover { color: inherit; }
}


@media only screen
and (min-width: 1370px)  
  and (max-width: 1605px){
    
 .project-title {
  font-size: 18px;
  padding-top: 22px;
    padding-bottom: 22px;
  bottom: 7px;
      
   }
}

@media only screen   
and (min-device-width : 360px)   
  and (max-device-width : 640px){

    .project-title {
    font-size: 15px;
    padding-top: 15px;
      padding-bottom: 15px;
    bottom: 6px;
      
    }
}

/* Contact Section */

.contact-section {
  display: block;
  text-align: center;
  background-color: #007CC7;
  width: 100%;
  height: 50vh;
  border-top: solid;
    border-color: white;
}

@media only screen
and (min-width: 1370px)  
and (max-width: 1605px) {
  #contact-section {
    height: 60vh;
  }    
}

.contact-section h1 {
  font-size: 100px;
  color: white;
  margin-top: 5%;
  padding 0;
  
}

@media only screen
and (min-width: 1370px)  
  and (max-width: 1605px){
    .contact-section h1 {
      margin-top: 3%;
    }
}

@media only screen   
and (min-device-width : 360px)   
  and (max-device-width : 640px){
   .contact-section h1 {
      font-size: 50px;
    }
}

.contact-header {
  background-color: #007CC7;
      text-align: center;

}

.contact_header_2 {
  color: white;
    font-size: 65px;
}

@media only screen   
and (min-device-width : 360px)   
  and (max-device-width : 640px){
   .contact_header_2 {
      font-size: 30px;
    }
}

.contact-links {
  background-color: #007CC7;
    color: white;
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  
}

.btn-colour {
  color: white;
  font-size: 30px;
}

@media (hover: hover) {
.btn-colour:hover {
  animation-name: contactz;
  animation-duration: 500ms;
  animation-fill-mode: forwards;
  
  }
}

@media (hover: none) {
  .btn-colour:hover { color: inherit; }
}

@keyframes contactz {
 100% { color: #ff6961;
  transform: scale(1.5);
  }
}


/* Footer */

footer > ol {
  display: flex;
        justify-content: space-evenly;
  font-size: 20px;
        background-color: #203647;
  border-top: solid;
    border-color: white;
  padding-top: 20px;
  
}

@media only screen
and (min-width: 1370px)  
  and (max-width: 1605px) {
    footer > ol {
      font-size: 18px;
    }
}
@media only screen   
and (min-device-width : 360px)   
  and (max-device-width : 640px){
   footer {
      font-size: 5px;
    }
}

              
            
!

JS

              
                
              
            
!
999px

Console