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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<header id="header">
  <img id="header-img" class="logo" src="https://playnite.link/applogo.png" alt="playnite logo" />
  <nav id="nav-bar">
    <ul class=>
      <li><a class= "nav-link" href=#Features>Features</a></li>
      <li><a class= "nav-link" href=#Overview>Overview</a></li>
      <li><a class= "nav-link" href=#Download>Download</a></li>
</header>
<main>
<section id="hero" class="hero">
  <img id="playnite" src="https://playnite.link/screen1.jpg" alt="playnite image" />
  <h4>Tired of going through all your PC libraries to find that one game you swore you bought 5 years ago? Tired of all those icons cluttering up your start screen and desktop? Wish you could select all your games from one convient screen? Playnite is here for you.</h4>
  </section>
  <section id="Features">
    <div class="grid">
      <div class="icon"> <img id="logo-img" src="https://cdn.freebiesupply.com/images/large/2x/steam-logo-transparent.png" alt="steam logo" /></div>
      <div class="description">
        <h2>PC Launcher Intergration</h2>
        <p>Organize your PC games no matter the library from Epic Games Launcher to Steam.</p>
      </div>
    </div>
    <div class="grid">
      <div class="icon"> <img id="logo-img1" src="https://play-lh.googleusercontent.com/t1nG_mTQJMlCvxuG9zb8_z_49wOB-CZqQxckePA8Lz1-bhlwldX4Iv1qOXl85_zmYA=s180-rw" alt="retroarch logo" /> </div>
      <div class="description">
        <h2>Emulator Intergration</h2>
        <p>Add thousands of games from the Atari 2600 all the way to the Nintendo Switch thanks to emulator compatability.</p>
      </div>
    </div>
    <div class="grid">
      <div class="icon"> <img id="logo-img2" src="https://raw.githubusercontent.com/sevenns/Playnite-Blupur-Theme/master/Desktop/Blupur/Images/applogo.png" alt="fullscreen logo" /></div>
      <div class="description">
        <h2>Fullscreen Mode</h2>
        <p>When you want to kick back on your sofa and play some games, Fullscreen Mode makes controller navigation a breeze.</p>
      </div>
    </div>
  </section>
</div>
<section id="Overview">
  <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/4tFyEDYtu0c" frameborder="0" allowfullscreen></iframe>
</section>
<div class="email">
  <section id="Download">
    <h4>Enter Your Email Address To Get A Download Link And Begin Organizing Your PC Game Library!</h4>
    <div class="form">
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input type="email" name="email" id="email" placeholder="Enter Email" required />
      <input id="submit" type="submit" value="Download Now" class="btn" />
    </form>
      </div>
  </section>
</div>
  </main>
              
            
!

CSS

              
                *{
  margin: 0;
  padding: 0;
  box-sizing:border-box;
  list-style:none;
  text-decoration:none;
}
body{
  background-color:#696969;
  color:#FFFFFF;
  font-family: "Helvetica Neue",sans-serif;
  margin: auto;
}
header{
position:fixed;
display:flex;
justify-content:space-between;
align-items:center;
background-color: rgba(224,224,226,0.5);
width:100%;
}
.logo{
  max-width: 75px;
}
li{
 display:inline-block;
 padding: 0 20px;
}
a{
  color:white;
}

main{
  padding: 2em;
}
.hero {
    background-color: rgba(105,5,0);
    max-width: 900px;
    margin: 100px auto 50px;
    border-radius: 10px;
    height: auto;
    display: flex;
    flex-direction:column;
}
.hero img{
  display: block;
  max-width: 800px;
  margin: 20px auto;
}
@media(max-width: 600px){ 
  #playnite{
  padding:20px;
  max-width:560px;
  width:100%;
}
}
#hero h4{
  margin:15px auto 15px;
  text-align: justify;
  max-width:900px;
  font-size:20px;
  padding-left:2em;
  padding-right:2em;
}
#Features{
  margin: auto;
  max-width: 900px;
  padding: 5px;
  display:block;
  background-color: rgba(13,6,48);
  border-radius: 10px;
}

.grid{
  margin:40px;
}

.icon img{
  max-width: 50px;
  height: auto;
  float: left;
  padding-right: 5px;
}
.description{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#video{
 padding: 20px;
 display:block;
 margin:50px auto;
}

@media(max-width:600px){
  #Overview > iframe{
  max-width:560px;
  width:100%;
}
}
.email{
  background-color:rgba(227,100,20);
  max-width:500px;
  margin:auto;
  padding:10px;
  border-radius: 10px;
}  
.email h4{
  margin:20px auto auto;
  text-align: justify;
  max-width:500px;
  font-size:20px;
  padding-left:2em;
  padding-right:2em;
}
.email form{
  display: flex;
  flex-direction:column;
  align-items: center;
  padding: 2em;
}
#email{
  width: 300px;
  min-height: 40px;
  resize: vertical;
  border-radius: 5px;
}
.btn{
  margin-top: 10px;
  background-color:#C6D8FF;
  padding:10px;
  color:#000000;
  border-radius: 10px;
  cursor: pointer;
}
  
              
            
!

JS

              
                

              
            
!
999px

Console