-
-
Notifications
You must be signed in to change notification settings - Fork 95
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|Phone Naing|Module-User-Focus-Data-Form|Week2 #307
Changes from 1 commit
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,18 @@ | ||
# Developers must test their work | ||
|
||
## Let's write out our testable criteria: | ||
|
||
### HTML | ||
- [X ] I have used **HTML** and **CSS** only. | ||
- [ X] My form is **semantic HTML**. | ||
- [ X] All inputs have associated **labels**. | ||
- [X ] My **Lighthouse Accessibility** score is **100**. | ||
- [ X] I require a **valid name**. I have defined a valid name as a text string of two characters or more. | ||
- [ X] I require a **valid email**. | ||
- [X ] I require one **colour** from a defined set of 3 colours. | ||
- [ X] I require one **size** from a defined set of 6 sizes. | ||
- [ X] I require one **date** from a constrained date range. | ||
|
||
### CSS | ||
- [ X] I show which element is **focused**. | ||
- [ X] My **Lighthouse Accessibility** score is **100**. |
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. Hi @Mgphone , Thanks 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. Hi @mrvicthor Thanks. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
header h1{ | ||
width: 100vw; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
form{ | ||
display: flex; | ||
flex-direction: column; | ||
background: #fff; | ||
padding: 20px; | ||
border-radius: 10px; | ||
max-width: 500px; | ||
margin: 0 auto; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
gap:10px | ||
} | ||
h2 { | ||
text-align: center; | ||
} | ||
|
||
label { | ||
margin-top: 10px; | ||
font-weight: bold; | ||
} | ||
|
||
input, select { | ||
|
||
padding: 10px; | ||
margin-top: 5px; | ||
border-radius: 5px; | ||
border: 1px solid #ccc; | ||
} | ||
.button-order{ | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
input[type="submit"] { | ||
background-color: #1e7e34; | ||
color: white; | ||
cursor: pointer; | ||
border: none; | ||
/* margin-top: 20px; | ||
width:20vw; */ | ||
} | ||
|
||
input[type="submit"]:hover { | ||
background-color: #218838; | ||
} | ||
input[type="submit"]:focus{ | ||
outline: 2px solid black; | ||
} |
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.
Hi @Mgphone ,
Fantastic work here with the form.