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
51 changes: 0 additions & 51 deletions Form-Controls/README.md
Original file line number Diff line number Diff line change
@@ -1,51 +0,0 @@
# Form Controls

## Learning Objectives

<!--{{<objectives>}}>-->

- [ ] Interpret requirements and check against a list of criteria
- [ ] Write a valid form
- [ ] Test with Devtools
- [ ] Refactor using Devtools
<!--{{<objectives>}}>-->

## Task

We are selling t-shirts. Write a form to collect the following data:

Our customers already have accounts, so we know their addresses and charging details already. We don't need to collect that data. We want to confirm they are the right person, then get them to choose a colour and size.

Writing that out as a series of questions to ask yourself:

1. What is the customer's name? I must collect this data, and validate it. But what is a valid name? I must decide something.
2. What is the customer's email? I must make sure the email is valid. Email addresses have a consistent pattern.
3. What colour should this t-shirt be? I must give 3 options. How will I make sure they don't pick other colours?
4. What size does the customer want? I must give the following 6 options: XS, S, M, L, XL, XXL

All fields are required.
Do not write a form action for this project.

## Developers must test their work.

Let's write out our testable criteria. Check each one off as you complete it.

- [ ] I have used HTML only.
- [x] I have not used any CSS or JavaScript.

### HTML

- [ ] My form is semantic html.
- [ ] All inputs have associated labels.
- [ ] My Lighthouse Accessibility score is 100.
- [ ] I require a valid name. I have defined a valid name as a text string of two characters or more.
- [ ] I require a valid email.
- [ ] I require one colour from a defined set of 3 colours.
- [ ] I require one size from a defined set of 6 sizes.

## Resources

- [MDN: Form controls](https://developer.mozilla.org/en-US/docs/Learn/Forms)
- [MDN: Form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
- [Lighthouse](https://developers.google.com/web/tools/lighthouse)
- [Lighthouse Guide](https://programming.codeyourfuture.io/guides/testing/lighthouse)
27 changes: 0 additions & 27 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +0,0 @@
<!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-->
<h2>By HOMEWORK SOLUTION</h2>
</footer>
</body>
</html>
45 changes: 36 additions & 9 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,52 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wireframe</title>
<title>Wireframe to Webcode Assignment-Sprint 1</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1>Wireframe</h1>
<h1>Wireframe Webcode Assignment</h1>
<p>
This is the default, provided code and no changes have been made yet.
This is the initial DRAFT version of this page. <!--First line updated to reflect draft status-->
</p>
</header>
<main>
<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>

<h2>What is the Purpose of a Readme File</h2>
<p>
>A readme file serves as a guide for users and developers, providing
essential information about a project, including its purpose,
installation instructions, usage guidelines, and contribution
protocols. It helps ensure that everyone involved understands how to
effectively use and contribute to the project.
</p>
<a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes">Read more</a>
</article>
<article>
<h2>What is the Purpose of a Wireframe</h2>
<p>
A wireframe is a visual guide that represents the skeletal framework
of a website or application. Its purpose is to outline the layout,
structure, and functionality of a page before the actual design and
development process begins. Wireframes help stakeholders visualize
the user interface, plan content placement, and ensure that the user
experience is intuitive and effective.
</p>
<a href="https://www.productplan.com/glossary/wireframe/">Read more about Wireframes</a>
</article>
<article>
<h2>What is a branch in Git</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
A branch in Git is a separate line of development that allows
multiple versions of a project to coexist. It enables developers to
work on new features, bug fixes, or experiments without affecting the
main codebase. Branches facilitate collaboration, as team members can
work independently and later merge their changes back into the main
branch when ready.
</p>
<a href="">Read more</a>
<a href="https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches">Read more about Git branches</a>
</article>
</main>
<footer>
Expand All @@ -30,4 +57,4 @@ <h2>Title</h2>
</p>
</footer>
</body>
</html>
</html>
6 changes: 6 additions & 0 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ body {
color: var(--ink);
font: var(--font);
}

header{
text-align: center;
padding: calc(var(--space) * 2) var(--space);
}

a {
padding: var(--space);
border: var(--line);
Expand Down