Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
97 changes: 72 additions & 25 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,74 @@
<!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" />
</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>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
</footer>
</body>
</html>

<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="style.css" />
</head>

<body>
<header>
<h1>Product Pick</h1>
</header>
<main>
<form>
<fieldset>
<legend>Name and Email address</legend>
<!--Adding <legend> element for accessibility purposes-->
<label for="name">Name</label>
<input type="text" id="name" name="name" minlength="2" pattern="[a-zA-Z]+" required><br><br>
<!--Input field for name, making it required-->
<label for="email">Email:</label>
<input type="email" id="email" required><br><!--Input field for email address. Making it required-->
</fieldset>


<fieldset>
<legend>Please select a colour for your T-Shirt</legend>
<label>
<input type="radio" name="colour" required>Blue
</label>
<label>
<input type="radio" name="colour" required>Red
</label>
<label>
<input type="radio" name="colour" required>Green
</label><!--Making radio buttons for Blue, Red and Green and making the require fields-->
</fieldset><br>
<fieldset>
<legend>Please select a size for your T-Shirt</legend>
<label>
<!--Making radio buttons for XS, S, M, L, XL and XXL sizes, and making them required fields-->
<input type="radio" name="size" required>XS
</label>
<label>
<input type="radio" name="size" required>S
</label>
<label>
<input type="radio" name="size" required>M
</label>
<label>
<input type="radio" name="size" required>L
</label>
<label>
<input type="radio" name="size" required>XL
</label>
<label>
<input type="radio" name="size" required>XXL
</label>
</fieldset><br>
<div>
<button>Submit</button><!--adding final comment to test push and PR-->
</div>
</form>
</main>
<footer>
<p>By Vito Moratti</p>
</footer>
</body>

</html>
3 changes: 3 additions & 0 deletions Form-Controls/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
legend {
font-weight: bold;
}
Binary file added Wireframe/README-image.png
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/branch-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
86 changes: 59 additions & 27 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,65 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wireframe</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1>Wireframe</h1>

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wireframe</title>
<link rel="stylesheet" href="style.css" />
</head>

<body>
<header>
<h1>Wireframe</h1>
<p>
This page will show:
</p>
<ul>
<li>Purpose of README file</li>
<li>Purpose of Wireframe</li>
<li>What is branch in Git</li>
</ul>
</header>
<main>
<article>
<img src="README-image.png" alt="an image showing an example of a README file" />
<h2>
What is the purpose of a README file?
</h2>
<p>
This is the default, provided code and no changes have been made yet.
A README file is the foundational documentation
for a software, dataset, or coding project.
It serves as a project's "front door," designed to help users quickly understand what the project does,
how to install and use it, and how to contribute
</p>
</header>
<main>
<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
</p>
<a href="">Read more</a>
</article>
</main>
<footer>
<a href="https://en.wikipedia.org/wiki/README">Read more</a>
</article>
<article>
<img src="wireframe.png" alt="an image showing a hand drawn sketch" />
<h2>What is a Wireframe?</h2>
<p>
This is the default, provided code and no changes have been made yet.
A wireframe is a visual guide that represents the skeletal framework of a website or application.
It outlines the layout, content, and functionality of a page before any design or coding is done.
</p>
</footer>
</body>
</html>
<a href="https://en.wikipedia.org/wiki/Wireframe">Read more</a>
</article>
<article>
<img src="branch-image.jpg" alt="an image showing a Git branch" />
<h2>What is a Branch in Git?</h2>
<p>
A branch in Git is a lightweight movable pointer to a commit.
It allows you to diverge from the mainline of development and work on features, experiments, or bug fixes
without affecting the main codebase.
</p>
<a href="https://en.wikipedia.org/wiki/Git_branch">Read more</a>
</article>
</main>
<footer>
<p>
Made by Vito.
</p><!--adding a comment to test the push and pull request, because so far
it is not working at all-->
</footer>
</body>

</html>
6 changes: 0 additions & 6 deletions Wireframe/placeholder.svg

This file was deleted.

10 changes: 8 additions & 2 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ As well as useful links to learn more */
--line: 1px solid;
--container: 1280px;
}
/* ====== Base Elements ======

General rules for basic HTML elements in any context */
body {
background: var(--paper);
Expand All @@ -50,10 +50,16 @@ main {
margin: 0 auto calc(var(--space) * 4) auto;
}
footer {
background-color: black;
color: white;
font-size: 10px;
position: fixed;
bottom: 0;
text-align: center;
box-sizing: border-box;
width: 100%;
}

/* ====== 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 Down Expand Up @@ -86,4 +92,4 @@ article {
> img {
grid-column: span 3;
}
}
}
Binary file modified Wireframe/wireframe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading