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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!DOCTYPE html>
<html lang="en">
  <head>
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="./styles.css" />
    <title>TFT Survey Form</title>
  </head>
  <main>
    <div id="container">
      <h1 id="title">Teamfight Tactics Survey Form</h1>
      <p id="description">
        Thank you for taking the time to help us improve the game
      </p>
      <form id="survey-form">
        <label for="name" id="name-label" class="label-text">Name
          <input
            type="text"
            id="name"
            name="name"
            required
            placeholder="Enter your name"
          />
        </label>
        <label for="email" id="email-label" class="label-text">Email
          <input
            type="email"
            id="email"
            name="email"
            required
            placeholder="Enter your email"
          />
        </label>
        <label for="number" id="number-label" class="label-text">Age
          <input
            type="number"
            id="number"
            max="99"
            min="1"
            required
            placeholder="Enter your age"
          />
        </label>
        <p id="league-text">What is your current league?</p>
        <label for="dropdown" id="dropdown-label">

          <select id="dropdown" name="league" required>
            <option disabled selected value>Select current league</option>
            <option value="student">Iron</option>
            <option value="job">Bronze</option>
            <option value="learner">Silver</option>
            <option value="preferNo">Gold</option>
            <option value="other">Platinum</option>
            <option value="other">Diamond</option>
            <option value="other">Master / Grandmaster/ Challenger</option>
          </select>
        </label>
        <div class="buttons-radio">
          <p>Would you recomend TFT to a friend</p>
          <label for="definitely">
            <input
              name="user-recommend"
              value="definitely"
              id="definitely"
              type="radio"
              class="input-radio"
              checked
            />Definitely</label
          >
          <label for="maybe">
            <input
              name="user-recommend"
              value="maybe"
              id="maybe"
              type="radio"
              class="input-radio"
              checked
            />Maybe</label
          >
          <label for="i-wouldn't">
            <input
              name="user-recommend"
              value="i wouldn't"
              id="i-wouldn't"
              type="radio"
              class="input-radio"
              checked
            />i wouldn't</label
          >
          <p>What would you like to see improved?</p>
          <label for="champions">
            <input
              name="prefer"
              value="champions"
              id="champions"
              type="checkbox"
              class="input-checkbox"
            />Champions
          </label>
          <label for="balance"
            ><input
              name="prefer"
              value="game-balance"
              id="balance"
              type="checkbox"
              class="input-checkbox"
            />Game balance
          </label>
          <label for="bugs">
            <input
              name="prefer"
              value="game-bugs"
              id="bugs"
              type="checkbox"
              class="input-checkbox"
            />Game bugs
          </label>
          <label for="gold">
            <input
              name="prefer"
              value="gold"
              id="gold"
              type="checkbox"
              class="input-checkbox"
            />Gold earnings
          </label>
          <label for="items">
            <input
              name="prefer"
              value="items"
              id="items"
              type="checkbox"
              class="input-checkbox"
            />Items
          </label>
          <label for="timeouts"
            ><input
              name="prefer"
              value="timeouts"
              id="timeouts"
              type="checkbox"
              class="input-checkbox"
            />Timeouts
          </label>
          <textarea
            name="text"
            id="text-area"
            placeholder="Please feel free to leave any comments here..."
          ></textarea>
        </div>
        <label id="submit-button">
          <input id="submit" type="submit" value="Submit" />
        </label>
      </form>
    </div>
  </main>
  <footer>
    <p id="footer-text">
      2020 &#169;
      <a
        id="linkedin"
        href="https://www.linkedin.com/in/alvaro-arganaraz/"
        target="_blank"
        >Alvaro Argañaraz</a
      >
      / A Free Code Camp Project
    </p>
  </footer>
</html>

              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Roboto|Roboto+Slab&display=swap");

body {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(https://www.esportsportal.com/wp-content/uploads/2019/09/Teamfight-Tactics-4k.jpg)
      center/cover fixed no-repeat;
}

#container {
  width: 70%;
  padding: 2vh 2vw;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  margin: 7vh auto;
  text-align: left;
}

h1 {
  color: greenyellow;
  font-family: Roboto Slab, Roboto, sans-serif;
  font-size: 2.5rem;
  text-align: center;
}

p {
  color: white;
  font-family: Roboto, sans-serif;
  font-size: 1.3rem;
  text-align: left;
  font-weight: 600;
}

#description {
  text-align: center;
}

form {
  color: white;
  font-family: Roboto, sans-serif;
  font-size: 1.2rem;
}

input {
  width: 90%;
  font-size: 1.1rem;
  font-family: roboto, sans-serif;
  text-align: left;
  padding: 0.5% 5%;
  border-radius: 0.5rem;
  align-items: left;
  margin: 1.5rem 0;
}

#dropdown {
  width: 100%;
  font-family: Roboto, sans-serif;
  font-size: 1.1rem;
  border-radius: 0.5rem;
}
select {
  margin: 0rem 0 0rem 0;
  padding: 0.5% 5%;
  margin: 0.5rem 0 1.5rem 0;
}

.buttons-radio {
  text-align: left;
  margin: 0;
  padding: 0;
}

.input-radio {
  text-align: left;
  align-items: left;
  align-self: start;
  align-content: left;
  width: 5%;
  min-height: 1rem;
  min-width: 1rem;
  margin: 1.5%;
}
label {
  display:block;
  color: white;
  font-family: Roboto, sans-serif;
  font-size: 1.3rem;
  text-align: left;
  font-weight: 600;
}
.label-text {
  color: white;
  font-family: Roboto, sans-serif;
  font-size: 1.3rem;
  text-align: left;
  font-weight: 600;
  }

.input-checkbox {
  text-align: left;
  align-items: left;
  align-self: start;
  align-content: left;
  width: 5%;
  display: inline-block;
  min-height: 1rem;
  min-width: 1rem;
  margin: 1.5%;
}

#text-area {
  width: 100%;
  height: 15vh;
  border-radius: 0.5rem;
  font-family: Roboto, sans-serif;
  font-size: 1.2rem;
  margin: 1.5rem 0;
}
#submit {
  display: block;
  width: 40%;
  height: 30%;
  text-align: center;
  margin: auto;
  background-color: greenyellow;
  border: 0;
  font-weight: 600;
  font-size: 1.4rem;
  cursor:pointer;
}

#linkedin {
  color: greenyellow;
}
#linkedin:hover {
  color: blue;
}
h1:hover {
  color: greenyellow;
}

#submit-button:hover {
  cursor: pointer;
}
#footer-text {
  text-align: center;
}

@media screen and (max-width: 550px) {
  h1 {
    font-size: 1.75rem;
  }
}


              
            
!

JS

              
                
              
            
!
999px

Console