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>

<!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css">
    <title>Musician Survey</title>
</head>
<body>
    
    <div id="container">
        <div class="titulo">
            <h1 id="title">Musician Survey</h1>
            <p id="description">In the covid era we know your value and we miss you at stage.</p>
         </div>
     <form id="survey-form">
         <div class = "row">
             <div class="col-25">
                <label for="name" id="name-label">Name</label> 
             </div>   
             <div class="col-75">
                <input type="text" id="name" name="name" placeholder="Write your name please" required>
              </div>
        </div>
        <div class="row">
             <div class="col-25">
                <label for="email" id="email-label">Email</label> 
             </div>
             <div class="col-75">  
                <input type="email" id="email" name="email" placeholder="Write your email" required >
              </div>
         </div>   
         <div class="row">
            <div class="col-25">
                <label for="number" id="number-label">Age</label>
             </div>   
              <div class="col-75">  
                 <input name="number" type="number" id="number" min="18" max="99" placeholder="Age" required>
                </div>
         </div>      
         <div class="row"> 
                <div class="col-25">
                    <p>Are you a singer, composer, instrument-player?</p> 
                 </div> 
                 <div class="col-75">   
                    <select id="dropdown" class="form-control"> 
                    <option disabled="" selected="" value="dropdown">Select an option</option>
                    <option value="singer">singer</option>
                    <option value="composer">composer</option>
                    <option  value="instrument-player">instrument-player</option>
                    <option  value="all">all</option>
                    </select>
                </div> 
         </div>
         <div class="row">
                <div class="col-25">
                    <p>Instruments you play</p>
                  </div>
                  <div class="col-75"> 
                    <label> <input name="guitar" type="checkbox" value="Guitar">Guitar</label>
                    <label> <input name="drumer"  type="checkbox" value="Drums">Drums</label>
                    <label><input name="bassplayer" type="checkbox" value="Bass">Bass</label>
                    <label><input name="keyword"  type="checkbox" value="Keywords">Keywords</label>
                    <label><input name="saxplayer"  type="checkbox" value="Sax">Sax</label>
                    <label><input name="percu" type="checkbox" value="Percussion">Percussion</label>
                    <label><input name="other"  type="checkbox" value="Other">Other</label>
                </div>
         </div>
        <div class="row"> 
             <div class="col-25">
            <p>What is the most you miss?</p>
              </div>
              <div class="col-75">
                    <label>Play live<input type="radio" name="miss" value="play"></label>
                    <label>Tour<input type="radio" name="miss" value="tour"></label>
                    <label>Recording<input type="radio" name="miss" value="recording"></label>
                </div>    
        </div>
         <div class="row">
             
                    <label>How this pandemy did you affect?      Did you reinvent yourself?</label>
               
               <div>    
                        <textarea id="comment">Tell your story</textarea>
                </div>
         </div>     
                <div>
                    <button id="submit" type="submit" name="submit" value="submit">SEND</button>
                </div>
            
        </form>

    </div>

</body>
</html>
              
            
!

CSS

              
                body{
    height: 100vh;
    width: 100vw;
    background-image: url(https://www.morrisonhotelgallery.com/images/big/rh-metallica-blackalbum001.jpg
    ); 
    background-size: cover;  
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: white;
    text-align: center;
    display: grid;
}
#container{
  border-radius: 10px;
  background-color: #031105;
  opacity: 90%;
  margin-left: auto;
  margin-right: auto;
  width: 750px;
  height: auto;
  padding-top: -20px;
  font-size: 15px;
    
    
}
form{
    padding: 2px;
    padding-bottom: 5px;
    width: auto;
    margin: auto;
    color: white;
    font-weight: 700;
  
}
input, select, textarea{
    width: 65%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    color: rgba(17, 16, 56, 0.938);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  }
  #input-textarea{
      height: 175px;
 } 
  label {
    padding: 4px 4px ;
    display: inline-block;
    font-size: 15px;
  } 
  .titulo{
      padding-top: 5px;
      padding-bottom: -10px ;
 }
  h1{
      margin-bottom: -17px;
  }
  button{
      width: 45%;
      margin-top: 10px;
      border-radius: 10px;
      background-color: rgb(45, 226, 84);
      color: white;
      font-weight: bold;
      height: 30px;
      font-size: 14px;
       border-style: solid;
      border-width: 3px;
      border-color: black;
      cursor:pointer;
  }
button:hover {
    background-color: #3eb6ee;
    animation-name: boton;
    animation-duration: 2s;
} 
@keyframes boton{
    0% { width: 45%;

    }
    100%{ width: 65%;

    }

} 
              
            
!

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