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

              
                <!-- **************************************************************** 
freeCodeCamp Personal Portfolio 
Final Project for the Responsive Web Design Course
Requirements:
Responsive with at least one @media query
Navigation section with id="navbar" that is fixed to top of viewport
    and at least one link to a section of the page
Welcome Section with id="welcome-section" and a <h1> text element
    and a height equal to the viewport
Projects Section with an id="projects" with an element class="project-tile"
    to hold the projects
A link with id="profile-link" that links to my GitHub or FCC profile
    in a new tab   

Index:
Header
    Navbar with links to sections of website
    Welcome
Main
    Projects
        Project tiles
Footer
    Profile link  
*********************************************************************** -->

        <header>
            <div id="about">.</div>
            <nav id="navbar">
                <h2>
                    <a href="#about">About</a>
                    <a href="#projects">Projects</a>
                    <a href="#contact">Contact</a>
                    <a href="#links">Links</a>
                </h2>
            </nav>

            <div id="welcome-section">
                <div id="welcome-text">
                    <h1>Terri Fricker</h1>
                    <h2>Front End Web Design Portfolio</h2>
                    <h3>Using HTML5 and CSS3</h3>
                </div> <!-- end welcome text -->
            </div> <!-- end welcome section -->
        </header>

        <main id="projects">
            <h1>Projects</h1>
            <div id="project-wrapper">
                <div class="project-tile">
                    Tribute Page<br>
                    <a href="https://codepen.io/terrifricker/full/ZEGpjOV"
                        target="_blank"> <img class="project-image" 
                        src="http://frickersolutions.com/images/tribute-page.png"
                        alt="My tribute page to Superman"></a><br>
                        This was my first project.  It is very simple and
                        I used a lot of color.  I learned that I need to be more
                        careful about the contrast between background color and
                        text color.
                </div>
                <div class="project-tile">
                    Survey Form<br>
                    <a href="https://codepen.io/terrifricker/full/dyoOzWV"
                        target="_blank"> <img class="project-image" 
                        src="http://frickersolutions.com/images/survey-form.png"
                        alt="My Investment Broker Survey"></a><br>
                        I struggled with this responsive project.
                        The process included a lot of study about grid and flexbox and
                        a lot of experimentation.  I feel much more confident with both.
                </div>
                <div class="project-tile">
                    Product Landing Page<br>
                    <a href="https://codepen.io/terrifricker/full/rNVwgPx"
                        target="_blank"> <img class="project-image" 
                        src="http://frickersolutions.com/images/product-landing-page.png"
                        alt="My School Supply Store Landing Page"></a><br>
                        I very much enjoyed this project.  I love color and the design
                        process was exciting.  I used flexbox for making it responsive.

                </div>
                <div class="project-tile">
                    Technical Documentation Page<br>
                    <a href="https://codepen.io/terrifricker/full/bGdLxjy"
                        target="_blank"> <img class="project-image" 
                        src="http://frickersolutions.com/images/technical-documentation-page.png"
                        alt="My Technical Documentation Page"></a><br>
                        My confidence had grown by the time I coded this project, so I was
                        faster.  I am less reliant on google for correct syntax.
                </div>
            </div>
        </main>
        <aside id="contact">
            <h1>Social Media</h1>
            <div id="contact-wrapper">
                <div class="social-link"><i class="fab fa-pinterest-square icon"></i> @fakename</div>
                <div class="social-link"><i class="fab fa-facebook-square icon"></i> @fakename</div>
                <div class="social-link"><i class="fab fa-twitter-square icon"></i> @fakename</div>
                <div class="social-link"><i class="fab fa-instagram-square icon"></i> @fakename</div>
                <div class="social-link"><i class="fas fa-envelope icon"></i> me@fakename.com</div>
                <div class="social-link"><i class="fas fa-phone-square icon"></i> (714) 555-5152</div>
            </div>
        </aside>

        <aside id="links">
            <h1>Links to my Portfolios</h1>
            <div id="link-wrapper">
                <a id="profile-link" href="https://github.com/terrifricker" target="_blank">
                    <i class="fab fa-github-square icon"></i>  GitHub Portfolio</a>
                <a href="https://www.freecodecamp.org/terrifricker" target="_blank">
                 <i class="fab fa-free-code-camp"></i>  freeCodeCamp Portfolio</a>
            </div>
        </aside>

              
            
!

CSS

              
                body {
    margin: 0;
    font-family: 'Poppins', Georgia, serif;
    font-size: 16px;
    box-sizing: border-box;
}

h1 {
    font-family: 'Mansalva', cursive;
    font-size: 4.5rem;
    font-weight: 700;
    margin: 15px;
    text-align: center;
}

h2 {
    font-size: 2.2rem;
    font-weight: 500;
    margin: 10px;
    text-align: center;
}

h3 {
    font-size: 1.6rem;
    font-weight: 300;
    margin: 5px;
    text-align: center;
}

#about {
    position: relative;
    top: 0;
    left: 0;
}

#navbar {
    width: 100vw;
    background-color: #a3241d;
    color: white;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

#navbar a {
    padding: 0 20px;
    text-decoration: none;
}

#navbar a:link, #navbar a:visited {
    color: white;
}

#navbar a:hover, #navbar a:active {
    color: yellow;
}

#welcome-section {
    height: 100vh;
}

#welcome-text {
    margin: 35vh auto 0;
}

#projects {
    padding-top: 140px;
    height: fit-content;
}

#project-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr) );
    gap: 15px;
    justify-items: stretch;
    align-items: stretch;
}

.project-tile {
    border: 3pt solid #394140;
    height: 300px;
    margin: 0 15px;
    padding: 12px;
    text-align: center;
}

.project-image {
    width: 235px;
    margin: 10px;
}

#contact {
    padding-top: 260px;
    font-size: larger;
}

#contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr) );
    gap: 10px;
    justify-items: stretch;
    align-items: stretch;
    margin: 0 300px;
}

.social-link {
    justify-self: center;
    font-size: 1rem;
}

.icon {
    font-size: x-large;
}

#links {
    padding-top: 300px;
    padding-bottom: 250px;
}

#link-wrapper {
    font-size: x-large;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;

}

#links a {
    padding: 20px 40px;
    text-align: center;
}

#links a:link, #links a:visited {
    text-decoration: none;
    color: black;
}

#links a:hover, #links a:active {
    color: rgb(139, 114, 114);
}

  
@media only screen and (max-width: 542px) { /* Welcome and nav wrap one line*/
    h2 {
        font-size: 1.5rem;
    }

    #projects {
        padding-top: 80px;
        height: fit-content;
    }

    .project-tile {
        margin: 15px;
    }

    #contact {
        height: auto;
    }

    #contact-wrapper {
        margin: 0;       

     }

     #links {
         margin: 0;
     }
}

@media only screen and (max-width: 1200px) {
    #projects {
        height: fit-content;
    }
}

              
            
!

JS

              
                
              
            
!
999px

Console