Created
February 20, 2019 15:05
-
-
Save Torh-21/c8b508a2bcf6eb7d1130e2f567c744f8 to your computer and use it in GitHub Desktop.
Fork Me! FCC: Test Suite Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Survey Form</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" type="text/css" media="screen" href="main.css"> | |
</head> | |
<body> | |
<h1 id="title">Survey Form</h1> | |
<div id="container"> | |
<form id="survey-form"> | |
<div id="row"> | |
<p id="description">Let us know how we can impove Rubik's Gallery</p> | |
</div> | |
<div id="row"> | |
<div id="labels"> | |
<label for="name" id="name-label">* Name: </label> | |
</div> | |
<div id="rightTab"> | |
<input type="text" id="name" name="name" placeholder="Enter your name" required class="input-area"> | |
</div> | |
</div> | |
<div id="row"> | |
<div id="labels"> | |
<label for="email" id="email-label">* Email: </label> | |
</div> | |
<div id="rightTab"> | |
<input type="email" id="email" name="email" placeholder="Enter your email" required class="input-area"> | |
</div> | |
</div> | |
<div id="row"> | |
<div id="labels"> | |
<label for="age" id="number-label">* Age: </label> | |
</div> | |
<div id="rightTab"> | |
<input type="number" id="number" name="age" placeholder="Age" min="18" max="125" required class="input-area"> | |
</div> | |
</div> | |
<div id="row"> | |
<div id="labels"> | |
<label for="dropdown">Which Option best describes your current role? </label> | |
</div> | |
<div id="rightTab"> | |
<select name="role" id="dropdown"> | |
<option disabled value>Select an option</option> | |
<option value="student">Student</option> | |
<option value="full_time_job">Full Time Job</option> | |
<option value="full_time_learner">Full Time Learner</option> | |
<option value="prefer_not_to_say">Prefer Not To Say</option> | |
<option value="other">Other</option> | |
</select> | |
</div> | |
</div> | |
<div id="row"> | |
<div id="labels"> | |
<label for="recommend">* How likely is that you would recommend freeCodeCamp to a friend?</label> | |
</div> | |
<div id="rightTab"> | |
<input type="radio" name="recommend" value="Definitely" id="radio"> Definitely <br/> | |
<input type="radio" name="recommend" value="Maybe" class="radio"> Maybe <br/> | |
<input type="radio" name="recommend" value="Not sure" class="radio"> Not sure <br/> | |
</div> | |
</div> | |
<div id="row"> | |
<div id="labels"> | |
<label for="dropdown">What do you like most in Rub!k's Gallery</label> | |
</div> | |
<div id="rightTab"> | |
<select name="like" id="like" id="dropdown"> | |
<option disabled selected value>Select an option</option> | |
<option value="Challenges">Challenges</option> | |
<option value="Projects">Projects</option> | |
<option value="Community">Community</option> | |
<option value="Open_source">Open source</option> | |
</select> | |
</div> | |
</div> | |
<div id="row"> | |
<div id="labels"> | |
<label for="improve">Things that should be improve in the future (Check all that apply):</label> | |
</div> | |
<div id="rightTab"> | |
<div class="checkbox"> | |
<input type="checkbox" name="improve1" value="Architecture" > Architecture | |
</div> | |
<div class="checkbox"> | |
<input type="checkbox" name="improve2" value="Caligraphy" > Caligraphy | |
</div> | |
<div class="checkbox"> | |
<input type="checkbox" name="improve3" value="Ceramics" > Ceramics | |
</div> | |
<div class="checkbox"> | |
<input type="checkbox" name="improve4" value="Computer" > Computer | |
</div> | |
<div class="checkbox"> | |
<input type="checkbox" name="improve5" value="Conceptual" > Conceptual | |
</div> | |
<div class="checkbox"> | |
<input type="checkbox" name="improve6" value="Drawing" > Drawing | |
</div> | |
<div class="checkbox"> | |
<input type="checkbox" name="improve7" value="Graphic" > Graphic | |
</div> | |
</div> | |
</div> | |
<div id="row"> | |
<div id="labels"> | |
<label for="comment">Any comments or Suggestions?</label> | |
</div> | |
<div id="rightTab"> | |
<textarea name="comment" style=" height: 50px; resize: vertical;" class="input-area" rows="6" cols="50" placeholder="Enter your comment here..."></textarea> | |
</div> | |
</div> | |
<div id="row"> | |
<button id="submit" type="submit">Submit</button> | |
</div> | |
</form> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// !! 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html,body{ | |
height: 100%; | |
text-align: center; | |
} | |
body{ | |
background-image: linear-gradient(to right top, #051937, #004d7a, #008793, #00bf72, #a8eb12); | |
font: 400 16px arial; | |
margin: 8px; | |
} | |
h1{ | |
font-size: 2em; | |
font-weight: bold; | |
} | |
#container{ | |
background-color: rgb(250, 250, 250); | |
width: 75%; | |
max-width: 900px; | |
margin: 10px auto 20px; | |
border-radius: 5px; | |
padding: 10px; | |
padding-top: 20px; | |
} | |
#row{ | |
width: 96%; | |
margin-top: 10px; | |
} | |
#labels{ | |
width: 40%; | |
display: inline-block; | |
vertical-align: top; | |
text-align: right; | |
padding: 5px; | |
} | |
#rightTab{ | |
width: 48%; | |
display: inline-block; | |
text-align: left; | |
vertical-align: middle; | |
padding: 5px; | |
} | |
.checkbox{ | |
display: block; | |
padding-top: 2px; | |
padding-bottom: 10px; | |
} | |
input[type="radio"]{ | |
margin-bottom: 10px; | |
} | |
#dropdown{ | |
height: 35px; | |
width: 140px; | |
padding: 5px; | |
border: 1px solid #c0c0c0c0; | |
border-radius: 2px; | |
} | |
.input-area{ | |
height: 20px; | |
width: 280px; | |
padding: 5px; | |
border: 1px solid #c0c0c0c0; | |
border-radius: 2px; | |
} | |
#submit { | |
background-color: #59ace0; | |
border-radius: 4px; | |
color: white; | |
font-size: 1em; | |
height: 40px; | |
width: 96px; | |
margin: 10px; | |
border: 0px solid; | |
} | |
@media screen and (max-width: 833px) { | |
.input-area { | |
width: 80%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment