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

              
                <body class="bg-image">
        <header>
            <nav id="navbar" class="bar navbar bgc-bis90 bl-border">
                <a href="#welcome-section" class="nav-link">Welcome</a> &nbsp;
                <a href="#projects" class="nav-link">Projects</a> &nbsp;
                <a href="#contact" class="nav-link">Contact</a> &nbsp;
            </nav>
        </header>
        <div id="welcome-section" class="welcome-container">
            <section class="welcome">
                <h1 class="bgc-bis50 text-bg">Welcome to Craig Lunney's Personal Portfolio</h1>
            </section>
            <article id="welcome-text" class="intro-text bgc-bis70 bl-border">
                <p>Hi there, after having worked in the Defence and Air Traffic Management sectors for over twenty years
                I am currently out of work and studying hard to develop new skills and find a new role for myself.
                I have had various roles over my career such as Software Developer, Systems Engineer, Systems Tester and
                Service Engineer.  I would like return to Software Development and I working my way through the FreeCodeCamp
                challenges to enable me to do so.
                </p>
            </article>
        </div>
        <h1 class="projects bgc-bis50 text-bg">My Projects</h1>
        <section id="projects" class="projects-container bgc-bis70 bl-border">
            <a href="https://codepen.io/CraigL1971/pen/xxOebyQ" target="_blank" class="project-tile item-a">
                <img src="https://i.imgur.com/I2E0yd5.png" alt="project" class="op-100">Tribute Page
            </a>
            <a href="https://github.com/CraigRL1971/FCC-Medical-Data-Visualizer" target="_blank" class="project-tile item-b">
                <img src="https://i.imgur.com/demz6O7.png" alt="project" class="op-100">Medical Data Visualizer
            </a>
            <a href="https://codepen.io/CraigL1971/full/RwRzjWR" target="_blank" class="project-tile item-c">
                <img src="https://i.imgur.com/svw29dP.png?1" alt="project" class="op-100">Product Landing Page
            </a>
            <a href="https://codepen.io/CraigL1971/pen/ZEpzwje" target="_blank" class="project-tile item-d">
                <img src="https://i.imgur.com/6CoIKBE.png?2" alt="project" class="op-100">Technical Documentation
            </a>
        </section>
        <h1 id="contact" class="contacts bgc-bis50 text-bg">Contact</h1>
        <div class="bar contact-bar">
            <a id="profile-link" href="https://github.com/CraigRL1971?tab=repositories" target="_blank"><i class="fab fa-github fa-7x bgc-bis90 bl-border"></i></a>
            <a href="https://www.facebook.com/craig.lunney.1/" target="_blank"><i class="fab fa-facebook fa-7x bgc-bis90 bl-border"></i></a>
            <a href="https://codepen.io/CraigL1971" target="_blank"><i class="fab fa-codepen fa-7x bgc-bis90 bl-border"></i></a>
        </div>
        <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
    </body>
              
            
!

CSS

              
                * {
    font-family: Verdana, Geneva, sans-serif;
}

html {
  scroll-behavior: smooth;
}

.bg-image {
    background-image: url('https://i.imgur.com/iaEqOS1.jpg?2');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.bar {
    display: inline-flex;
    flex-direction: row;
    flex-basis: 1 1 1;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    width: 98%;
    min-height: 50px;
}

.navbar {
    height: 10%;
    position: fixed;
    opacity: 90%;
    margin-top: 1%;
    top: 0;
    border-radius: 25px;
    z-index: 999;
}

.nav-link {
    color: Black;
    font-weight: bold;
    font-size: large;
}

.nav-link:hover {
    opacity: 0.7;
}

.welcome-container {
    height: 100vh;
}

.welcome, .projects, .contacts {
    padding-top: 10%;
    margin-left: 20%;
    margin-right: 20%;
    text-align: center;
    font-size: x-large;
    z-index: 888;
}

.projects, .contacts {
    padding-top: 20%;
    margin-left: 40%;
    margin-right: 40%;
}

.contacts {
  padding-top: 40%;
  margin-top: 50px;
}

@media (max-width: 599px) {
    .projects, .contacts {
        margin-top: 120px;
        margin-left: 30%;
        margin-right: 30%;
    }
}

.intro-text {
    margin-top: 5%;
    margin-left: 10%;
    margin-right: 10%;
    width: 80%;
    padding: 0.5em;
    color: darkgreen;
    font-size: 1em;
    font-weight: bold;
    z-index: 888;
}

.projects-container {
    display: grid;
    width: 70%;
    justify-items: center;
    align-items: center;
    padding: 2em;
}

@media (min-width: 600px) {
    .projects-container {
        grid-template-columns: 50% 50%;
        grid-template-rows: 150px 150px;
        margin: 5% 15% 0% 15%;
        min-width: 600px;
    }
}

@media (max-width: 599px) {
    .projects-container {
        grid-template-columns: 100%;
        grid-template-rows: 150px 150px 150px 150px;
        margin: 0% 20% 0% 10%;
        min-width: 300px;
    }
}

.project-tile {
    width: 280px;
    height: 120px;
    text-align: center;
}

@media (min-width: 600px) {
    .item-a {
        grid-area: 1 / 1 / 1 / 1;
    }

    .item-b {
        grid-area: 1 / 2 / 1 / 2;
    }

    .item-c {
        grid-area: 2 / 1 / 2 / 1;
    }

    .item-d {
        grid-area: 2 / 2 / 2 / 2;
    }
}

@media (max-width599px) {
    .item-a {
        grid-area: 1 / 1 / 1 / 1;
    }

    .item-b {
        grid-area: 2 / 1 / 2 / 1;
    }

    .item-c {
        grid-area: 3 / 1 / 3 / 1;
    }

    .item-d {
        grid-area: 4 / 1 / 4 / 1;
    }
}

.contact-bar {
    z-index: 888;
    height: auto;
    margin: 5% 0%;
}

.fab {
    padding: 20px;
    font-size: 30px;
    width: 50px;
    text-align: center;
    text-decoration: none;
    color: black;
}
  
.fab:hover {
    opacity: 0.7;
}

.bgc-bis50 {
    background-color: rgb(255, 228, 196, 0.5);
}

.bgc-bis70 {
    background-color: rgb(255, 228, 196, 0.7);
}

.bgc-bis90 {
    background-color: rgb(255, 228, 196, 0.9);
}

.bl-border {
    border-style: solid;
    border-color: black;
    border-width: 2px;
    border-radius: 25px;
}

.op-100 {
    opacity: 100%;
}

.text-bg {
  padding: 0.5em;
  border-radius: 25px;
}

              
            
!

JS

              
                
              
            
!
999px

Console