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

              
                <link href="https://fonts.googleapis.com/css?family=Rubik&display=swap" rel="stylesheet">
<head>
    <meta name="viewport" content="width=device-width">
    <style>
        body{
            margin: 0;
            width: 100%;
            background-color: #1a1a1d;
        }

        #header{
            width: 100%;
            height: 60px;
            position: fixed;
            top: 0;
            background-color: #1a1a1d;
        }

        #navbar{
            float: right;
            height: 100%;
            display: flex;
            justify-content: flex-end;
        }

        .nav-link{
            display: block;
            font-family: Rubik;
            font-size: 24px;
            text-decoration: none;
            color: #feffff;
            margin-right: 18px;
            text-align: center;
            padding: 18px;
            transition: 0.2s;
        }

        .nav-link:hover{
            background-color: #950740;
            font-size: 28px;
            padding: 14px;
        }
        
        @media only screen and (max-width: 768px){               /*media query za header*/
            #header{
                top: 0;
                height: 220px;
                position: relative;
            }

            #navbar{
                float: none;
                flex-direction: column;
            }

            .nav-link{
                height: 25%;
                font-size: 16px;
            }
        }

        #welcome-section{
            background-image: url("https://wallpaperaccess.com/full/1947484.jpg");
            background-repeat: no-repeat;
            background-size: cover;
            background-attachment: fixed;
            background-color: #3aafa9;
            height: 100%;
            width: 100%;
            margin-top: 60px;
        }

        #hello-world{
            margin: auto;
            text-align: center;
            color: #feffff;
            font-family: Rubik;
            font-size: 120px;
            padding: 160px;
        }

        @media only screen and (max-width: 768px){          /*media queri za welcome section*/
            #welcome-section{
                height: 100%;
                width: 100%;
                margin-top: 0;
            }

            #hello-world{
                font-size: 60px;
                padding-top: 120px;
                padding-left: 10px;
                padding-right: 10px;
            }
        }

        #about-section{
            background-color: #4e4e50;
            height: 100%;
        }

        #bio-container{
            display: flex;
            justify-content: center;
            margin-top: 60px;
        }

        .section-title{
            margin: auto;
            text-align: center;
            color: #feffff;
            font-family: Rubik;
            font-size: 120px;
        }

        @media (max-width: 600px){
            #bio-container{
                flex-direction: column;
            }
            
            .section-title{
                font-size: 60px;
                padding-top: 30px;
            }
        }

        .bio-12{
            width: 300px;
            height: 400px;
            margin-right: 5%;
            background-color: #950740;
            padding-left: 6px;
            padding-right: 6px;
            border-radius: 5px;
            transition: 0.3s;
        }

        .bio-12:hover{
            margin-top: -15px;
        }

        .bio-title{
            margin-left: auto;
            margin-right: auto;
            font-family: Rubik;
            font-size: 30px;
            color: #feffff;
        }

        .bio-text{
            margin-left: auto;
            margin-right: auto;
            font-family: Rubik;
            font-size: 18px;
            color: #feffff;
        }

        #img-me{
            display: block;
            width: 56%;
            height: auto;
            margin-top: 16px;
            margin-left: auto;
            margin-right: auto;
            border-radius: 50%;
        }

        #html-img{
            width: 80%;                                
            height: auto;
            margin-left: 10%;
        }

        #bio-3{
            width: 300px;
            height: 400px;
            margin-right: 1.25%;
            background-color: #950740;
            padding-left: 6px;
            padding-right: 6px;
            border-radius: 5px;
            transition: 0.3s;
        }

        #bio-3:hover{
            margin-top: 15px;
        }

        #fcc-img{
            display: block;
            width: 40%;
            height: auto;
            margin-left: auto;
            margin-right: auto;
            margin-top: 30px;
        }

        @media (max-width: 600px){                                          /*about section media query*/
            #about-section{
                height: auto;
            }

            .bio-12{
                width: 200px;
                margin: auto;
                margin-top: 40px;
            }

            #bio-3{
                width: 200px;
                margin: auto;
                margin-top: 40px;
            }
        }

        #projects{
            background-color: #4e4e50;
            height: 100%;       
        }

        #projects-container{
            display: flex;
            flex-direction: row;
            width: 100%;
        }

        .project-tile{
            display: flex;
            flex-direction: column;
            width: 20%;
            height: 400px;
            margin-left: 2.5%;
            margin-right: 2.5%;
            transition: 0.3s;
        }

        @media (max-width: 600px){
            #projects{
                height: auto;
            }
            
            #projects-container{
                flex-direction: column;
            }

            .project-tile{
                width: 200px;
                margin: auto;
            }
        }

        #project-bg1{
            background-image: url("https://i.imgur.com/JAfD9cU.png?1");
            background-repeat: no-repeat;
            background-size: cover;
        }

        #project-bg2{
            background-image: url("https://i.imgur.com/hFSyBOu.png?1");
            background-repeat: no-repeat;
            background-size: cover;
        }

        #project-bg3{
            background-image: url("https://i.imgur.com/2DkyEDH.png?1");
            background-repeat: no-repeat;
            background-size: cover;
        }

        #project-bg4{
            background-image: url("https://i.imgur.com/2Mtcjaj.png?1");
            background-repeat: no-repeat;
            background-size: cover;
        }

        .project-tile:hover{
            margin-top: 20px;
        }

        .project-img{
            width: 100%;
            height: 100%;
        }

        .projects-down{
            margin-top: 40px;
        }

        .projects-up{
            margin-top: 80px;
        }

        .projects-link-div{
            margin-top: auto;
            width: 100%;
            height: 40px;
            background-color: #950740;
        }

        .project-link{
            display: block;
            width: 100%;
            height: 100%;
            color: #feffff;
            font-family: Rubik;
            text-decoration: none;
            text-align: center;
        }

        .proba{
            background-color: orange;
        }

        #contact-section{
            background-color: #4e4e50;
            height: 70%;
        }

        #contact-container{
            display: flex;
            flex-direction: row;
            justify-content: center;
            margin-top: 100px;
            width: 100%;
            height: 100px;
        }

        @media (max-width: 762px){
            #contact-container{
                flex-wrap: wrap;
            }
        }

        .contact-link{
            display: block;
            margin-left: 20px;
            margin-right: 20px;
            font-family: Rubik;
            font-size: 26px;
            color: #feffff;
            text-decoration: none;
            text-align: center;
            transition: 0.3s;
        }

        .contact-img{
            height: 26px;   
        } 

        .contact-link:hover{
            margin-top: 14px;
        }

        #profile-link{
            
        }

    </style>
</head>

<body>
    <header id="header">    

        <nav id="navbar">
            <a class="nav-link" href="#welcome-section">HOME</a>
            <a class="nav-link" href="#about-section">ABOUT</a>
            <a class="nav-link" href="#projects">PROJECTS</a>
            <a class="nav-link" href="#contact-section">CONTACT</a>
        </nav>
    </header>

    <section id="welcome-section">
        <h1 id="hello-world">&lt;&gt;Hello World&lt/&gt;</h1>
    </section>

    <section id="about-section">
        <h1 class="section-title">About me</h1>
        <div id="bio-container">
            <div class="bio-12">
                <h1 class="bio-title">Hello, I'm Srdjan</h1>
                <p class="bio-text">I'm a front end developer based in Serbia. I'm 19 years old and I'm a cat person.</p>
                <img id="img-me" src="https://scontent.fbeg7-1.fna.fbcdn.net/v/t1.0-9/69210810_2231686773625806_7123260576754565120_o.jpg?_nc_cat=110&_nc_sid=09cbfe&_nc_eui2=AeHZf8q2d9DRjWKmq-tOzjeNKck5RcsTMuEpyTlFyxMy4fYeArjRQdXq4x0Z7M_JU7Z2y1kWdolqy8RkF0CUBZGW&_nc_oc=AQnMeq08xIbnQ7A_mGfOb4hLKzSpcc0JyfN-QFgBLjkcofZSq858MWoG2allqfIloes&_nc_ht=scontent.fbeg7-1.fna&oh=fe8f820ae1fb9f956cd74405ac9d51c3&oe=5EDE8DD6" alt="">
            </div>
            <div class="bio-12">
                <h1 class="bio-title">My Skills:</h1>
                <img id="html-img" src="https://www.xhtmljunction.com/blog/wp-content/uploads/2018/02/html5-css3.png" alt="">
            </div>
            <div id="bio-3">
                <h1 class="bio-title">My education:</h1>
                <ul class="bio-text">
                    <li>I have graduated from gymnasium high school.</li>
                    <li>I'm currently studying buisness and IT.</li>
                    <li>I'm undergoing web development program at FreeCodeCamp</li>
                </ul>
                <img id="fcc-img" src="https://design-style-guide.freecodecamp.org/downloads/fcc_secondary_small.svg" alt="FreeCodeCamp">
            </div>
        </div>
    
    </section>
    <section id="projects">
        <h1 class="section-title">My Projects</h1>
        <div id="projects-container">
            <div class="project-tile projects-up" id="project-bg1">    
                <div class="projects-link-div">
                    <a class="project-link" href="https://codepen.io/sane612/full/abOPNva" target="_blank" rel="noopener noreferrer">Jaeger LeCoultre</a>
                </div>
            </div>
            <div class="project-tile projects-down" id="project-bg2">
                <div class="projects-link-div">
                    <a class="project-link" href="https://codepen.io/sane612/full/vYOvGOq" target="_blank" rel="noopener noreferrer">freeCodeCamp Survey Form</a>
                </div>
            </div>
            <div class="project-tile projects-up" id="project-bg3">
                <div class="projects-link-div">
                    <a class="project-link" href="https://codepen.io/sane612/full/LYpeZyd" target="_blank" rel="noopener noreferrer">JavaScript Documentation</a>
                </div>
            </div>
            <div class="project-tile projects-down" id="project-bg4">
                <div class="projects-link-div">
                    <a class="project-link" href="https://codepen.io/sane612/full/KKdQyPY" target="_blank" rel="noopener noreferrer">Omega Seamaster Aqua Terra</a>
                </div>
            </div>
        </div>
    </section>
    
    <section id="contact-section">
        <h1 class="section-title">Let's work together</h1> 
        <div id="contact-container">
            <a class="contact-link" href="https://www.facebook.com/srdjan.sanadrovic" target="_blank">
                <img class="contact-img" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/cd/Facebook_logo_%28square%29.png/240px-Facebook_logo_%28square%29.png" alt="">
                Facebook
            </a>
            <a href="https://github.com/Sanne6" class="contact-link" id="profile-link" target="_blank">
                <img class="contact-img" src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/91/Octicons-mark-github.svg/1200px-Octicons-mark-github.svg.png" alt="">
                GitHub
            </a>
            <a href="https://twitter.com/explore" class="contact-link" target="_blank">
                <img class="contact-img" src="https://pluspng.com/img-png/png-twitter-logo-twitter-in-png-2500.png" alt="">
                Twitter
            </a>
            <a href="https://www.instagram.com/sanadrovic/" class="contact-link" target="_blank">
                <img class="contact-img" src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/Instagram_logo_2016.svg/1024px-Instagram_logo_2016.svg.png" alt="">
                Instagram
            </a>
            <a href="https://www.reddit.com/" class="contact-link" target="_blank">
                <img class="contact-img" src="https://logodownload.org/wp-content/uploads/2018/02/reddit-logo-16.png" alt="">
                Reddit
            </a>
        </div>
    </section>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</body>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console