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 rel="stylesheet" type="text/css" href="style.css">

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
    
</head>

<body>
      
<nav id="navbar">
    
    <a href="#top"><img id="logo" src="https://images.squarespace-cdn.com/content/5b15fa01f407b4d0fd07a75b/1558810466675-BCS20RG8XUB8824P45EU/JC_Logo_RGB_Icons-02.png?content-type=image%2Fpng" alt="Logo"></a>
        
    <ul>
        <li><a class="navlist" href="#recent" rel="internal">Recent</a></li>
        <li><a class="navlist" href="#codepen" rel="internal">Development</a></li>
        <li><a class="navlist" href="#contact" rel="internal">Contact</a></li>
    </ul>

</nav>   
 
<!--Hero-->
    
<div id="welcome-section">
    
    <div id="name">James Cole</div>
    <h1 class="design">Design &amp;</h1>
    <h1> Development</h1>
    
</div>
    
 <!--Work-->
 
<div id="recent">Recent</div>    
  
<hr>   
    
<div id="projects">

    <div class="box1"> 
    <a class="image-box1" href="https://codepen.io/jamescoledesign/pen/NVjwGm"></a><div class="project-tile"><a  class="title" href="https://codepen.io/jamescoledesign/pen/NVyEKx">Tribute Page</a></div></div>
    
    
    <div class="box2"><a class="image-box2" href="https://codepen.io/jamescoledesign/pen/VOzMMY"></a><div class="project-tile"><a  class="title" href="https://codepen.io/jamescoledesign/pen/VOzMMY">Survey Form</a></div></div>
    
    <div class="box3"><a class="image-box3" href="https://codepen.io/jamescoledesign/pen/NVyEKx"></a><div class="project-tile"><a  class="title" href="https://codepen.io/jamescoledesign/pen/NVyEKx">Product Landing Page</a></div></div>
    
    <div class="box1"><a class="image-box4" href="https://codepen.io/jamescoledesign/pen/arJZYG"></a><div class="project-tile"><a  class="title" href="https://codepen.io/jamescoledesign/pen/arJZYG">Technical Documentation Page</a></div></div>
    
    <div class="box2"><a class="image-box5" href="https://cdn.dribbble.com/users/2034846/screenshots/6421606/dribble_logo_1600x1200_osf.png"></a><div class="project-tile"><a  class="title" href="https://cdn.dribbble.com/users/2034846/screenshots/6421606/dribble_logo_1600x1200_osf.png">OSF Logo</a></div></div>
    
    <div class="box3"><a class="image-box6" href="https://cdn.dribbble.com/users/2034846/screenshots/6333267/dribble_logo_1600x1200_panther_4x.jpg"></a><div class="project-tile"><a  class="title" href="https://cdn.dribbble.com/users/2034846/screenshots/6333267/dribble_logo_1600x1200_panther_4x.jpg">Panther Illustration</a></div></div>

</div>    
    
<!--CodePen-->    
    
<div id="codepen">
    
    <i class="fas fa-code fa-2x"></i>
    
    <p>Check out my web development<br>projects on CodePen.</p>
    
    <a id="profile-link" href="https://codepen.io/jamescoledesign/" target="_blank"><button class="outlined">Let's Go</button></a>
    
</div>
  
<!--CodePen-->    
    
<div id="contact">
    
    <div class="getintouch">Want to work together? <a class="email" href="mailto:james@jamescolephotos.com?Subject=Inquiry" target="_top">Send me an email.</a></div>
    
</div>
    
<!--Footer-->    

<footer>© 2019 James Cole</footer>

</body>
              
            
!

CSS

              
                :root {
    
    --dark: #1d252d;
    --mid: #8c8c8c;
    --light: #eeeeee;
    --gold: #f1c400;
}

body {
    margin: 0 auto;
    padding: 0;
    font-family: proxima-nova, sans-serif;
    width: 100%;
    overflow-x: hidden;
}

#navbar {
    padding-top: 8px;
    background-color: white;
    position: fixed;
    width: 100%;
    height: 56px;
    z-index: 1;
}

#logo {
    margin-top: 4px;
    margin-left: 30px;
    height: 40px;
    float: left;
}

ul {
    margin: 0;
    padding-top: 12px;
    float: right;
    margin-right: 30px;
}

li {
    display: inline;
    padding-left: 10px;
    font-size: 12px;
}

.navlist {
    color: var(--dark);
}

.navlist:hover {
    color: var(--mid);
}

#welcome-section {
    clear: both;
    min-height: 55vh;
    padding-top: 45vh;
    background-color: var(--dark);
    color: white;
    padding-left: 30px;
    margin-bottom: 40px;
    background-image: url(https://images.squarespace-cdn.com/content/5b15fa01f407b4d0fd07a75b/1558813064731-ACV1UTQRE2ZX8FO1H5BZ/georgie-cobbs-467923-unsplash_r.jpg?format=2500w&content-type=image%2Fjpeg);
    background-size: cover;
    background-position: left;
}

#name {
    clear: both;
    margin-top: -6vh;
    font-size: 20px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--dark);
    padding-top: 10px;
    padding-bottom: 10px;
    width: 170px;
    margin-left: -50px;
    padding-left: 50px;
}

h1 {
    font-size: 80px;
    margin: 0;
    margin-top: 10px;
    background-color: var(--dark);
    padding-top: 10px;
    padding-bottom: 10px;
    width: 540px;
    margin-left: -50px;
    padding-left: 50px;
}

h1.design { 
    width: 380px;
}

@media only screen and (max-width: 815px) {
  h1 {
    font-size: 60px;
    background-color: var(--dark);
    padding-top: 10px;
    padding-bottom: 10px;
    width: 400px;
    margin-left: -50px;
    padding-left: 50px;
    }
}

@media only screen and (max-width: 815px) {
  h1.design {
      font-size: 60px;
        width: 290px;
    }
}

#recent {
    font-size: 16px;
    text-align: center;
    margin-bottom: 10px;
}

hr {
    border-color: var(--dark);
    color: var(--dark);
    text-align: center;
    width: 60px;
    margin-bottom: 40px;
}

#projects {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    z-index: 2;
}

@media only screen and (max-width: 815px) {
  #projects {
      flex-direction: column;
    }
}

.box1 {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 25%;
    background-color: var(--dark);
    height: 200px;
    margin-bottom: 40px;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.box1:hover {
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.05)
}

.box1:hover::after {
    opacity: 1;
}

@media only screen and (max-width: 815px) {
  .box1 {
      width: 86%;
      height: 260px;
    }
}

.image-box1 {
    height: 100%;
    color: var(--dark);
    background-image: url(https://images.squarespace-cdn.com/content/5b15fa01f407b4d0fd07a75b/1558836783949-J68UR7KDT8IQSNYWB6M6/Tribute.png?format=2500w&content-type=image%2Fpng);
    background-position: center;
    background-size: cover;
}

.project-tile {
    height: 2%;
    text-align: center;
    font-size: 13px;
    background-color: var(--dark);
    padding-top: 10px;
    padding-bottom: 20px;
    color: white;
}

.box2 {
    display: flex;
    flex-direction: column;
    width: 25%;
    margin-left: 4%;
    margin-right: 4%;
    background-color: var(--dark);
    color: white;
    margin-bottom: 40px;
    height: 200px;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.box2:hover {
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.05)
}

.box2:hover::after {
    opacity: 1;
}

@media only screen and (max-width: 815px) {
  .box2 {
      width: 86%;
      height: 260px;
      margin-left: 0;
      margin-right: 0;
    }
}

.image-box2 {
    height: 100%;
    color: var(--dark);
    background-image: url(https://images.squarespace-cdn.com/content/5b15fa01f407b4d0fd07a75b/1558836778045-78O2ADCKZV9RZJJIAT4H/Survey.png?format=2500w&content-type=image%2Fpng);
    background-position: center;
    background-size: cover;
}

.box3 {
    display: flex;
    flex-direction: column;
    width: 25%;
    background-color: var(--dark);
    color: white;
    margin-bottom: 40px;  
    height: 200px;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.box3:hover {
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.05)
}

.box3:hover::after {
    opacity: 1;
}

@media only screen and (max-width: 815px) {
  .box3 {
      width: 86%;
      height: 260px;
    }
}

.image-box3 {
    height: 100%;
    color: var(--dark);
    background-image: url(https://images.squarespace-cdn.com/content/5b15fa01f407b4d0fd07a75b/1558836780096-FDXXY0SNPK2ERKN4GAGI/Product.png?format=2500w&content-type=image%2Fpng);
    background-position: center;
    background-size: cover;
}

.image-box4 {
    height: 100%;
    color: var(--dark);
    background-image: url(https://images.squarespace-cdn.com/content/5b15fa01f407b4d0fd07a75b/1558836777032-73OIW8WNP9TDV8I7JR2X/Documentation.png?format=2500w&content-type=image%2Fpng);
    background-position: center;
    background-size: cover;
}

.image-box5 {
    height: 100%;
    color: var(--dark);
    background-image: url(https://cdn.dribbble.com/users/2034846/screenshots/6421606/dribble_logo_1600x1200_osf_4x.png);
    background-position: center;
    background-size: cover; 
}

.image-box6 {
    height: 100%;
    color: var(--dark);
    background-image: url(https://cdn.dribbble.com/users/2034846/screenshots/6333267/dribble_logo_1600x1200_panther_4x.jpg);
    background-position: center;
    background-size: cover; 
}

#codepen {
    padding-top: 40px;
    width: 100%;
    color: white;
    background-color: var(--dark);
    text-align: center;
    padding-bottom: 40px;
}

i,fas,fa-code {
    margin-bottom: 30px;
}

p {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
    line-height: 36px;
}

.outlined {
    text-align: center;
    border-color: var(--gold);
    height: 40px;
    color: white;
    background-color: var(--dark);
    width: 140px;
    font-size: 14px;
    text-transform: uppercase;
    border-width: 2px;
}

.outlined:hover {
    background-color: var(--gold);
    color: var(--dark);
}

a {
    color: var(--dark);
    text-decoration: none;
}

a:hover {
    color: var(--mid);
    font-weight: 500;
}

.title {
    color: white;
}

a.title:hover {
    color: white;
}


#contact {
    color: var(--dark);
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.getintouch {
    font-size: 16px;
    text-align: center;
    font-weight: normal;
}

.email {
    color: var(--dark);
    color: black;
    text-align: center;
    text-decoration: underline;
}

footer {
    position: sticky;
    text-align: center;
    background-color: var(--dark);
    color: white;
    height: 40px;
    padding-top: 20px;
    margin: 0 auto;
    font-size: 14px;
}
              
            
!

JS

              
                
              
            
!
999px

Console