diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 74b591ffc..1ff29b40e 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -6,22 +6,71 @@ My form exercise + -
-

Product Pick

-
+
+

Product Pick

- - + + + + +

+ + + +

+ + + +

+

T-Shirt Size:

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

+
+

By Dan Mears

- + diff --git a/Form-Controls/style.css b/Form-Controls/style.css new file mode 100644 index 000000000..704fbc27c --- /dev/null +++ b/Form-Controls/style.css @@ -0,0 +1,110 @@ +/* Import cool Google Font */ +@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap'); + +/* Reset default spacing */ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +/* Page styling */ +body { + font-family: 'Poppins', sans-serif; + background: #f4f4f4; + display: flex; + justify-content: center; + align-items: center; + min-height: 100vh; + color: #444; +} + +/* Main form container */ +main { + background: white; + padding: 40px; + border-radius: 20px; + width: 400px; + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); +} + +/* Heading */ +h1 { + text-align: center; + margin-bottom: 25px; + color: #ff4f87; +} + +/* Labels */ +label, +p { + font-weight: 500; + margin-bottom: 8px; + display: block; +} + +/* Text inputs and dropdown */ +input[type="text"], +input[type="email"], +select { + width: 100%; + padding: 12px; + border: 2px solid #ddd; + border-radius: 12px; + margin-top: 6px; + margin-bottom: 20px; + font-size: 14px; + transition: 0.3s; +} + +/* Input focus effect */ +input[type="text"]:focus, +input[type="email"]:focus, +select:focus { + border-color: #ff4f87; + outline: none; +} + +/* Radio buttons section */ +input[type="radio"] { + margin-right: 5px; + margin-left: 10px; +} + +/* Submit button */ +button { + width: 100%; + padding: 14px; + border: none; + border-radius: 12px; + background: #ff4f87; + color: white; + font-size: 16px; + font-weight: 600; + cursor: pointer; + transition: 0.3s; +} + +/* Button hover effect */ +button:hover { + background: #e63e74; +} + +/* main */ +main { + text-align: center; +} +/* Shirt sizes in one row */ +.sizes { + display: flex; + gap: 1px; + font-size: 13px; + align-items: center; + flex-wrap: wrap; +} + +/* Fix radio labels */ +.sizes label { + display: inline; + margin-right: 10px; +} diff --git a/Wireframe/index.html b/Wireframe/index.html index 0e014e535..3780e65a8 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -1,33 +1,70 @@ - + - Wireframe + README, Wireframes and Git Branches
-

Wireframe

-

- This is the default, provided code and no changes have been made yet. -

+

README, Wireframes and Git Branches

+

A simple guide to three important web development concepts.

- -

Title

+ README file illustration +

What is the purpose of a README file?

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, - voluptates. Quisquam, voluptates. + A README file explains what a project is, how it works, and how + someone can use it. It often includes setup instructions, features, + and important notes for developers.

- Read more + Read more +
+ +
+ Wireframe file illustration +

What is the purpose of a wireframe?

+

+ A wireframe is a simple plan for a webpage or app. It shows where + content, images, buttons, and sections will go before the final design + is created. +

+ Read more +
+ +
+ Git branch file illustration +

What is a branch in Git?

+

+ A branch in Git is a separate version of a project. It lets developers + work on new features or fixes without changing the main version of the + code. +

+ Read more
diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c7..3acf963ab 100644 --- a/Wireframe/style.css +++ b/Wireframe/style.css @@ -18,7 +18,7 @@ As well as useful links to learn more */ ====== Design Palette ====== */ :root { --paper: oklch(7 0 0); - --ink: color-mix(in oklab, var(--color) 5%, black); + --ink: blue; --font: 100%/1.5 system-ui; --space: clamp(6px, 6px + 2vw, 15px); --line: 1px solid; @@ -26,10 +26,15 @@ As well as useful links to learn more */ } /* ====== Base Elements ====== General rules for basic HTML elements in any context */ +header { + text-align: center; +} +/* Futuristic font */ body { background: var(--paper); color: var(--ink); font: var(--font); + font-family: "Orbitron", "Rajdhani", "Segoe UI", sans-serif; } a { padding: var(--space); @@ -39,7 +44,10 @@ a { img, svg { width: 100%; + height: 250px; object-fit: cover; + border: 3px solid blue; + border-radius: 20px; } /* ====== Site Layout ====== Setting the overall rules for page regions @@ -50,9 +58,11 @@ main { margin: 0 auto calc(var(--space) * 4) auto; } footer { - position: fixed; - bottom: 0; text-align: center; + font-size: 0.8rem; + color: var(--ink); + margin-top: 20px; + padding: 10px; } /* ====== Articles Grid Layout ==== Setting the rules for how articles are placed in the main element. @@ -76,14 +86,27 @@ Keeping things orderly and separate is the key to good, simple CSS. */ article { border: var(--line); + border-radius: 20px; + box-shadow: 0 0 15px blue; padding-bottom: var(--space); text-align: left; display: grid; grid-template-columns: var(--space) 1fr var(--space); - > * { - grid-column: 2/3; - } - > img { - grid-column: span 3; - } +} +article > * { + grid-column: 2 / 3; +} +article > img { + grid-column: 2 / 3; + margin-top: var(--space); +} +> img { + grid-column: 2 / 3; + margin-top: var(--space); +} +h1, +h2, +a { + text-transform: uppercase; + letter-spacing: 1px; }