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

              
                <nav id="navbar">
  <header>
    <h1>☕ Jenrykbot Docs</h1>
    </header>
  <ul>
    <a href="#first_step" class="nav-link"><li>First step</li></a>
    <a href="#jenryk_features" class="nav-link"><li>Jenryk features</li></a>
    <a href="#basic_api" class="nav-link"><li>Basic API</li></a>
    <a href="#troubleshooting" class="nav-link"><li>Troubleshooting</li></a>
    <a href="#contact" class="nav-link"><li>Contact</li></a>        
  </ul>
</nav>
<main id="main-doc">
  <section class="main-section" id="first_step">
    <header >
      <h2>First step</h2>
      </header>
    <p>So you got your own jenryk bot ? Let's give it a little test to see if everything is working correctly.</p>
    <code>jenryk.start() -> dance</code>
    <p>Did your robot dance a cool lil dance ? If your answer is a "YES !" then your robot is working perfectly. If not please refer to <a href="#troubleshooting">this chapter</a> .</p>
  </section>
  <section class="main-section" id="jenryk_features">
    <header>
      <h2>Jenryk features</h2>
      </header>
    <div class="list-container">
      <div class="list">
        <h3>What can jenryk do</h3>
        <ul>
          <li>Dance</li>
          <li>Code websites</li>
          <li>Laugh at cat memes</li>
          <li>Talk about himself as if he was a robot</li>
        </ul>
      </div>
      <div class="list">
        <h3>What can't jenryk do</h3>
        <ul>
          <li>Sing</li>
          <li>Code <i>cool</i> websites</li>
          <li>Draw</li>
          <li>Listen to bad music</li>
        </ul>
      </div>
    </div>
  </section>
  <section class="main-section" id="basic_api">
    <header>
      <h2>Basic API</h2></header>
    <p>Dance(break, robot-dance, ankward-dance)</p>
    <code>jenryk -> dance(option)</code>
    <p>Code website(tribute, survey, landing, documentation)</p>
    <code>jenryk -> code(option, askForFeedback=true)</code>
    <p>Laugh at cat memes</p>
    <code>!Does this automatically, no need for code</code>
    <p>You can create your own function like this:</p>
    <code>jenryk -> codeDance -> code AND dance</code>
  </section>
 <section id="troubleshooting" class="main-section">
   <header>
     <h2>Troubleshooting</h2>
     </header>
   <p>If it doesn't work just throw it into the nearest trashcan ¯\_(ツ)_/¯ </p>
 </section>
  <section id="contact" class="main-section">
    <header>
      <h2>Contact</h2>
      </header>
    <p>If you use this command on your robot:</p>
    <code>jenryk -> contact</code>
    <p>You will get the following links:</p>
    <ul class="center">
      <li><a href="https://github.com/Jenrykster">Github</a></li>
      <li><a href="https://www.freecodecamp.org/jenryk">FreeCodeCamp</a></li>
      <li><a href="https://codepen.io/jenrykster">Codepen</a></li>
    </ul>
    <p class="center">Thanks for reading until here ❤️</p>
  </section>
</main>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Rubik:ital,wght@0,400;0,700;1,400&display=swap');
body{
  display:flex;
  margin:0px;
  font-family: 'Rubik', sans-serif;
  --background: #2D142C;
  --main: #FCBB6D;
}
code{
  font-family: 'Fira Code', monospace;
}
.list-container{
  display:flex;
  flex-direction: row;
  justify-content: space-evenly;
}
.list h3{
  text-align:center;
}
#navbar{
  border: 1px solid black;
  min-width: 200px; 
  height:100vh;
  overflow: auto;
  position: sticky;
  top: 0;
}
#navbar header{
  text-align:center;
  position: sticky;
  top:0;
  background-color:white;
  padding-top:10px;
  padding-bottom:0px;
  font-weight: 600;
}
.nav-link{
  text-decoration: none;
  color: #505050;
  font-size: 0.9em;
  margin-left: 15px
}
li{
  border: 1px solid;
  border-width: 1px 0px 1px 0px;
  padding: 10px;
}
a{
  color:inherit;
}

a:focus{
  outline:dashed  2px;
}
ul{
  list-style-type: none;
  padding-left: 25px;
  margin-top:0px;
  padding: 10px 0px 0px 0px;
  margin-bottom:0px;
}
#navbar a{
  margin:0px;
}
#navbar li:hover{
  background-color:#eeeeee;
}
main{
  background-color: var(--background);
  color: var(--main);
}
.main-section {
  margin: 40px;
  font-weight: 50;
}

.main-section header{
  font-weight: 600;
  font-size:1.3em
}
.main-section code{
  background-color: #510A32;
  padding:10px;
  line-height:35px;
}

.center{
  text-align: center;
}

@media(max-width: 850px){
  .list-container{
    flex-direction:column;
  }
}

@media(max-width: 700px){
  body{
    flex-direction: column;
    overflow-x:hidden;
  }
  ul{
    text-align:center
  }
  #navbar{
    position:relative;
    height:100%;
    width:100%;
    
  }
  .list-container{
    flex-direction:column;
  }
 
}

@media(max-width: 400px){
  .main-section header{
    font-size: 1.1em;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console