diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 74b591ffc..056b2ac29 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -1,27 +1,81 @@ - + - - - My form exercise - - + + + Order Your Custom T-Shirt | Product Pick + + + -
-

Product Pick

-
-
- - +

PRODUCT PICK

+ + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + + +

+ We are selling T-shirts. this is a form to collect the following data + Of our customers who already have accounts, so we know their addresses + and charging, We want to confirm they are the right person, then get + them to choose a colour and size. +

- diff --git a/Form-Controls/style.css b/Form-Controls/style.css new file mode 100644 index 000000000..cf7d56343 --- /dev/null +++ b/Form-Controls/style.css @@ -0,0 +1,88 @@ +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + background-color: #f4f7f6; + margin: 0; + padding: 20px; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + min-height: 100vh; + box-sizing: border-box; +} + +h1 { + color: #2c3e50; + margin-bottom: 20px; + font-size: 2rem; +} + +.form { + background-color: #ffffff; + padding: 30px; + border-radius: 8px; + box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); + width: 100%; + max-width: 400px; + box-sizing: border-box; +} + +.form > div { + margin-bottom: 20px; + display: flex; + flex-direction: column; +} + +label { + font-size: 0.85rem; + font-weight: 600; + color: #34495e; + margin-bottom: 8px; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +input[type="text"], +input[type="email"], +select { + padding: 10px 14px; + font-size: 1rem; + border: 1px solid #ccc; + border-radius: 4px; + background-color: #fff; + color: #333; + outline-offset: 2px; + transition: border-color 0.2s ease, box-shadow 0.2s ease; +} + +input:focus, +select:focus { + border-color: #3498db; + outline: 2px solid #3498db; + box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15); +} + +button { + background-color: #366280; + color: white; + border: none; + padding: 12px; + font-size: 1rem; + font-weight: 600; + border-radius: 4px; + cursor: pointer; + width: 100%; + transition: background-color 0.2s ease, outline 0.1s ease; + margin-top: 10px; + min-height: 48px; +} + +button:hover, +button:focus { + background-color: #2980b9; +} + +button:focus-visible { + outline: 3px solid #3498db; + outline-offset: 2px; +} \ No newline at end of file