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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <!-- 1. HTML -->

<html>
  
<!-- 2. Here is my head tag where I can link to external libraries -->
<head>
  
 <!-- 3. Here is my refernce to Font Awesome -->
<link rel="stylesheet" href="mystyle.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
  
<!-- 4. Here are my references to Google Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@100;200&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300&display=swap" rel="stylesheet">
</head>

<body>
  <!-- 5. This is the navigation link icon in the top right corner of the page -->
  <p class="top">
     <span class="topnav"><i class="fa fa-bars" aria-hidden="true"></i></span>
</p>
  <!-- 6. The following h3 tag and h1 tag are my page titles -->
 <h3>KIBI.ONE PRESENTS</h3>
 <h1>BEGINNER APP</h1>
  
  <!-- 7. Here I'm using "img src=" to link to the small avatar image -->
  <img class="avatar" src="https://www.kibi.one/courses/wp-content/uploads/2021/01/avatar2.png" alt="SaaS dashboard">

<!-- 8. Hwew is the short paragraph under the avatar image -->
<p class="firstclass" id="first">If you enjoy these tutorials head over to www.kibi.one to learn more about our no-code incubator program.</p>
  
 <!-- 9. Here is a div which acts as my my container -->
  <div class="container">
    
 <!-- 10. Here is the input field and button -->
    <input class ="form" id="my-input" type="text"><button class="button" id = "my-todo">⚡</button>
    
 <!-- 11. Here is a new empty div which will contain the to-dos we add -->
 <div class = "to-dos" id = "my-container"></div>
 </div>
 
<!-- 12. Here is my footer -->
<p class="secondclass" id="second"><br>Made With 💜 at Kibi.One </p>

</body>

</html>
              
            
!

CSS

              
                /* 1. Design section forthe navigation icon in the top right corner */

.top {
   position:fixed;
   left:0px;
   top:0px;
   height:40px;
   width:100%;
   background:#0c0417;
   margin: 0px;
   padding: 0px;
  color: #9ea9ca;
}

/* 2. Design section forthe top dark navigation bar and header */
.topnav {
  display: block;
  position: fixed;
  right: 0px;
  top: 0px;
  width: 50px;
  padding: 10px;
}

/* 3. Design section the h1 tag that says "Beginner App" */
h1 {
  color: #e9e9e9;
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
}

/* 4. Design section for the h3 tag that says "Kibi.One Presents" */
h3 {
  color: #e9e9e9;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8em;
  font-weight: 200;
}

/* 5. Design section for the short paragraph of text under the avatar */

.avatar {
  width: 150px;
  
}

/* 6. Design section for the short paragraph of text under the avatar */
.firstclass {
  color: #c5c6e9;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8em;
  font-weight: 200;
  margin: 10px 90px 20px 90px;
}

/* 7. Design section for the text within the footer */
.secondclass {
  font-size: 0.8em;
  position:fixed;
  left:0px;
  bottom:0px;
  height:50px;
  width:100%;
  background:#0c0417;
  padding: 0px;
  margin: 0px;
  color: #9ea9ca;
  text-align: center;
  front-weight: thin;
  font-size: 0.8em;
  font-family: "Raleway", sans-serif;
}

/* 8. Design section for the main HTML body tag */
body {
  background-color: #100f1f;
  text-align: center;
  margin: 0px;
  padding: 45px;
}

/* 9. Design section for the form */
.form {
  background-color: #3c265c;
  color: #e4dcf0;
  border: none;
  height: 35px;
  width: 320px;
  padding-left: 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8em;
  font-weight: 200;
  outline:none;
}

/* 10. Design section for the button */
.button {
  background-color: #6a33b9;
  border: none;
  height: 37px;
  width: 45px;
  outline:none;
  transition: 0.7s;
}

/* 11. Design section when the button is hovered over */
.button:hover {
  background-color: #8735fd;
  transition: 0.7s;
}

/* 12. Design section for where we'll add the newly added to-dos */
.to-dos {
  color: #9ea9ca;
}

/* 13. Design section for our newly added to-dos */
.blurb-style {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8em;
  font-weight: 200;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  background-color: #6333a7;
  width: 360px;
  padding: 10px 10px 10px 10px;
  border-radius: 5px;
}

/* 14. Design section for our newly added to-dos */

@media only screen and (max-width: 600px) {
  .firstclass {
  color: #c5c6e9;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8em;
  font-weight: 200;
  margin: 10px 15px 20px 15px;
  }
  
  /* 15. Design section for our newly added to-dos */
  body {
  background-color: #100f1f;
  text-align: center;
  margin: 0px;
  padding: 40px;
}
  
 /* 16. Design section for our newly added to-dos */
.form {
  background-color: #3c265c;
  color: #e4dcf0;
  border: none;
  height: 35px;
  width: 260px;
  padding-left: 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8em;
  font-weight: 200;
  outline:none;
}

/* 17. Design section for our newly added to-dos */
.button {
  background-color: #6a33b9;
  border: none;
  height: 37px;
  width: 45px;
  outline:none;
  transition: 0.7s;
}
  
/* 18. Design section for our newly added to-dos */
.blurb-style {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8em;
  font-weight: 200;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  background-color: #6333a7;
  width: 300px;
  padding: 10px 10px 10px 10px;
  border-radius: 5px;
}
}


              
            
!

JS

              
                let textField = document.getElementById("my-input"); // 1. Input field
let myButton = document.getElementById("my-todo"); // 2. Button
let containerMain = document.getElementById("my-container"); // 3. Container


myButton.addEventListener('click', function() { // 4. This is an event listener on the button that is triggering a function
  
  var paragraph = document.createElement("p"); // 5. new paragraph will be created each time button is pressed
  
  paragraph.classList.add("blurb-style"); // 6. Changes the syling of input secion
  
  paragraph.innerText = textField.value; // 7. Inputs the value of the input fiend into innerText
  
  containerMain.appendChild(paragraph); // 8. This appends step 5 into the site. 
  
  textField.value=""; // 9. Retruns empty input field after sumission
  
  paragraph.addEventListener('dblclick', function() {
  containerMain.removeChild(paragraph);                   
  
   
     })

})
              
            
!
999px

Console