diff --git a/Wireframe/README.md b/Feature/Wireframe/README.md similarity index 100% rename from Wireframe/README.md rename to Feature/Wireframe/README.md diff --git a/Feature/Wireframe/branch.png b/Feature/Wireframe/branch.png new file mode 100644 index 000000000..94d545894 Binary files /dev/null and b/Feature/Wireframe/branch.png differ diff --git a/Feature/Wireframe/git-branch.html b/Feature/Wireframe/git-branch.html new file mode 100644 index 000000000..b997a2d66 --- /dev/null +++ b/Feature/Wireframe/git-branch.html @@ -0,0 +1,25 @@ + + + + + + Git Branches + + + +
+
+

What is a branch in Git?

+

+ A Git branch is a separate line of development within a repository. + It allows developers to work on features or fixes independently. +

+

+ Once changes are complete, branches can be merged back into the + main branch, keeping the project stable and organized. +

+ ← Back to Home +
+
+ + diff --git a/Feature/Wireframe/index.html b/Feature/Wireframe/index.html new file mode 100644 index 000000000..82ce11e4a --- /dev/null +++ b/Feature/Wireframe/index.html @@ -0,0 +1,73 @@ +< + + + + + README, Wireframes, and Git Branches + + + + + +
+ + + + +
+
+ Website wireframe sketches +
+

What is the purpose of a wireframe?

+

+ A wireframe is a low-fidelity layout used to plan the structure and + functionality of a webpage before visual design begins. +

+ Read More +
+
+ +
+ Git branching diagram on screen +
+

What is a branch in Git?

+

+ A Git branch allows developers to work on new features or fixes + independently without impacting the main project. +

+ Read More +
+
+
+
+ + + + diff --git a/Feature/Wireframe/more-readme.html b/Feature/Wireframe/more-readme.html new file mode 100644 index 000000000..8b45cc416 --- /dev/null +++ b/Feature/Wireframe/more-readme.html @@ -0,0 +1,22 @@ + + + + + + + README Files + + + +
+
+

What is the purpose of a README file?

+

+ README files help developers collaborate more effectively and allow + users to understand a project without reading the source code. +

+ ← Back to Home +
+
+ + diff --git a/Feature/Wireframe/readme.png b/Feature/Wireframe/readme.png new file mode 100644 index 000000000..e3d14a39c Binary files /dev/null and b/Feature/Wireframe/readme.png differ diff --git a/Feature/Wireframe/style.css b/Feature/Wireframe/style.css new file mode 100644 index 000000000..9ac1916bc --- /dev/null +++ b/Feature/Wireframe/style.css @@ -0,0 +1,104 @@ +* { + box-sizing: border-box; +} + +body { + margin: 0; + font-family: Arial, Helvetica, sans-serif; + background-color: #f4f4f4; + color: #222; + line-height: 1.6; +} + +.page-header { + text-align: center; + padding: 2rem 1rem; +} + +.page-header h1 { + margin-bottom: 0.5rem; +} + +.subtitle { + color: #555; +} + +.content { + max-width: 1100px; + margin: 0 auto; + padding: 1rem; +} + +.visually-hidden { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} + +.card { + background-color: #fff; + border: 2px solid #000; + margin-bottom: 2rem; +} + +.featured { + width: 100%; +} + +.article-image { + width: 100%; + height: auto; + display: block; +} + +.card-body { + padding: 1rem; +} + +.card-body h3 { + margin-top: 0; +} + +.button { + display: inline-block; + padding: 0.5rem 1rem; + border: 2px solid #000; + text-decoration: none; + color: #000; + font-weight: bold; +} + +.button:focus, +.button:hover { + background-color: #000; + color: #fff; +} + +.card-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 2rem; +} + +.page-footer { + position: fixed; + bottom: 0; + left: 0; + width: 100%; + background: #918d8d; + color: rgb(39, 37, 37); + text-align: center; + padding: 1rem; +} + +@media (max-width: 768px) { + .card-grid { + grid-template-columns: 1fr; + } +} diff --git a/Feature/Wireframe/wireframe.html b/Feature/Wireframe/wireframe.html new file mode 100644 index 000000000..4b309ed14 --- /dev/null +++ b/Feature/Wireframe/wireframe.html @@ -0,0 +1,25 @@ + + + + + + Wireframes + + + +
+
+

What is the purpose of a wireframe?

+

+ Wireframes are simple visual guides that represent the structure of + a webpage or application. +

+

+ They allow designers and developers to plan layout, navigation, + and functionality before writing code or applying visual styles. +

+ ← Back to Home +
+
+ + diff --git a/Wireframe/wireframe.png b/Feature/Wireframe/wireframe.png similarity index 100% rename from Wireframe/wireframe.png rename to Feature/Wireframe/wireframe.png diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 65a866cdb..f2ec0e671 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -1,27 +1,189 @@ - - - - My form exercise - - - - -
-

Product Pick

-
-
-
- - -
-
- - - + + + + + T-Shirt Order + + + + + + + +
+

T-shirt Sale

+
+ +
+
+ + +
+

Customer Information

+ +

+ + +

+ +

+ + +

+
+ + +
+

T-Shirt Colour *

+
+ Select one colour + +

+ + +

+ +

+ + +

+ +

+ + +

+
+
+ + +
+

T-Shirt Size *

+
+ Select one size + +

+ + +

+ +

+ + +

+ +

+ + +

+ +

+ + +

+ +

+ + +

+ +

+ + +

+
+
+ + +
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/Wireframe/index.html b/Wireframe/index.html deleted file mode 100644 index 0e014e535..000000000 --- a/Wireframe/index.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Wireframe - - - -
-

Wireframe

-

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

-
-
-
- -

Title

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, - voluptates. Quisquam, voluptates. -

- Read more -
-
- - - diff --git a/Wireframe/placeholder.svg b/Wireframe/placeholder.svg deleted file mode 100644 index ac36a0abc..000000000 --- a/Wireframe/placeholder.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Wireframe/style.css b/Wireframe/style.css deleted file mode 100644 index be835b6c7..000000000 --- a/Wireframe/style.css +++ /dev/null @@ -1,89 +0,0 @@ -/* Here are some starter styles -You can edit these or replace them entirely -It's showing you a common way to organise CSS -And includes solutions to common problems -As well as useful links to learn more */ - -/* ====== Design Palette ====== - This is our "design palette". - It sets out the colours, fonts, styles etc to be used in this design - At work, a designer will give these to you based on the corporate brand, but while you are learning - You can design it yourself if you like - Inspect the starter design with Devtools - Click on the colour swatches to see what is happening - I've put some useful CSS you won't have learned yet - For you to explore and play with if you are interested - https://web.dev/articles/min-max-clamp - https://scrimba.com/learn-css-variables-c026 -====== Design Palette ====== */ -:root { - --paper: oklch(7 0 0); - --ink: color-mix(in oklab, var(--color) 5%, black); - --font: 100%/1.5 system-ui; - --space: clamp(6px, 6px + 2vw, 15px); - --line: 1px solid; - --container: 1280px; -} -/* ====== Base Elements ====== - General rules for basic HTML elements in any context */ -body { - background: var(--paper); - color: var(--ink); - font: var(--font); -} -a { - padding: var(--space); - border: var(--line); - max-width: fit-content; -} -img, -svg { - width: 100%; - object-fit: cover; -} -/* ====== Site Layout ====== -Setting the overall rules for page regions -https://www.w3.org/WAI/tutorials/page-structure/regions/ -*/ -main { - max-width: var(--container); - margin: 0 auto calc(var(--space) * 4) auto; -} -footer { - position: fixed; - bottom: 0; - text-align: center; -} -/* ====== Articles Grid Layout ==== -Setting the rules for how articles are placed in the main element. -Inspect this in Devtools and click the "grid" button in the Elements view -Play with the options that come up. -https://developer.chrome.com/docs/devtools/css/grid -https://gridbyexample.com/learn/ -*/ -main { - display: grid; - grid-template-columns: 1fr 1fr; - gap: var(--space); - > *:first-child { - grid-column: span 2; - } -} -/* ====== Article Layout ====== -Setting the rules for how elements are placed in the article. -Now laying out just the INSIDE of the repeated card/article design. -Keeping things orderly and separate is the key to good, simple CSS. -*/ -article { - border: var(--line); - 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; - } -}