Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
a94f1b6
JohnRobinson-Form
JohnRob-jnr May 16, 2026
22f1337
JohnRobinson/Form
JohnRob-jnr May 16, 2026
449518a
class additions
JohnRob-jnr May 25, 2026
b3b34e7
css update 1
JohnRob-jnr May 25, 2026
a49f4b6
updated header
JohnRob-jnr May 25, 2026
54c8432
refactor form structure for improved semantics and consistency
JohnRob-jnr May 25, 2026
a9d0e40
refactor form styles for consistency and improved layout
JohnRob-jnr May 25, 2026
31145c0
summary text added to index.html
JohnRob-jnr May 27, 2026
25bc72e
css modify 1
JohnRob-jnr May 27, 2026
fafaf93
remove errors and add content to the wireframe
JohnRob-jnr May 27, 2026
bedc0c3
header center
JohnRob-jnr May 27, 2026
3b40b87
css center
JohnRob-jnr May 27, 2026
f7d8361
css update 2
JohnRob-jnr May 27, 2026
2779355
css update 3
JohnRob-jnr May 27, 2026
e4d4fab
css remove border from header
JohnRob-jnr May 27, 2026
aa17627
css alterations
JohnRob-jnr May 29, 2026
010d074
add read more link
JohnRob-jnr May 29, 2026
61a1a8d
h2 added
JohnRob-jnr May 29, 2026
3f59b5d
Refactor code structure for improved readability and maintainability
JohnRob-jnr May 30, 2026
73f3668
add href links
JohnRob-jnr May 30, 2026
18c4827
CSS alterations
JohnRob-jnr May 30, 2026
0858e2b
removecss grid 2/3
JohnRob-jnr May 30, 2026
5c705ca
css update to image positioning
JohnRob-jnr May 30, 2026
b3c719f
Add background color and width to footer for improved layout
JohnRob-jnr May 30, 2026
d3858fe
Remove width property from footer for improved layout consistency
JohnRob-jnr Jun 3, 2026
17206d7
Fix footer text formatting and update styles for improved layout
JohnRob-jnr Jun 3, 2026
f21635c
footer top border
JohnRob-jnr Jun 3, 2026
eaf4edc
width alterations and footer adjustments
JohnRob-jnr Jun 3, 2026
dcd4388
removed error
JohnRob-jnr Jun 3, 2026
14ac0c6
css width alteration
JohnRob-jnr Jun 3, 2026
8cc6957
width alteration
JohnRob-jnr Jun 3, 2026
a8b20ae
css width adjust 66.6%
JohnRob-jnr Jun 4, 2026
7130da5
article text align left
JohnRob-jnr Jun 4, 2026
2a97f9d
add margin auto to body for centering content
JohnRob-jnr Jun 5, 2026
312f316
Align section center
JohnRob-jnr Jun 5, 2026
e24f469
center-body
JohnRob-jnr Jun 5, 2026
b430c7c
refactor footer and section styles for improved layout
JohnRob-jnr Jun 5, 2026
cfd5b84
fix typo in README file description
JohnRob-jnr Jun 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions Form-Controls/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
body {
font-family: Arial, sans-serif;
padding: 20px;
background-color: #408db7;
}

.header {
text-align: center;
margin-bottom: 20px;
background-color: #f0f8ff;
padding: 3px;
border-radius: 9px;
font-family: Arial;
font-style: bold;
font-size: medium;
}


.form-inputs {
width: 60%;
background:#f0f8ff;
text-align: left;
display: block;
margin: 0 auto;
padding: 10px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-selections {
width: 60%;
background:#f0f8ff;
text-align: left;
display: block;
margin: 0 auto;
padding: 10px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

label {
display: block;
margin-bottom: 10px;
font-weight: 600;
}

input[type="text"],
input[type="email"],
select {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 10px;
box-sizing: border-box; /* Crucial for width alignment */
}

.footer {
text-align: left;
margin-top: 20px;
background-color: #408db7;
padding: 20px;
}
56 changes: 42 additions & 14 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link href="index.css" rel="stylesheet">
<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" />
</head>
<body>
<header>
<h1>Product Pick</h1>
</header>
<main>
<form>
<!-- write your html here-->
<!--
try writing out the requirements first as comments
this will also help you fill in your PR message later-->
</form>
<div class="header">
<h1>T Shirt Order Form</h1>
</div>
<main class="main-content">
<form>
<!-- Name Field -->
<div class="form-inputs">
<label for="name">Full Name</label>
<input type="text" id="name" name="name" required pattern =".*\S.*\S.*" placeholder="John Robinson">

<label for="email">Email Address</label>
<input type="email" id="email" name="email" required pattern="^[^\s@]+@[^\s@]+\.[^\s@]+$" placeholder="john@example.com">
</div>

<!-- Shirt Colour 3 colours only-->
<div class="form-selections">
<label for="colour">T Shirt Colour</label>
<select id="colour" name="colour">
<option value="Red">Red</option>
<option value="White">White</option>
<option value="Black">Black</option>
</select>


<!-- Shirt size xs - xxl -->

<label for="size">T Shirt Size</label>
<select id="size" name="Size">
<option value="XS">XSmall</option>
<option value="S">Small</option>
<option value="M">Medium</option>
<option value="L">Large</option>
<option value="XL">XLarge</option>
<option value="XXL">XXLarge</option>
</select>
</div>
</form>
</main>
<footer>
<div class="footer">
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
</footer>
<p>By John Robinson</p>
</div>
</body>
</html>
</html>
Binary file added Wireframe/Gitbranch1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Wireframe/Wireframe1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 28 additions & 12 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,41 @@
</head>
<body>
<header>
<h1>Wireframe</h1>
<p>
This is the default, provided code and no changes have been made yet.
</p>
<h1>Web Development & Planning</h1>
<p>Here are some useful steps & information to help you get started with web development.</p>
</header>
<main>
<main>
<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<img src="Wireframe1.png" alt="wireframe" />
<h2>Wireframe</h2>
<p>
What is the purpose of a wireframe? Think of "Wireframe" as the Architectural blueprint of a website or App.
A visual guide that outlines the structure, layout and placement of elements on a website.
</p>
<a href="https://www.figma.com/resource-library/what-is-wireframing/">Read more</a>
</article>
<section>
<img src="readmeimg.png" alt="" />
<h3>README File</h3>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
What is the purpose of a README file? It serves as the introductory guide and instruction manual for a project,
explaining what the software does, how to install and run it, and how others can contribute to it.
</p>
<a href="">Read more</a>
</article>
<a href="https://www.geeksforgeeks.org/git/what-is-readme-md-file/">Read more</a>
</section>
<section>
<img src="Gitbranch1.jpg" alt="" />
<h3>Branch in Git</h3>
<p>
What is a branch in Git? A branch in Git is a seperate line of development that allows you to isolate your work,
experiment with new features, fix bugs or make changes without affecting the main codebase.
</p>
<a href="https://github.com/gitstandards/git-branching">Read more</a>
</section>
</main>
<footer>
<p>
This is the default, provided code and no changes have been made yet.
Created By John Robinson. 2026
</p>
</footer>
</body>
Expand Down
Binary file added Wireframe/readmeimg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 27 additions & 10 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ As well as useful links to learn more */
--font: 100%/1.5 system-ui;
--space: clamp(6px, 6px + 2vw, 15px);
--line: 1px solid;
--container: 1280px;
--container: 900px;
}
/* ====== Base Elements ======
General rules for basic HTML elements in any context */
body {
background: var(--paper);
color: var(--ink);
font: var(--font);
margin: 0 auto;
text-align: center;
}

a {
padding: var(--space);
border: var(--line);
Expand All @@ -48,12 +51,19 @@ https://www.w3.org/WAI/tutorials/page-structure/regions/
main {
max-width: var(--container);
margin: 0 auto calc(var(--space) * 4) auto;
width: 70%;
text-align: center;
}

footer {
position: fixed;
bottom: 0;
text-align: center;
margin: 0 auto;
padding: 2rem 0;
background-color: white;
width: 100%;
border-top: var(--line);
}

/* ====== 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
Expand All @@ -69,21 +79,28 @@ main {
grid-column: span 2;
}
}
header {
text-align: center;
}

article {
border: var(--line);
padding: var(--space);
text-align: left;
}

/* ====== 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 {
section {
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 {
img {
width: 100%;
grid-column: span 3;
}
}
Loading