Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files via upload #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Membership Form</title>
<link rel="stylesheet" href="./index.css"
<link rel="https://fonts.googleapis.com/css?family=Nunito:400,300" rel="stylesheet" type="text/css">
</head>
<body>
<form action="" method="POST">
<h1>Membership Form</h1>
<fieldset>

<legend><span class="section">1</span>Your Basic Info</legend>

<label class="" for="name">Name:</label>
<input type="text" name="name" value="">

<label class="" for="email">Email:</label>
<input type="email" name="email" value="">

<label class="" for="password">Password:</label>
<input type="password" name="password" value="">

<label>Age:</label>
<input type="radio" name="age" value="under_18">
<label class="light" for="under_25">Under 25</label><br />

<input type="radio" name="age" value="over_18">
<label class="light" for="over_25">Over 25</label>

</fieldset>

<fieldset>

<legend><span class="section">2</span>Your Profile</legend>

<label class="" for="bio">Bio:</label>
<textarea name="bio"></textarea>


</fieldset>

<button type="submit">Sigh Up</button>

</form>
</body>
</html>
99 changes: 99 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
* { box-sizing: border-box; }
body {
font-family: 'Nunito', sans-serif;
color: #38407;
}
form {
max-width: 300px;
margin: 10px auto;
padding: 10px 20px;
background: #f4f7f8;
border-radius: 8px;
}
h1{
margin: 0 030px 0;
text-align: center;
}
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
background: rgba(255,255,255,0.1);
border: none;
font-size: 16px;
height: auto;
margin: 0;
outline: 0;
padding: 15px;
width: 100%;
background-color: #e8eeef;
color: #8a97a0;
box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
margin-bottom: 30px;
}
input:focus, textarea:focus {
box-shadow: 0 0 5px rgba(81,203,238,1);
border: 1px solid rgba (81,203,238,1);
}
input[type="radio"],
input[type="checkbox"] {
margin: 0 4px 8px 0;
}

select {
padding: 6px;
height: 32px;
border-radius: 2px;
}

fieldset {
margin-bottom: 30px;
border: none;
}

legend {
display: block;
margin-bottom: 8px;
}

label {
display: block;
margin: 8px;
}

.section {
background-color: #5fcf80;
color: #fff;
height: 30px;
width: 30px;
display: inline-block;
font-size: 0.8em;
margin-right: 4px;
line-height: 30px;
text-align: center;
text-shadow: 0 1px 0 rgba (255,255,255,0.2);
border-radius: 100%;
}

button {
padding: 19px 39px 18px 39px;
color: #FFF;
background-color: #4bc970;
font-size:18px;
text-align: center;
font-style: normal;
border-radius: 5px;
width: 100%;
border: 1px solid #3ac162;
border-width:1px 1px 3px;
box-shadow: 0 -1px 0 rgba (255,255,255,0.1) inset;
margin-bottom: 10px;
}
@media screen and (min-width: 480px) {
form{
max-width: 480px;
}
}