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

London | Saqib_Javed | Form-Control | week2 #209

Open
wants to merge 3 commits into
base: main
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
63 changes: 59 additions & 4 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,74 @@
<link rel="stylesheet" href="styles.css">
</head>
<body>

<header>
<h1>Product Pick</h1>
</header>
<main>
<h2 class="para">Please fill in the order form to complete your order</h2>

<form>
<!-- write your html here-->
<!-- try writing out the requirements first-->
<div class="form">
<label for="fname">First Name:</label><br>
<input type="text" id="fname" name="fname" pattern="[A-Za-z]+" title="Only letters are allowed" required/>
<br>
<label for="lname">Last Name:</label><br>
<input type="text" id="lname" name="lname" pattern="[A-Za-z]+" title="Only letters are allowed" required/>
<br>
<label for="email">Email:</label><br>
<input id="email" type="email" required/>
</div>

<div class="shirt-colours">
<fieldset>
<legend>Choose Colors:</legend>

<input id="white" type="radio" name="colour" value="white"/>
<label for="white">White</label>

<input id="red" type="radio" name="colour" value="red"/>
<label for="red">Red</label>

<input id="black" type="radio" name="colour" value="black"/>
<label for="black">Black</label>
</fieldset>
</div>

<div class="shirt-size">

<label for="size">T-shirt size</label><br>
<select id="size" name="size">
<option value="x-small">xs</option>
<option value="small">S</option>
<option value="medium">M</option>
<option value="large">L</option>
<option value="x-large">XL</option>
<option value="xx-large">XXL</option>
</select>
</div>

<div class="delivery">
<label for="delivery">
Chose your delivery date:
<input type="date" name="delivery" min="2024-10-13" max="2024-11-01" required/>
</label>
</div>

<div>
<button class="btn">submit</button>
</div>
</form>




</form>

</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>

<h2>By Saqib Javed - London 11 - ITP</h2>
</footer>
</body>

Expand Down
66 changes: 66 additions & 0 deletions Form-Controls/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
* {
padding: 5px;
margin: 10px;
background-color: rgb(222, 206, 206);
font-family: monospace;
}

header {
text-align: center;
font-size: 1.5rem;
}

.para {
text-align: center;

}

.form {
display: flex;
justify-content: center;
}

label{
color: #0a0a09;
font-weight: bold;
}

input{
background-color: aliceblue;
}

.shirt-colours {
display: flex;
justify-content: center;
align-content: center;
}

.shirt-size {
display: flex;
justify-content: center;
color: aliceblue;
}

.delivery {
display: flex;
justify-content: center;
}

#size{
background-color: aliceblue;
}

.btn {
display: block;
margin: auto;
display: flex;
justify-content: center;
color: whitesmoke;
background-color: rgb(12, 12, 11);
}


footer h2 {
font-size: 0.75rem;
text-align: center;
}