-
-
Notifications
You must be signed in to change notification settings - Fork 459
London10-Afsha-Hossain-HTML/CSS-Week2 #242
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"liveServer.settings.port": 5501 | ||
} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this file please. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"liveServer.settings.port": 5501 | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,59 @@ <h1>Product Pick</h1> | |
<form> | ||
<!-- write your html here--> | ||
<!-- try writing out the requirements first--> | ||
<fieldset class="validate-account"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice use of fieldset. |
||
<label for="fname">First name:</label> | ||
<input type="text" id="fname" name="fname" required><br><br> | ||
<label for="lname">Last name:</label> | ||
<input type="text" id="lname" name="lname" required><br><br> | ||
<label for="email">Email:</label> | ||
<input type="email" id="email" name="email" required><br><br> | ||
</fieldset> | ||
|
||
<section class="select-colour"> | ||
<label for="color-picker">Choose your t-shirt colour from the three available colours</label> | ||
<input type="color" list="presets" id="color-picker"> | ||
<datalist id="presets"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Love a datalist! |
||
<option value="#FF0000">Red</option> | ||
<option value="#FFFF00">Yellow</option> | ||
<option value="#6699cc">Blue</option> | ||
</datalist> | ||
</section> | ||
|
||
<section class="select-size"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You've used section here and not fieldset. Can you talk through why? |
||
<div> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And here you've used a bunch of divs. What are these divs doing in the code? What effect do they have? Something special happens with fieldset and radio inputs. Can you find out what? |
||
<p>Choose your t-shirt size:</p> | ||
<input type="radio" id="XS" name="size" value="XS"> | ||
<label for="XS">XS</label> | ||
</div> | ||
<div> | ||
<input type="radio" id="S" name="size" value="S"> | ||
<label for="S">S</label> | ||
</div> | ||
<div> | ||
<input type="radio" id="M" name="size" value="M"> | ||
<label for="M">M</label> | ||
</div> | ||
<div> | ||
<input type="radio" id="L" name="size" value="L"> | ||
<label for="L">L</label> | ||
</div> | ||
<div> | ||
<input type="radio" id="XL" name="size" value="XL"> | ||
<label for="XL">XL</label> | ||
</div> | ||
<div> | ||
<input type="radio" id="XXL" name="size" value="XXL"> | ||
<label for="XXL">XXL</label> | ||
</div> | ||
</section> | ||
|
||
<section class="select-delivery-date"> | ||
<label for="date">Date of Delivery</label> | ||
<input type="date" name="date" id="date" min="2023-03-16" max="2023-04-13"> | ||
</section> | ||
|
||
|
||
</form> | ||
|
||
</main> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
body { | ||
font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; | ||
color: black; | ||
font-size: 30px; | ||
margin: 2rem; | ||
background-color:blanchedalmond; | ||
} | ||
|
||
.select-colour { | ||
font-size: 1.5 rem; | ||
padding: 1rem; | ||
margin: 1rem; | ||
} | ||
|
||
.select-size { | ||
font-size: 1.5 rem; | ||
padding: 1rem; | ||
margin: 1rem; | ||
} | ||
|
||
.validate-account { | ||
font-size: 1.5 rem; | ||
padding: 1rem; | ||
margin: 1rem; | ||
} | ||
|
||
.select-delivery-date { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like you've applied the same styles to all these classes. Is there a way you could apply one style to all the classes? What does "class" actually mean? |
||
font-size: 1.5 rem; | ||
padding: 1rem; | ||
margin: 1rem; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've added a bunch of files from your repo that shouldn't be here. Usually this happens when you do
git add .
. This is not a good way to add your files with git. Add your files one by one, individually and with purpose.Later in the course, you might have 5,000 files or more (node modules) that should not be committed. Imagine the mess!