generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
CYF-ITP - South Africa |Azharuddin Meyer | Module-User Focused Data-Form Controls | WEEK2 | #320
Open
azharuddinmeyer
wants to merge
15
commits into
CodeYourFuture:main
Choose a base branch
from
azharuddinmeyer:form-controls
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1a2efc9
fixing html closing tag
azharuddinmeyer d3a6585
adding article content
azharuddinmeyer ff0a999
adding sections
azharuddinmeyer 884ae3e
final changes
azharuddinmeyer 33b6f24
adding images and restructuring layout
azharuddinmeyer 9c05cdb
added buttons and contrast
azharuddinmeyer ea101ce
changing footer
azharuddinmeyer 70c4ddb
added structure and css
azharuddinmeyer f57d34c
added colors and effects
azharuddinmeyer b417a4f
reviewed my code and fixed html and css
azharuddinmeyer 83c5a82
removed wireframe folder
azharuddinmeyer 9dabd3a
reviewed changes
azharuddinmeyer 15120bc
added a pattern attribute to my form and fixed some syntax errors
azharuddinmeyer 1c99246
used the css validator to remove css errors
azharuddinmeyer 11729f7
changed footer
azharuddinmeyer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,101 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>My form exercise</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Product Pick</h1> | ||
</header> | ||
<main> | ||
<form> | ||
<!-- write your html here--> | ||
<!-- try writing out the requirements first--> | ||
</form> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<title>My form exercise</title> | ||
<meta | ||
name="description" | ||
content="Learning how to make html forms using css" | ||
/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="stylesheet" href="styles.css" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap" | ||
rel="stylesheet" | ||
/> | ||
</head> | ||
|
||
</main> | ||
<footer> | ||
<!-- change to your name--> | ||
<h2>By HOMEWORK SOLUTION</h2> | ||
</footer> | ||
</body> | ||
<body> | ||
<div class="container"> | ||
<h1>Product Pick</h1> | ||
|
||
</html> | ||
<main> | ||
<form class="form"> | ||
<div class="user-input"> | ||
<div class="name"> | ||
<label for="name">Name</label> | ||
<input | ||
type="text" | ||
name="name" | ||
id="name" | ||
minlength="3" | ||
maxlength="30" | ||
pattern="^[A-Za-z\s'-]{2,50}$" | ||
placeholder="Username" | ||
required | ||
/> | ||
</div> | ||
<div> | ||
<label for="email">Email</label> | ||
<input | ||
type="email" | ||
name="email" | ||
id="email" | ||
placeholder="Email address..." | ||
required | ||
/> | ||
</div> | ||
|
||
<div> | ||
<label for="color">Choose a color:</label> | ||
<select id="color" name="color" required> | ||
<option value="" disabled selected>Select a color</option> | ||
<option value="orange">Orange</option> | ||
<option value="green">Green</option> | ||
<option value="blue">Blue</option> | ||
</select> | ||
</div> | ||
|
||
<div> | ||
<label for="size">Choose a size:</label> | ||
<select id="size" name="size" required> | ||
<option value="" disabled selected>Select a size</option> | ||
<option value="xs">XS</option> | ||
<option value="s">S</option> | ||
<option value="m">M</option> | ||
<option value="l">L</option> | ||
<option value="xl">XL</option> | ||
<option value="xxl">XXL</option> | ||
</select> | ||
</div> | ||
|
||
<div> | ||
<label for="date">Choose a delivery date</label> | ||
<input | ||
type="date" | ||
min="2024-10-19" | ||
max="2024-11-16" | ||
name="date" | ||
id="date" | ||
required | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div class="btn"> | ||
<button class="submit">Submit</button> | ||
</div> | ||
</form> | ||
</main> | ||
<footer> | ||
<address> | ||
<p>By Azharuddin Meyer</p> | ||
<p>Email: [email protected]</p> | ||
</address> | ||
</footer> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
body { | ||
display: flex; | ||
justify-content: center; | ||
|
||
text-align: center; | ||
margin: 14rem; | ||
padding: 8rem; | ||
|
||
font-family: "Work Sans", sans-serif; | ||
|
||
font-style: normal; | ||
font-size: 1rem; | ||
background-image: url("https://images.unsplash.com/photo-1563291074-2bf8677ac0e5?q=80&w=1907&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"); | ||
} | ||
|
||
html, | ||
body { | ||
height: 100%; | ||
margin: 0; | ||
} | ||
|
||
form { | ||
min-height: 40rem; | ||
padding: 2rem; | ||
text-align: left; | ||
font-weight: 300; | ||
margin: 2rem; | ||
background: #ffffff; | ||
max-width: 600px; | ||
border-radius: 8px; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: flex-start; | ||
font-size: 18px; | ||
} | ||
|
||
.user-input { | ||
margin: 1.5rem 0; | ||
border-radius: 4px; | ||
outline: none; | ||
width: 100%; | ||
max-width: 400px; | ||
|
||
line-height: 5.5; | ||
} | ||
|
||
.submit { | ||
padding: 16px; | ||
|
||
border-radius: 5px; | ||
color: white; | ||
background-color: #c9184a; | ||
border: none; | ||
font-weight: 800; | ||
box-shadow: #c9184a 0 2px 8px 0; | ||
|
||
text-transform: uppercase; | ||
-webkit-animation-duration: 1s; | ||
animation-duration: 1s; | ||
-webkit-animation-fill-mode: both; | ||
animation-fill-mode: both; | ||
-webkit-animation-timing-function: ease-in-out; | ||
animation-timing-function: ease-in-out; | ||
animation-iteration-count: infinite; | ||
-webkit-animation-iteration-count: infinite; | ||
} | ||
|
||
.submit:hover { | ||
cursor: pointer; | ||
animation-name: bounce; | ||
-moz-animation-name: bounce; | ||
} | ||
|
||
.footer { | ||
position: static; | ||
display: block; | ||
margin: auto; | ||
font-size: 1rem; | ||
padding: 10rem 1rem; | ||
} | ||
|
||
input:focus { | ||
border-color: #c9184a; | ||
box-shadow: #c9184a 0 2px 8px 0; | ||
} | ||
input { | ||
padding: 6px; | ||
border-radius: 3px; | ||
border: 1px solid black; | ||
margin: 2rem; | ||
} | ||
|
||
@media (max-width: 480px) { | ||
header { | ||
font-size: 1.5em; | ||
text-align: center; | ||
} | ||
|
||
.btn { | ||
text-align: center; | ||
} | ||
.submit { | ||
display: block; | ||
margin: auto; | ||
} | ||
|
||
footer { | ||
padding: 8px; | ||
font-size: 0.8em; | ||
} | ||
} | ||
|
||
@keyframes bounce { | ||
0%, | ||
100%, | ||
20%, | ||
50%, | ||
80% { | ||
-webkit-transform: translateY(0); | ||
-ms-transform: translateY(0); | ||
transform: translateY(0); | ||
} | ||
40% { | ||
-webkit-transform: translateY(-30px); | ||
-ms-transform: translateY(-30px); | ||
transform: translateY(-30px); | ||
} | ||
60% { | ||
-webkit-transform: translateY(-15px); | ||
-ms-transform: translateY(-15px); | ||
transform: translateY(-15px); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 Azharuddin, is there another element that can be used for semantic reasons?
We also want to think about accessibility when it comes to using elements.
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 Ryno, I fixed my footer using an address element.