Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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>

<!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.1/css/all.css" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Electrolize&display=swap" rel="stylesheet">

<html>

<body>

  <div class="container">

    <nav id="navbar">
<!--       
<span class="color-palette color-palette-1">1</span>      
<span class="color-palette color-palette-2">2</span>        
<span class="color-palette color-palette-3">3</span>   
<span class="color-palette color-palette-4">4</span>   
<span class="color-palette color-palette-5">5</span>   
       -->
      <ul id="list-nav" >
        <li><a href="#welcome-section" id="home">Home</a></li>
        <li><a href="#projects">Projects</a></li>
        <li><a href="#footer">Contact</a></li>
      </ul>
    </nav>

    <main class="main">

      <section id="welcome-section">
        <div class="back-border shadow-effect">
          <h1>Michael Jude Larocca</h1>
          <p>web developer</p>      
        </div>  
      </section>
  

      <section id="projects">
        <div class="projects-container">
          
          <div id="project-1" class="project-tile">
<!--             <img src="https://i.postimg.cc/SK4DF9MR/Project-1.png" alt="Project 1" class="project shadow-effect" width="250px"> -->
            <img src="https://lh3.googleusercontent.com/zYYxNVeMdOm7HlVlTUGVP3a9ggM3G9Z5dx-w2qZZHi7mfHpEOdEhX_eMVATleZlS_CbzElEpEjvtm138Rg6FTtTNxOXz2tpOC2pizqvD8FnHu4wS0QZVcZknYofLCPQl6B-pnTLDRPsGyhDRo13JDZruSre5qrSNSYloiIxBqf3KppD3QYaN32C4CDMHZKgWIa5nC8kAAx9gNjlZeHqL3CC0u6yHKiDONo9khUzciOnvQBmD3dH9KwcJY_7Bag4whx4GdXMkB_tgDhxvHTBzTBrjae1nG5kifjhDlGUzttuOb_-xZMl5gkuKqr_7C9oZ9fx9LAAbzoaVdifaNtu4mAqAPsdJHPMts34bHqWH-hTUBk_PVWAc58Te8SxaqWOTfmuO9n0aXwoKCX8LqcCt22e7ywWpmQNorrYTbUrmYUt_vIgLC0r8eF8O4uNFMV3-_hWf6J9Vg3wlMBxUpE5c3GTQXCbMsqukqdrxEKd9Tw17ii_yiEz8HkdzoeI_gaRlPVRA7g0_ladsyUC2ZB27mVfYuwyf7Hu6MJYqQsAZEX6DrYq4DbuWioNeatvoQwtt-YXpLiYrB7H4YaECQVuPkaJCh32qmSvLX3g_r9F1eHhgFC7m8iMjVgNF7N18r-q5vyWL5T4alYy64DwSDFFOMlkO1R0UpSUtyAwHapCNiqPD4i4UY4DUrCCuCBXwOw=w1605-h903-no" alt="Project 1. Picture of Saint Faustina with a background image of Jesus with the inscription Jesus I Trust in you." class="project shadow-effect" width="250px">
            <p><a href="https://codepen.io/Michael_Larocca/pen/WNQjrbm" target="_blank">Build a Tribute Page</a></p>
          </div>

          <div id="project-2" class="project-tile">
            <img src="https://lh3.googleusercontent.com/h8ckzX2Oh3CBJOvkmCXIBIqqX0mcDGU_H1j7QWkDNmIsvNn9J_dL-TwbvTpLVGV7zYYmiDL-WkWXPRDCOUS-MLxUpkOFFtXLa9MOLqxACshJIpTkoxOFQ5DKPFkl1vMxeiq_fWxQmTPSd65Z5Lz2F9B2E4mfGdaWPCoTsX1s5tinYjpKKCdmkmroaT0lT_XT_NaRl0Jj5dVCWKbPzR13_gGCw2zHxeJq3-BTv-Htfc0HOc2aZ7NfXRZQUfw-t9v8nxVJgnEAzIGs5KV4qtBub7zIrbY3LI9o7HydNfn2_DEU5vuq9wzmrynMl57Dft0TeVw76UGuS7aTN06eWBKaQ3nzSHVRTE_DcBPK26qz0xyPPef76U6rxnuNbCW-nGIm3ITYlY3NdZOQ2kk4I0iCrP2KTlzmqtrhwUjkywYsds4nawpiM-Pa11ATb-sauBV8YL5POTLao3RegEL9IPC4eK_qc4Reg90tUhNcvWFsb-c0llPOUN4Xb-XO_z7QEn7VCYzbmAnkjNpqyYnxGeqGllnTNRUR9hjwnY9u1mVFT0NULO41kRgHfNxvahfOto-kiGxKodk1zNtQ5i8R08SbFNeZsV56AN_dnUIPfsS2Q7Fqu6V3dPtSTlUIen9k8TFoQ15PKPR9Cs6Fc5HuIov5nf8IFl3qe2VplzQIPXJyVyqkbxNqy490IlQMrWcmvw=w1605-h903-no" alt="Project 2. Grateful Produce Box dot com. Grocery Delivery Service
Fresh fruits and vegetables delivered straight to your door. " class="project shadow-effect" width="250px" alt>
            <p><a href="https://codepen.io/Michael_Larocca/pen/ExVXNpR" target="_blank">Build a Product Landing Page</a></p>
          </div>

          <div id="project-3" class="project-tile">
            <img src="https://lh3.googleusercontent.com/HRHQgRsZls3aPOT_1IiERzIfnc3SvIYb0liBtLyA3DLjDZxQZH5C2BzBfX_cCCOOTI-qSPJFT0mgWNKEaTey5mYGUcDMtMW4puQSW1t2y0zWJyoFWjzHjwZX5jd4I6Au9We9YqpGSRmWbS3LSdIpLWmWHhpKYg7wd9uK496_O5MIkL050AY4ByMlEK6dsrKoqv7Kejk3SHSQ-rJfN7Gc12J9uiAEndKLhA_kJ7D_Ou99Nm7q2CSSbw_K8l2tUlFBqRsX8x77esJqYLkoWgDpkym7kpFeSbu-H6N64U3mSv1qF__ZgaiD8d7pRUI9lOjhrxFzxTzrS-op0NuoH3IX9REy7B7mG0ziRVatVjPdnPcArXgvJkfY47UwRWjD-kubHIZLNeaHvO4DM47fV9K1nIlGHuT8RisW4X7Z_3xT6V8BmTpDKX2tVlZkaus4eS37BwHUDQ1bo--MYcp8q_PH9LcG0NQwX0xeQK477rOWmNEG9_q4n0g6yxhIgrhnVmkWR_yf-bYZkAVll5VjEg6vnPKtV_hmaxP0cn6SIrspQuqVsQtbYtCXk2AskLLLHsTxtmU6B-4qQdhMTs4U0ADAVSsUROXam8HQnIRoctPzuqRmMGP_r0MxhE6wiG_VsbwCyWucMbwGf5T2pRZthkGqx6m996DBuA8YtpB3Je0k1ECuSWiSPJeCIdowJ3OZ4A=w1605-h903-no" alt="Project 3. A documentation page containing information on CSS Functions" class="project shadow-effect" width="250px">
            <p><a href="https://codepen.io/Michael_Larocca/pen/eYpRKrG" target="_blank">Build a Technical Documentation Page</a></p>
          </div>
          
          <div id="project-4" class="project-tile">
            <img src="https://lh3.googleusercontent.com/JiMrkfS_bcQ1Q11DCbVv_uLICDvnfEMj9yTiMGUUHXMsdZUMP40iY9SPr7jpwAzqN8RlFYqDkU6QL6VmNFJyk5rNLV6ITkETeAytMZCL0zJfKwt04UD5HPdF36h5ngY8q1GcqmzdplHB2qs87Nf2G29k7pF45T04Sx1qAIyoOQB5zyNY5azrOM0khmt4BN-L2vAcuZCfKRA6vyzNT1SRdC__crBDy6Q5wc5Np0Bd9Uer2hqrz56ILrDqTYRjJy_Xfa5hq2Wr8Mai-tC5aw1hRDcGflRpwKClFRhUypbGuN8tgiSe8pzqiGKR4Cd9_gh1H6fMWRCSX9N08eF-h0zc0P3ddMcKza_ZNk3FZd4dgbJrwsSdKkTL0aTx9L8nlIJjmYAU7NYSZ7ZkGmbmD_xjbkccIuVKsC976aUNpwSXCgzlkuyE0qSpB0qT9_PRwmXtYeftyRbhVyJeBgHFbmHJTdcHijDgOkMCWFCS0DZvjq-friuk0doHGND5f9jlxdIFKMov5OyhOcBJLppaBzxMU47X48NEK3nj5UwpGbQiNEK9SAZ4OldpU4yjUI09lvmG2Zup3Ml0P2oRG9i5CnugbAO7wmcw0Q42CrO8QZlJ1f4cDVETeYC8Au-O39ePBV3bssM-v38hz17FQ1DOWHhSmEuRI0JLyMTpJXQNthXGHT-PYLtzUUnulk8dQcWzaQ=w1605-h903-no" alt="A survey form for a visit to a fictional hotel" class="project shadow-effect" width="250px">
            <p><a href="https://codepen.io/Michael_Larocca/pen/MWamrbY" target="_blank">Build a Survey Form</a></p>
          </div>          

       
        </div>
      </section>

    </main>

    <footer id="footer">

      <div class="footer-icons">
        <ul class="ul-footer" role="presentation">

          <li class="li-footer">
            <i class="fab fa-free-code-camp icon"></i>
            <p>
              <a href="https://www.freecodecamp.org/fccab1f30e2-e3ae-4d33-944a-659978c16159" target="_blank" id="profile-link">Profile</a>
            </p>
          </li>

          <li class="li-footer">
            <i class="fab fa-github icon"></i>
            <p>
              <a href="https://github.com/MichaelLarocca" target="_blank">GitHub</a>
            </p>
          </li>     
          
          <li class="li-footer">
            <i class="fab fa-twitter icon"></i>
            <p>
              <a href="#">Twitter</a>
            </p>
          </li>             
          
        </ul>
      </div>

    </footer>

  </div>

</body>

</html>
              
            
!

CSS

              
                
/* Create custom color theme */
:root {
  --color-palette-1: #2BEFFF;
  --color-palette-2: #27A7E8;
  --color-palette-3: #3888FF;
  --color-palette-4: #2742E8;
  --color-palette-5: #472BFF;
}

html {scroll-behavior: smooth;}

body { 
  color: black;
  background-color: whitesmoke;
  font-family: 'Electrolize', sans-serif;
  text-shadow: 1px 1px 1px black;
  border: 0;
  margin: 0;
  min-max: 250px;
}

.container {
/*   border: 3px solid purple; */
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "navbar navbar navbar"
    "main main main"
    "projects projects projects"
    "about about about"
    "footer footer footer";
  }

#navbar {
/*   border: 3px solid black; */
/*   background-color: #E8880C; */
  background-color: var(--color-palette-2);
  border-bottom: 1px solid var(--color-palette-1);
  position: fixed;
  grid-area: navbar;
  display: flex;
  width: 100%;
  justify-content: flex-end;
  padding: 0 5px;
  z-index: 1;
}

#list-nav {
  display: flex;
  padding: 0 25px;
}

#list-nav li {
  color: green;
  list-style-type: none;
}

#home {
  align-self: center;
}

a {
  color: whitesmoke;
  text-decoration: none;
  padding: 7px;
  border-radius: 25px;
  transition: background-color .2s;
}

a:hover {
  background-color:rgba(0,0,0,.65);
/*   background-color: #FFAF0D; */
  background-color: var(--color-palette-1);
  border-radius: 25px;
  box-shadow: 1px 1px 3px whitesmoke;
}


.main {
/*   border: 3px solid blue; */
  grid-area: main;
}

#welcome-section {
  color: whitesmoke;
  font-size: 1.5em;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  justify-content: center;
  align-items: center;
  background-image: url(https://cdn.pixabay.com/photo/2020/01/26/20/14/computer-4795762_1280.jpg);
  background-size: cover;
  filter: grayscale(50%);
}

.back-border {
/*   border: 1px solid whitesmoke; */
  background-color:rgba(0,0,0,.7);
  padding: 25px;
  border-radius: 25px;
  text-align: center;
}

#projects {
/*   border: 3px solid green; */
  grid-area: projects;
  height: 100%;
}

.project-tile {
/*   border: 1px solid yellow; */
  width: 100%;
  height: 100%;
  padding: 50px 0;
}

.projects-container {
/*   border: 3px solid red; */
/*   background-color: #FF6900; */
  background-color: var(--color-palette-3);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: space-around;
  align-content: center;
  text-align: center;
  height: 100vh
  width: 100%;
  padding: 50px;
}

#about {
/*   border: 3px solid purple; */
  grid-area: about;
}

#footer {
/*   border: 3px solid blue; */
  background-color: #FF2B0D;
  background-color: var(--color-palette-5);
  display: flex;
  grid-area: footer;
  text-align: center;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
}

.ul-footer {
/*   border: 1px solid orange; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-self: center;
  list-style-type: none;
  margin: 0px;
  padding: 50px;
}

.icon {
  color: black;
  font-size: 30px; 
  padding: 0px 50px;
}

.shadow-effect {
  box-shadow: 1px 1px 5px whitesmoke;
  border-radius: 5px;
}

@media only screen and (max-width: 500px) {

  #navbar {
    flex-direction: column;
    align-items: center;
  }
  
 .container {
/*   border: 3px solid yellow; */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "navbar"
    "main"
    "projects"
    "about"
    "footer";
   min-width: 300px;
  }
  
  .projects-container {
/*     border: 5px solid red; */
    height: 100%;
  }
  
  .ul-footer {
/*     border: 1px solid white; */
    flex-direction: column;
    height: 60vh;
  }
  
  
}

              
            
!

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