Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                
   <h1 id="title">Boorangoma Music Survey Form</h1>
    <p id="description">Please take the time to help us improve. </p>
    <form id="survey-form">
        <div class="form-control">
          <label for="name" id="name-label">Name    
          </label>  
          <input type="text"
          id="name"
          placeholder="eg John Doe"
          required/>
        </div>
        <div class="form-control">
            <label for="email" id="email-label">
                Email
            </label>
            <input type="email" 
            name="email" 
            id="email"
            placeholder="eg [email protected]"
            required/>
        </div>
        <div class="form-control">
            <label for="number" id="number-label">
                
                Age
            </label>
            <input type="number" 
            name="age" 
            id="number"
            placeholder="Please enter your age"
            min="7"
            max="105"
            required>
        </div>
        <div class="form-control">
            <label for="dropdown" id="role-dropdown">
                Please pick an option that best describes your role
            
            </label>
            <select name="role" id="dropdown">
                <option disabled selected value>Please pick one</option>
                <option value="artist">Artist</option>
                <option value="manager">Manager</option>
                <option value="promoter">Promoter</option>
                <option value="crew">Stage Crew</option>
            </select>
        </div>
        <div class="form-control">
            <label>Would you recommend Boorangoma Music to a friend?

            </label>
            <label for="yes">
                <input type="radio"
                id="yes"
                value="yes"
                name="user-recommend">Oh yeah!</label>
            <label for="no">
            <input type="radio" 
            value="no"
            name="user-recommend" 
            id="no">Hell no!
            </label>
            <label for="maybe">
                <input type="radio" 
                value="maybe"
                name="user-recommend"
            id="maybe">I might...
            </label>

        </div>

        <div class="form-control">
            <label>What would you like us to do more of?<small>(Pick as many options as you'd like)

            </small></label>

        </div>
        <div class="form-control">
            <label for="shows">
                <input type="checkbox"
                       id="shows"
                       name="shows"
                       value="shows">Live Shows</label>
            <label for="mic">
                <input type="checkbox"
                       name="mic"
                       id="mic"
                       value="mic">Open Mics</label>
            <label for="battles">
                <input type="checkbox"
                       name="battles"
                       id="battles"
                       value="battles">Battles</label>
            <label for="launch">
                <input type="checkbox"
                       name="launch"
                       id="launch"
                       value="launch">Launch Parties</label>
            <label for="vids">
                <input type="checkbox"
                       name="vids"
                       id="vids"
                       value="vids">Music Videos</label>
            <label for="pa">
                <input type="checkbox"
                       name="pa"
                       id="pa"
                       value="pa">PA System Hire</label>
            <label for="mixing">
                <input type="checkbox"
                       name="mixing"
                       id="mixing"
                       value="mixing">Mixing and Mastering Services</label>
            <label for="promo">
                <input type="checkbox"
                       name="promo"
                       id="promo"
                       value="promo">Promo Services</label>
            
        </div>
        
        <div class="form-control">
            <label for="comment">
                Any comments or suggestions
            </label>
 
           
            <textarea 
            name="comment" 
            id="comment"
            placeholder="Enter your comment here"
            ></textarea>
        </div>
  
        




      <button type="submit" id="submit">Submit</button>  
    </form>
    <footer id="footer">Made by Brandon</footer>
              
            
!

CSS

              
                html{
    font-size: 10px;
}

*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
body{
background-color: #CBA0E2;
color:#282f38;
}

body::before{
    content:"";
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    width:100vw;
    background-image: url(https://cdn.pixabay.com/photo/2015/11/22/19/04/crowd-1056764__340.jpg);
    z-index: -1;
    opacity: 0.2;

    
}

#title{
    font-size:2rem;
    font-weight: 900;
    text-align: center;
    color:#e0e5eb;
    margin:10px 10px 10px 15px;
}

@media (min-width:600px){
    #title{
        font-size:3rem;
        font-weight: 900;
        text-align: center;
        color:#e0e5eb;
        margin:10px 10px 10px 15px;
    }
    
}


#description{
    font-size:1.8rem;
    font-weight:400;
    text-align: center;
    margin-bottom: 2rem;
    color:#e0e5eb;
}

@media(min-width:600px){
    #description{
        max-width:70vw;
        margin:auto;
        font-size:2.8rem;
        font-weight:400;
        text-align: center;
        margin-bottom: 2rem;
        color:#e0e5eb;
    }

}

#survey-form{
    font-size: 1.5rem;
    max-width:80vw;
    max-height:auto;
    margin:auto;
    padding:50px;
    border: 2px solid #d3d3d3;
    border-radius:30px;
    background-color:#E0DFE4;
    box-shadow: 1px 1px 1px #93a8ece6;
    margin-bottom:40px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;

}

@media (min-width:600px){
    #survey-form{
        font-size: 1.5rem;
        max-width:50vw;
        max-height:auto;
        margin:auto;
        padding:20px;
        border: 2px solid #d3d3d3;
        border-radius:30px;
        background-color:#E0DFE4;
        box-shadow: 1px 1px 1px #93a8ece6;
        margin-bottom:20px;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    
    }
}



.form-control {
    text-align: left;
    margin-bottom: 25px;  

}

.form-control label {
    display: block;
    margin-bottom: 10px;
}

.form-control input,
        .form-control select,
        .form-control textarea {
            border: 1px solid #777;
            border-radius: 20px;
            padding: 10px;
            display: block;
            width: 95%;
            
        }

      
        .form-control input[type="radio"],
        .form-control input[type="checkbox"] {
            display: inline-block;
            width: auto;
          margin-right:15px;
        }

        button {
            background-color: #bfb8ca;
            border: 1px solid #777;
            box-shadow: 5px 5px 5px #d9def0e6;
            border-radius: 12px;
            font-family: inherit;
            font-size: 2rem;
            display: block;
            width: 80%;
            margin:auto;
            margin-top: 20px;
            margin-bottom: 20px;
        cursor:pointer;}

        button:hover{
           animation-name: scale; 
           animation-duration: 700ms;
           animation-iteration-count: infinite;
           background-color: #C3CAB8;
           color:#ffffff;
        }

@keyframes scale {
    0%{
        transform: scale(0.99);
    }
50%{
    transform: scale(1);
}
100%{
    transform: scale(1.01);
}
}
#footer{
    color:#e0e5eb;
    font-size:2rem;
    text-align:center;
    font-weight:600;
    margin-bottom:10px;
    opacity: 0.9;
}


              
            
!

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