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

              
                <head>
  <title>Navid's football club</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fugaz+One&display=swap" rel="stylesheet">
  <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Handlee&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
    
</head>
<body>
  <header>
    <h1 id="title">Navid's Football Club</h1>
    <p id="description">Thank you for taking the time to help us improve the club with your valuable feedbacks</p>
  </header>
 <main>
   <form id="survey-form">
     <div class="infobox">

     <label
            id="name-label" 
            for="name">Name</label>
       <input 
              id="name" 
              class="box-control"
              type="text" 
              placeholder="Enter your name"
              required
              >
       
     </div>
     <div class="infobox">
     <label 
            id="email-label" 
            for="email">Email</label>
       <input 
              id="email" 
              class="box-control"
              type="email"
              placeholder="Enter your Email"
              required>
    
     </div>
     <div class="infobox">
     <label 
            id="number-label" 
            for="number">Age</label>
       <input 
              id="number" 
              class="box-control"
              type="number"
              min="5"
              max="100"
              placeholder="Age">
     
     </div>
     <p class="sentence">What is your football skill level?</p>
     <label for="dropdown">
       <select name="skill" id="dropdown" class="box-control" required>
         <option disabled selected value>Select your skill level</option>
         <option value="beginner">Beginner</option>
         <option value="elementary">Elementary</option>
         <option value="intermediate">Intermediate</option>
         <option value="advanced">Advanced</option>
         <option value="professional">Professional</option>
       </select>
     </label>
     <p class="sentence"> In your opinion which of the following requires improvement?</p>
     <label for="coaching">
       <input type="radio" id="coaching" value="coaching" name="improvement" class="input-radio">Coaching
     </label>
     <label for="registration">
       <input type="radio" id="registration" value="registration" name="improvement" class="input-radio">Registration Process
     </label>
     <label for="pitch">
       <input type="radio" id="pitch" value="football-pitch" name="improvement" class="input-radio">Football Pitch
     </label>
     <label for="locker">
       <input type="radio" id="locker" value="locker" name="improvement" class="input-radio">Locker Room 
     </label>
     <label for="equipment">
       <input type="radio" id="equipment" value="equipment" name="improvement" class="input-radio">Practice Equipment
     </label>
     <label for="notneeded">
       <input type="radio" id="notneeded" value="other" name="improvement" class="input-radio">No Improvement Needed-Everything's good
     </label>
     <label for="other">
       <input type="radio" id="other" value="other" name="improvement" class="input-radio">Other
     </label>
     <p class="sentence">If you have selected "Other" please provide details in the text box below:</p>
     <label for="text-explanation">
       <input type="text" placeholder="Provide Details" id="text-explanation" class="box-control">
     </label>
     <p class="sentence">And finally please let us know how you found out about Navid's Football Club. (select all that apply) </p>
     <label for="facebook">
       <input type="checkbox" id="facebook" value="facebook" name="findout" class="input-checkbox" >Facebook Advertisment
     </label>
     <label for="ff">
       <input type="checkbox" id="ff" value="familyfriends" name="findout" class="input-checkbox">Family and Friends
     </label>
     <label for="tv">
       <input type="checkbox" id="tv" value="tv" name="findout" class="input-checkbox">TV Advertisement
     </label>
     <label for="school">
       <input type="checkbox" id="school" value="school" name="findout" class="input-checkbox">School Leaflet
     </label>
     <label for="billboard">
       <input type="checkbox" id="billboard" value="billboard" name="findout" class="input-checkbox">Billboard Advertisement
     </label>
     <label for="othercheckbox">
       <input type="checkbox" id="othercheckbox" value="other" name="findout" class="input-checkbox">Other
     </label>
     <p class="sentence">Please write in the box below if you have any comments or suggestions for us.</p>
     <textarea id="comments" name="textarea" placeholder="Enter your comment here..." class="textarea"></textarea>
     <div class="submitsection">
     <button type="submit" id="submit" class="button">Submit</button>
     </div>
    
   </form>
  </main>
</body>
     
     
       
     
     

              
            
!

CSS

              
                body{
  font-size:62.5%; background:url(https://images.unsplash.com/photo-1585162562525-5f946b23cd00?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1558&q=80);
  background-position:center center;
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-size:cover;
  background-color:#464646;
}
h1{
font-family: 'Fugaz One', cursive;
  font-size:4em;
  color:#ffd500;
}
#description{
  font-size:1.7em;
 font-family: 'Open Sans', sans-serif;
  font-weight:500;
  color:white;
  padding-bottom:2vw;

}
header{
  text-align:center;
  margin:0vw;
  background-color:rgba(7, 0, 99,0.85);
  width:100%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 6px 6px rgba(0,0,0,0.3);
  
}

form{
  background-color:rgba(7, 0, 99,0.85);;
  margin-top:5vw;
  margin-right:16vw;
  margin-bottom:5vw;
  margin-left:16vw;
  font-size:1.5em;
  font-family: 'Open Sans', sans-serif;
  font-weight:500;
  color:white;
  border-radius:0.5%;
  box-shadow: 10px 10px 10px rgba(0,0,0,0.5), 0 6px 10px rgba(0,0,0,0.3);
 
  
}

label{
  display:block; 
  margin-top:0vw;
  margin-bottom:1vw;
  margin-right:1vw;
  margin-left:1vw;
  
}

.sentence{
  margin-left:1vw;
  margin-right:1vw;
}
.box-control{
  margin:1vw;
  width:95%;
  height:3.5vw;
  border-width:1px;
  display:block;
 
}
#dropdown{
  margin:-1vw 0vw;
  width:99%;
  height:3.5vw;
  border-width:1px;
}
#text-explanation{
  margin:0vw  0vw;
  border-width:1px;
  width:98%;
  height:3.5vw;
}
#comments{
  margin-top:1vw;
  margin-right:1vw;
  margin-bottom:1vw;
  margin-left:1vw;
  width:95%;
  height:12vw;
  border-width:1px;
  display:grid;
  justify-self:center;
 
}
.submitsection{
  margin:1vw;
  display:grid;
  
}
#submit{
  margin:1vw;
  height:4vw;
  
}
#submit:hover{

transform:scale(1.04);
 background-color:#35FF9C;
  cursor:pointer;
  
  }



              
            
!

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