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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

	<header>
		<div class="academy-title">
			<i class="fas fa-chess"></i>
			<div class="name-academy">
				<h1 id="title">Vademecum</h1>
				<h2>Chess Academy</h2>
	        </div>
	    </div>
    <div class="footer-line">
				  <div class="color1"></div>
				  <div class="color2"></div>
				  <div class="color3"></div>
				  <div class="color4"></div>
				  <div class="color5"></div>
				  <div class="color6"></div>
		    </div>
	    <h3 class="survey-title">Survey Form</h3>
			<p id="description">Thank you for taking the time to help us improve the academy</p>    
	</header>

			<div class="container">
			    <form class="survey-form" id="survey-form">

			    	<div class="form-group">
						   <label id="name-label">Name</label>
					       <input type="text" name="Name" class="form-control" placeholder="Enter your name" required="" id="name">
					</div>

					<div class="form-group">
						<label id="email-label" for="email">Email</label>
						       <input type="email" name="email" class="form-control" placeholder="Enter your email" required="" id="email">
				    </div>

		        <div class="form-group">
		        	<label id="number-label" for="number">Age</label>
		        	<input type="number" name="age" id="number" min="4" max="99" class="form-control" placeholder="Age" required="">
		        </div>

		       <div class="form-group ">
		       	    <p>How frequently do you play in chess tournaments?</p>
		               <select id="dropdown" class="form-control">
		               	<option value="0">Less than one tournament per year</option>
		               	<option value="1" selected>One tournament per year</option>
		               	<option value="2">Two tournaments per year</option>
		               	<option value="3 - 5">Three - five tournaments per year</option>
		               	<option value="6 - 9">Six - nine tournaments per year</option>
		               	<option value="10 - more">Ten or more tournaments per year</option>
		               </select>
		       </div>

		       <div class="form-group">
		       	    <p>What is your chess level?</p>
				       	<select class="form-control">
				       		<option selected="">Beginner</option>
				       		<option>Intermediate</option>
				       		<option>Expert</option>
				       		<option>Master</option>
				       	</select>
		       </div>

		       	<div class="form-group">
		       		<p>What is your rating elo?</p>
		       		<select class="form-control">
		       			<option>&lt;1000</option>
		       			<option>1000-1200</option>
		       			<option selected="">1201-1400</option>
		       			<option>1401-1600</option>
		       			<option>1601-1800</option>
		       			<option>1801-2000</option>
		       			<option>2200-2400</option>
		       			<option>&gt;2400</option>
		       		</select>
		       	</div> 

		       	<div class="form-group question-options">
		       		<p>What would you like to see improved?</p>
	                    <label><input type="checkbox" name="general" value="general" class="input-checkbox">General understanding of chess</label>
	                    <label><input type="checkbox" name="Tactics" value="Tactics" class="input-checkbox">Tactics</label>
	                    <label><input type="checkbox" name="Strategy" value="Strategy" checked="" class="input-checkbox">Strategy</label>
	                    <label><input type="checkbox" name="Calculation" value="Calculation" class="input-checkbox">Calculation</label>
	                    <label><input type="checkbox" name="Opening" value="Opening" class="input-checkbox">Opening</label>
	                    <label><input type="checkbox" name="Middelgame" value="Middelgame" class="input-checkbox">Middelgame</label>
	                    <label><input type="checkbox" name="Endgames" value="Endgames" class="input-checkbox">Endgames</label>
	                    <label><input type="checkbox" name="other" value="other" class="input-checkbox">Other</label>
		       	</div>  

		        <div class="form-group">
		        	<p>What is your favorit playzone on the internet?</p>
		        	<select class="form-control">
		        		<option>chess.com</option>
		        		<option selected="">licess.org</option>
		        		<option>chess24.com</option>
		        		<option>chessclub.com</option>
		        		<option>other</option>
		        	</select>
		        </div>

		        <div class="form-group question-options">
                    <p>Would you recommend Vademecum ChessAcademy to a friend?</p>
                    <label><input name="user-recommend" value="definitely" type="radio" checked="" class="input-radio">Definitely</label>
                    <label><input name="user-recommend" value="maybe" type="radio" class="input-radio">Maybe</label>
                    <label><input name="user-recommend" value="not-sure" type="radio" class="input-radio">Not sure</label>
                </div>

                <div class="form-group">
	                <label>Any comments or suggestions?</label>
	                <textarea placeholder="Enter your comment here..." class="input-textarea"></textarea>
	            </div>    
            
			    <div>
			    	<button class="submit-btn" id="submit"><i class="fas fa-chess-board fa-spin"></i>Submit</button>
			    </div>

	    </form>
	</div>

       <div class="footer-line">
				  <div class="color1"></div>
				  <div class="color2"></div>
				  <div class="color3"></div>
				  <div class="color4"></div>
				  <div class="color5"></div>
				  <div class="color6"></div>
		    </div>
		<footer>
			<div class="footer-rightside">
			   <p>Follow us!</p>
               <a href="#"><i class="fab fa-facebook-square"></i></a>
               <a href="#"><i class="fab fa-instagram-square"></i></a>
               <a href="#"><i class="fab fa-twitter-square"></i></a>							
			</div>
			<div class="footer-leftside">
				<i class="fas fa-chess"></i>
			</div>
		</footer>

    <script src="https://kit.fontawesome.com/21155fc47d.js" crossorigin="anonymous"></script>
	
              
            
!

CSS

              
                                           
     /*   General setup   */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-size: 16px;
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    text-rendering: optimizeLegibility;
    background-image: url("https://i.imgur.com/4e9md4f.png");
    background-position: left top;
    background-position-x: left;
    background-position-y: top;
    background-size: auto;
    background-repeat: repeat;
    background-attachment: fixed;
    background-color: #F4F5F5 ;
    margin-top: 0;
    line-height: 1.5;
    font-weight: 400;
        }

.container {
    max-width: 750px;
    margin: 0 auto 40px auto;
}

section {
    padding: 0 0 80px 0;
}

    /*     Header    */

header {
    width: 100%;
    margin-bottom: 30px;
}

.academy-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin: 0 auto;
    background-color: #00BF6F;   /*Main color*/
}      

.name-academy {
    text-align: left;
    margin: 0 0 0 15px;

}

.fa-chess {
    font-size: 75px;
    color: #fff;
    text-align: right;
    margin-right: 15px;
}

.name-academy h1 {
    color: #fff;
    font-size: 200%;
    font-weight: 900;
    font-family: "Raleway", Arial, sans-serif;
    word-spacing: 4px;
    letter-spacing: 1px;
    margin: 0;
}

.name-academy h2 {
    color: #fff;
    font-size: 160%;
    font-weight: 700;
    font-family: "Raleway", Arial, sans-serif;
    word-spacing: 2px;
    letter-spacing: 1px;
    margin: 0;
}

.survey-title {
    color: #00BF6F;
    text-align: center;
    font-size: 180%;
    font-weight: 900;
    font-family: "Raleway", Arial, sans-serif;
    word-spacing: 3px;
    letter-spacing: 1px;
    margin: 30px 0 0 0;
}

#description {
    color: #00BF6F;
    font-size:16px; 
    font-weight:400;
    font-style: italic;
    margin-bottom: 0.5rem;
    text-align: center;
}

    /* FORM */

form {
    margin: 0 auto;
    border-radius: 0.5rem;
    padding: 40px;
    box-shadow: 0 1px 6px 0 rgba(32, 33, 36, .28);
    background-color: #fff;
    border:thin solid #dadce0;
}

.form-group {
    margin: 0 auto 1.25rem auto;
    padding: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.3rem 0.7rem;
}

label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.question-options label {
    font-size: 1rem;
}

input, button, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

input[type=text],
input[type=email],
input[type=number],
select {
    border: 1px solid #aaaaaa;
    transition: all 0.25s;
    outline: none;
    border-radius: 3px;
    color: #202520;
    background-color:#F5F6F7;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=number]:focus,
select:focus {
    color: #555;
    border: 1px solid rgba(82,168,236,0.8);
    border-color: rgba(82,168,236,0.8);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(82,168,236,0.6);
}

.input-checkbox,
.input-radio {
    display: inline-block;
    margin-right: 0.625rem;
    min-height: 1.25rem;
    min-width: 1.25rem;
    font-size: 1rem;
}

.input-textarea {
    min-height: 100px;
    width: 100%;
    padding: 10px;
    border-radius: 3px;
    resize: vertical;
    color: #202520;
    background-color:#F5F6F7;
    border: 1px solid #aaaaaa;
    transition: all 0.25s;
    outline: none;
}

.input-textarea:focus {
    color: #555;
    border: 1px solid rgba(82,168,236,0.8);
    border-color: rgba(82,168,236,0.8);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(82,168,236,0.6);
}

p {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
}

.submit-btn {
    display: block;
    position: relative;
    padding: 0.75rem 3rem;
    background-color: #00BF6F;
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    border-radius: 10px;
    outline:none;
    border:none;
    cursor: pointer;
    margin: 0 auto;
    box-shadow: 0 3px #009959;
}

.submit-btn:hover {
    background-color: #00b368;
}

.submit-btn:active {
  box-shadow: none;
  top: 3px;
} 

.fa-chess-board {
    font-size: 1.5rem;
    color: #fff;
    text-align: right;
    margin-right: 20px;
}

     /*     Footer    */

footer {
    background-color: #00BF6F;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 150%;
    font-weight:700;
    color: #fff;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.footer-rightside{
    margin: 25px 100px 25px 0;
}

.footer-leftside{
    margin: 25px 0 25px 100px;
}

.footer-leftside .fa-chess{
    transform: rotate(-10deg);
    transition: transform 0.2s ease-out;
}

.footer-leftside .fa-chess:hover {
    transform: scale(1.2) rotate(0deg);
}

.footer-rightside p {
    color: #fff;
    font-size: 70%;
    font-weight: 200;
    font-family: Open Sans;
    text-align: center;
}

.footer-leftside .fa-chess {
    font-size: 50px;
}

a .fa-facebook-square,
a .fa-instagram-square,
a .fa-twitter-square {
    color: #f5f5f5;
}

a .fa-facebook-square:hover,
a .fa-instagram-square:hover,
a .fa-twitter-square:hover {
    color: #fff;
}

.footer-line {
  display:flex;
}

.color1 {
  width:16.67%;
  height:5px;
  background-color:#FFD600;
}
.color2 {
  width:16.67%;
  height:5px;
  background-color:#FF700F;
}
.color3 {
  width:16.7%;
  height:5px;
  background-color:#FF161F;
}
.color4 {
  width:16.7%;
  height:5px;
  background-color:#009164;
}
.color5 {
  width:16.7%;
  height:5px;
  background-color:#D31886;
}
.color6 {
 width:16.6%;
  height:5px;
  background-color:#005CA3;
}


/*-----------------*/
/*     Queries     */
/*-----------------*/

/* Big tablet to 1200px */
@media only screen and (max-width: 1200px) {
    .container { padding: 0 2%; }
    #description {
    margin: 0 4%;
    }
}

/* Small tablet to big tablet: from 768px to 1023px */
@media only screen and (max-width: 1024px) {
    body { font-size: 1rem; }
}

/* Small phones to small tablets: from 481px to 767px */
@media only screen and (max-width: 767px) {
    body { font-size: 1rem; }
    .container {padding: 0 4%; }
    section {
    padding: 0 0 60px 0;
    }
} 

/* Small phones: from 0 to 480px */
@media only screen and (max-width: 480px) {
    .container {
    margin: 0 auto 30px auto;
    }

    section {
    padding: 0 0 40px 0;
    }
    footer {
    font-size: 120%;
    font-weight:700;
    }

    .footer-rightside{
    margin: 30px 50px 30px 0;
    }

    .footer-leftside {
    margin: 30px 0 30px 50px;
    }

}   
              
            
!

JS

              
                
              
            
!
999px

Console