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

              
                <header>
   <!-- Navigation ------------------------------------------>
   <input type="checkbox" id="nav-toggle" class="nav__toggle">
   <nav class="nav__bar" id="navbar">
      <ul class="nav__links">
         <li class="nav__item"><a href="#services" class="nav__link">My Services</a></li>
         <li class="nav__item"><a href="#projects" class="nav__link">My Projects</a></li>
         <li class="nav__item"><a href="#about" class="nav__link">About Me</a></li>
         <li class="nav__item"><a href="#contact" class="nav__link">Contact</a></li>
      </ul>
   </nav>

   <!-- Hamburger icon toggle for mobile devices -->
   <label for="nav-toggle" class="nav__toggle--label">
   <span></span>
   </label>
</header>

<!-- Introduction -------------->
<section class="intro" id="welcome-section">
    <h1 class="section__title section__title--intro">
       Hello, my name is <strong>Matvey Raevskiy</strong>
    </h1>
    <p class="section__subtitle section__subtitle--intro">
       and I'm a Web Developer. 
    </p>
    <a href="#services" class="section__btn--intro">Click me</a>
    <div class="scroll pulsate">scroll for more</div>
</section> <!-- / intro -->

<!-- Services ---------------------------->
<section class="my-services" id="services">
    <!--Title---------------------------------------->
    <h2 class="section__title section__title--services">
       Services
    </h2>
<!-- Services displayed-->
    <div class="services">
        <div class="service">
            <img class="service__image" src="https://assets.codepen.io/4964792/HTML.png" alt="vector image of monitor">
            <h3>HTML</h3> 
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel, assumenda aspernatur. Culpa voluptates in a odio nisi quas, cumque adipisci labore nemo soluta tenetur assumenda consectetur modi cum corrupti error! Lorem ipsum dolor, sit amet consectetur adipisicing elit. Iure deserunt officiis laborn.</p>
       </div> <!--/ service -->

       <div class="service">
           <img class="service__image" src="https://assets.codepen.io/4964792/SEO.png" alt="vector image of monitor and magnifying glass">
           <h3>CSS</h3> 
           <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel, assumenda aspernatur. Culpa voluptates in a odio nisi quas, cumque adipisci labore nemo soluta tenetur assumenda consectetur modi cum corrupti error! Lorem ipsum dolor, sit amet consectetur adipisicing elit. Iure deserunt officiis laborn.</p>
       </div> <!--/ service -->

       <div class="service">
           <img class="service__image" src="https://assets.codepen.io/4964792/HTML.png" alt="vector image of monitor">
           <h3>Design + Development</h3> 
           <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel, assumenda aspernatur. Culpa voluptates in a odio nisi quas, cumque adipisci labore nemo soluta tenetur assumenda consectetur modi cum corrupti error! Lorem ipsum dolor, sit amet consectetur adipisicing elit. Iure deserunt officiis laborn.</p>
       </div> <!--/ service -->
    </div> <!-- / serviceS -->
    
            <a href="#" class="section__services--button">See my Work</a>
        </section> <!-- / services -->

        <!-- My Work Section-------------->
        <section class="my-work" id="projects">
            <!--Title and Subtitle------------------------->
            <h2 class="section__title section__title--work">
                Check out my work!
            </h2>
            <p class="section__subtitle section__subtitle--work">
                A few of my projects at a glance
            </p>

            <!--Project items---->
            <div class="projects">
                <!-- Project item 01------------->
                <a href="https://codepen.io/MiYagii/pen/NWNXdmZ" class="project__item project-tile">
                    <img src="https://assets.codepen.io/4964792/Project-02-01.jpg" alt="" class="project__img">
                    <p class="project-title">
                        <span class="code">&lt;</span>
                            Tribute Page
                        <span class="code">&#47;&gt;</span>
                    </p>
                </a>
                <!-- Project item 02------------->
                <a href="https://codepen.io/MiYagii/pen/wvGjmGo" class="project__item project-tile">
                    <img src="https://assets.codepen.io/4964792/Project-01-01.jpg" alt="" class="project__img">
                    <p class="project-title">
                        <span class="code">&lt;</span>
                            Survey Form
                        <span class="code">&#47;&gt;</span>
                    </p>
                </a>
                <!-- Project item 03------------->
                <a href="https://codepen.io/MiYagii/pen/dyXoLQj" class="project__item project-tile">
                    <img src="https://assets.codepen.io/4964792/project-03.jpg" alt="" class="project__img">
                    <p class="project-title">
                        <span class="code">&lt;</span>
                            Technical Documentation Page
                        <span class="code">&#47;&gt;</span>
                    </p>
               </a>
            </div> <!-- / projects -->
    </section> <!-- / my-work -->

    <!-- About me----------------------->
    <section class="about-me" id="about">
        <!--Title and Subtitle-------------------------->
        <h2 class="section__title section__title--about">
            A little about me...
        </h2>
        <p class="section__subtitle section__subtitle--about">
            Designer + developer from down under
        </p>
        <!--about me body---------->
        <div class="about-me__body">
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem eaque enim autem eius sint repudiandae placeat reiciendis, delectus ab quos iste ad quae nisi blanditiis nostrum voluptatem tempore aliquid error!</p>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem eaque enim autem eius sint repudiandae placeat reiciendis, delectus ab quos iste ad quae nisi blanditiis nostrum voluptatem tempore aliquid error!</p>
        </div> <!-- / about-me__body -->

        <img src="https://assets.codepen.io/4964792/pc-01.png" alt="3d isometric image of computer with peripherals" class="about-me__img">
    </section> <!-- / about-me -->

        <!-- Contact list -->
        <section class="contact__list">
            <!-- Title and Subtitle -->
            <div class="contact-section-header">
                <h2>Let's work together</h2>
                <p>How do you take your coffee? ☕️</p>
            </div>

            <!-- social link icons---->
            <div class="contact-links">
                <ul class="social-list">
                    <!--twitter------------------>
                    <li class="social-list__item">
                        <a class="social-list__link" href="https://twitter.com">
                            <i class="fab fa-twitter-square"></i>
                        </a>
                    </li>
                    <!--Dribbble----------------->
                    <li class="social-list__item">
                        <a class="social-list__link" href="http://dribbble.com">
                            <i class="fab fa-dribbble-square"></i>
                        </a>
                    </li>
                    <!--Github------------------>
                    <li class="social-list__item">
                        <a  id="profile-link" target="_blank" class="social-list__link" href="https://github.com">
                            <i class="fab fa-github-square"></i>
                        </a>
                    </li>
                    <!--Phone------------------->
                    <li class="social-list__item">
                        <a class="social-list__link" href="https://facebook.com">
                            <i class="fas fa-phone-square-alt"></i>
                        </a>
                    </li>
                    <!--Facebok------------------>
                    <li class="social-list__item">
                        <a class="social-list__link" href="https://facebook.com">
                            <i class="fab fa-facebook-square"></i>
                        </a>
                    </li>
                </ul>
            </div> <!-- / contact-links -->
        </section> <!-- / contact__list -->

        <!--Footer-->
        <footer>
            <p>Made with 💪 by <a href="#">MiYagii</a></p> 
        </footer>


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


              
            
!

CSS

              
                *,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ff-primary: 'Poppins', sans-serif;
    --ff-secondary: 'Anonymous Pro', monospace;

    --fw-reg: 300;
    --fw-bold: 900;

    --clr-light: #ffffff;
    --clr-dark: #26273F;
    --clr-accent: #FE632E;
    --clr-accgradient: linear-gradient(-90deg, rgba(254,102,44,1) 0%, rgba(247,10,111,1) 100%);
    --clr-bg-gradient: linear-gradient(120deg, rgba(60,63,105,1) 0%, rgba(16,16,31,1) 100%);

    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
}

@media (min-width: 800px) {
    :root {
        --fs-h1: 4.5rem;
        --fs-h2: 3.75rem;
        --fs-h3: 1.5rem;
        --fs-body: 1.125rem;
    }
}

/* Page styling */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--clr-bg-gradient);
    background-repeat: no-repeat;
    color: var(--clr-light);
    margin: 0;
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    line-height: 1.6;
}

section {
    padding: 2em 2em;
}



:focus {
    outline: none;
    border-bottom: 2px solid var(--clr-accent);
    border-radius: 1px;
    outline-offset: 3px;
}

/* Typography */

h1,
h2,
h3 {
    line-height: 1;
    margin: 0;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.section__title {
    margin-bottom: .25em;
}

.section__subtitle {
    margin: 0;
    font-size: var(--fs-h2);
    text-transform: uppercase;
}

.section__subtitle--intro, 
.section__subttitle--about {
    background: var(--clr-accgradient);
    font-family: var(--ff-secondary);
    font-weight: 600;
	-webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* Navbar Styling */

    /* Mobile responsive */
header {
    width: 100%;
    text-align: center;
    background: var(--clr-dark);
    position: fixed;
}

nav {
    position: absolute;
    text-align: center;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--clr-dark);
    transform: scale(1 , 0);
    transform-origin: top;
    transition: transform 400ms ease-in-out;
}

nav ul {
    margin: 0;
    padding: 5em;
    list-style: none;
}

nav li {
    margin-bottom: 1em;
    margin-left: 1em;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--clr-light);
    font-weight: 400;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}

.nav__links a:hover, :focus {
    background: var(--clr-accgradient);
    opacity: 1;
	-webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



.nav__toggle:checked ~ nav {
    transform: scale(1,1);
}

.nav__toggle:checked ~ nav a {
    opacity: 1;
    transition: opacity 250ms ease-in-out 250ms;
}

.nav__toggle {
    display: none;
}

.nav__toggle--label {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 1em;
    display: flex;
    cursor: pointer;
}

.nav__toggle--label span,
.nav__toggle--label span::before,
.nav__toggle--label span::after {
    display: block;
    background: var(--clr-light);
    height: 3px;
    width: 2em;
    margin-top: 30px;
    margin-right: 20px;
    border-radius: 10px; 
}

.nav__toggle--label span::before,
.nav__toggle--label span::after {
    content: '';
    position: absolute;
}

.nav__toggle--label span::before {
    top: 6px;
}

.nav__toggle--label span::after {
    bottom: 6px;
}

/* Media Queries Navbar Desktop + */

@media screen and (min-width: 868px) {
    .nav__toggle--label {
        display: none;
    }

    header {
        display: flex;
        justify-content: flex-end;
        background: linear-gradient(90deg, rgba(60,63,105,1) 0%, rgba(16,16,31,1) 100%);
        opacity: 0.8;
        z-index: 100;
      }

    nav {
        all: unset;
    }

    nav ul {
        display: flex;
        justify-content: space-between;
        padding-bottom: 0;
        padding-top: 1em;
        padding-right: 5em;
    }

    nav a {
        opacity: 0.5;
        margin-left: 40px;
    }
}

/* Intro section Desktop settings */

.intro {
    height: 100vh;
    display: grid;
    width: max-content;
    margin: 0 auto;
    padding-top: 5em;
    grid-template-areas: 
        "."
        "title"
        "subtitle";
    grid-template-columns: max-content max-content;
    grid-template-rows: repeat(4, 180px);
}

.section__title--mobile {
    display: none;
}

.section__title {
    margin-bottom: .25em;
}

.section__title--intro {
    grid-area: title;
    font-weight: var(--fw-reg);
}

.section__title--intro strong {
    display: block;
    margin-left: 40px;
    margin-top: 10px;
    grid-row: 2;
    font-weight: var(--fw-bold);
    font-size: 6rem;
    letter-spacing: .08em;
}

.section__subtitle--intro {
    grid-area: subtitle;
    grid-column: -1 / 1;
    grid-row: 3;
    position: relative;
    left: -.025em;
    justify-self: flex-end;
    margin-top: 20px;
}

.section__btn--intro {
  display: none;
}

.scroll {
    grid-row: 6 / 7;
    justify-self: center;
    font-size: 15px;
    line-height: 1.2;
}

.scroll::after {
    content: '⌵';
    display: block;
    text-align: center;
    font-size: 18px;
}

.pulsate {
    animation: pulsate 3s ease-in-out;
    animation-iteration-count: infinite;
    opacity: 0.5;
}

@keyframes pulsate {
    0% {
        opacity: 0.2;
    }        
    50% {
        opacity: 1.0;
    }
    100% {
        opacity: 0.2;
    }
}

/* Media Queries for Intro section */

@media (max-width: 1028px) {

    .intro {
        height: 100vh;
        padding-top: 50px;
        margin: 0 auto;
    }
    
    .scroll {
        display: none;
    }

    .section__title--intro strong {
        line-height: 1.2;
        font-size: var(--fw-bold);
    }

    .section__subtitle--intro {
        font-size: 2.5rem;
    }
}

@media (max-width: 800px) {
    
    .intro {
        height: 100vh;
    }

    .section__title--intro {
       grid-row: 3;
    }

    .section__subtitle--intro {
        bottom: 70px;
        font-size: 2rem;
        grid-row: 4;
    }
}

@media (max-width: 584px) {
    .section__title--intro {
       font-size: 2.2rem;
    }

    .section__subtitle--intro {
        font-size: 1.6rem;
        bottom: 100px;
        left: 20px;
    }

    .section__btn--intro {
        display: inline-block;
        text-align: center;
        padding: .75em 3em;
        border-radius: 35px;
        background: var(--clr-accgradient);
        color: var(--clr-light);
        align-self: center;
        justify-self: center;
        grid-row: 4;
        grid-column: 1;
        font-size: .8rem;
        text-decoration: none;
        transition: transform 200ms ease-in-out;
    }

    .section__btn--intro:hover {
        transform: scale(1.1);
    }
}

@media screen and (max-height: 800px) {
  .scroll {
    grid-row: 4;
    grid-column: 1;
  }
}

/* My Services section */

.my-services {
    text-align: center;
    height: 95vh;
}

.services {
    display: flex;
    margin-bottom: 4em;
}

.service {
    max-width: 425px;
    margin: 0 auto;
}

.service + .service {
    margin-left: 2em;
}

.service__image {
    height: 130px;
    margin: 10px auto;
}

.service p {
    font-size: 16px;
}

.service h3::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    margin: 0 auto;
    margin-top: 1em;
    background: var(--clr-accent);
    opacity: 0.25;
}

.section__title--services::after {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    margin: 0.4em auto 1em;
    background: var(--clr-accent);
    opacity: 0.25;
}

.section__services--button {
    display: inline-block;
    text-align: center;
    padding: .75em 3em;
    border-radius: 35px;
    background: var(--clr-accgradient);
    color: var(--clr-light);
    align-self: center;
    justify-self: center;
    grid-row: 4;
    grid-column: 1;
    font-size: .8rem;
    text-decoration: none;
    transition: transform 200ms ease-in-out;
}

.section__services--button:hover {
    transform: scale(1.1);
}

@media (max-width: 1028px) {

    .my-services {
        all: unset;
    }
    
    .services {
        all: unset;
    }
    
    .service {
        all: unset;
    }
        
    .my-services {
        height: 100%;
        text-align: center;
    }

    .services {
        margin: 0 auto;
    }

    .service {
        margin: 0;
    }

    .service p {
        max-width: 850px;
        margin: 0 auto;
        padding: 1em 2em 2em 2em;
        font-size: 14px;
    }

    .section__title--services {
        position: relative;
        font-size: var(--fs-h2);
        letter-spacing: 1px;
    }

    .service__image {
        height: 115px;
        margin: 0 auto; 
        display: block;
    }

    .section__services--button {
        display: none;
    }

    .service h3::after {
        content: '';
        display: block;
        width: 45px;
        height: 2px;
        margin: 0 auto;
        margin-top: 1em;
        background: var(--clr-accent);
        opacity: 0.25;
    }
}

/* My Work */

.my-work {
    text-align: center;
    margin-top: 100px;
}

.section__subtitle--work {
    color: var(--clr-accent);
    font-size: var(--fs-h3);
    margin-bottom: 3em;
}

.section__subtitle--work::after {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    margin: 1em auto 1em;
    background: var(--clr-accent);
    opacity: 0.25;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 2em;
    /* max-width: 1280px; */
    margin: 0 auto;
    margin-bottom: 6em;
}
 
.project__item {
    background: var(--clr-accgradient);
    border-radius: 5px;
}

.project-title {
    font-size: 14px;
    margin: 5px auto;
    padding-bottom: 5px;
    padding-top: 5px;
    color: var(--clr-dark);
    font-weight: var(--fw-bold);
    letter-spacing: 1px;
    transition: transform 750ms cubic-bezier(.5, 0, .5, 1),
    color 250ms linear;
}

.projects a {
    text-decoration: none;
}

.project-title:hover {
    color: var(--clr-light);
}

.project__img {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    height: calc(100% - 2rem);
    width: 100%;
    object-fit: cover;
}

@media (max-width: 1370px) {
    .projects {
        max-width: 600px;
    }
}

/* about me */

.about-me {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 200px
}

.about-me__img {
    height: 350px;
}

.about-me__body {
    font-size: var(--fs-body);
}


@media (min-width: 600px) {
    .about-me {
        display: grid;
        grid-template-columns: 1fr 200px;
        grid-template-rows: repeat(7, 70px);
        grid-template-areas: 
            "title img"
            "subtitle img"
            "text img";
    }
    
    .section__title--about {
        grid-area: title;
        position: relative;
        right: 40px;
        grid-row: 2;
    }

    .section__subtitle--about {
        grid-column: 1 / -1;
        grid-row: 3;
        position: relative;
        left: -1em;
        width: calc(100% + 2em);
        padding-left: 2em;
        padding-right: calc(200px + 4em);
        background: var(--clr-accgradient);
        padding: .5em 2em;
        font-size: var(--fs-h4);
        margin-bottom: 0.5em;
        color: var(--clr-dark);
        font-weight: 600;
        text-transform: unset;
        align-self: center;
    }

    .about-me__body {
        grid-row: 4;
    }

    .about-me__body p {
        padding-top: 0;
        margin-top: 0;
    }
    
    .about-me__img {
        grid-area: img;
        position: relative;
        right: 50px;
        z-index: 2;
    }
}

@media (max-width: 1500px) {
    .about-me__img {
        height: 250px;
        right: 100px;
    }
}

@media (max-width: 1072px) {

    .about-me {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "title"
            "subtitle"
            "text";  
        margin-right: 20px;
    }

    .about-me__img {
        display: none;
    }
    
    .section__title--about {
        right: 0;
        grid-row: unset;
    }

    .section__subtitle--about {
        grid-row: unset;
        width: unset;
        text-transform: uppercase;
        left: 15px;
    }

    .about-me__body {
        grid-row: unset;
        position: relative;
        left: 25px;
    }
}

@media (max-width: 800px) {
    
    .section__title--about {
        font-size: var(--fs-h1);
        align-self: flex-end;
    }

    .section__subtitle--about {
        font: unset;
        font-weight: 600;
        background: var(--clr-accgradient);
        font-size: var(--fs-h3);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        padding: 0;
        margin: 0;
        left: 2px;
    }

    .about-me__body {
        left: unset;
    }
}

/* contact section */

.contact__list {
    text-align: center;
    padding: 1em 0;
    height: 50vh;
}

.contact-section-header p {
    margin-top: 30px;
}

.social-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2em 0 0 0;
    margin-left: -2em;
}

.contact-section-header p {
    letter-spacing: 2px;
}

.social-list__item a {
    text-decoration: none;
}

.social-list__item {
    margin: 0 1em;
}

.social-list li {
    list-style: none;
}

.social-list__link {
    margin: 20px 20px 0px 0px;
    font-size: 45px;
    color: white;
    padding: .5em;
}

.social-list__link:hover {
    color: var(--clr-accent);
}

/* footer */

footer a{
    text-decoration: none;
    color: var(--clr-accent);
    font-weight: 600;
    
}

footer {
    border-top: 3px solid var(--clr-accent);
    text-align: center;
    padding: 10px 0;
}
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console