diff --git a/Form-Controls/README.md b/Form-Controls/README.md deleted file mode 100644 index c356f8844..000000000 --- a/Form-Controls/README.md +++ /dev/null @@ -1,72 +0,0 @@ -# Form Controls - -## Learning Objectives - - - -- [ ] Interpret requirements and check against a list of criteria -- [ ] Write a valid form -- [ ] Test with Devtools -- [ ] Refactor using Devtools -- [ ] Use version control by committing often and pushing regularly to GitHub -- [ ] Develop the habit of writing clean, well-structured, and error-free code - - -## 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 ensure it contains at least two non-space characters. -2. What is the customer's email? I must make sure the email is valid. Email addresses follow a consistent pattern. -3. What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours? -4. What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL - -All fields are required. -Do not write a form action for this project. - -> [!TIP] -> To check whether the customer's name contains at least two non-space characters you may need to use a **regular expression** (or **regex** for short), which is a tool used to match patterns in text. If you wish to learn more about regular expressions there are plenty of resources on the web including the [official MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions), but for this task you can use this regex that we have pre-written for you: `.*\S.*\S.*`. -> -> Now you have the regular expression, it's up to you to figure out how to use it in the context of an HTML form! - -## Acceptance Criteria - -### Developers must test their work. - -Let's write out our testable criteria. Check each one off as you complete it. - -- [ ] I have only used HTML and CSS. -- [ ] I have not used any JavaScript. - -### HTML - -- [ ] My form is semantic HTML. -- [ ] All inputs have associated labels. -- [ ] My Lighthouse Accessibility score is 100. -- [ ] I require a valid name. -- [ ] 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. - -### Developers must adhere to professional standards. - -> Before you say you're done: Is your code readable? Does it run correctly? Does it look professional? - -These practices reflect the level of quality expected in professional work. -They ensure your code is reliable, maintainable, and presents a polished, credible experience to users. - -- [ ] My HTML code has no errors or warnings when validated using https://validator.w3.org/ -- [ ] My code is consistently formatted -- [ ] My page content is free of typos and grammatical mistakes -- [ ] I commit often and push regularly to GitHub - -## 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) -- [Format Code and Make Logical Commits in VS Code](../practical_guide.md) diff --git a/Form-Controls/index.html b/Form-Controls/index.html deleted file mode 100644 index 74b591ffc..000000000 --- a/Form-Controls/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - My form exercise - - - - -
-

Product Pick

-
-
-
- - -
-
- - - diff --git a/GitHomeworkFixErrors b/GitHomeworkFixErrors new file mode 160000 index 000000000..4cec00b69 --- /dev/null +++ b/GitHomeworkFixErrors @@ -0,0 +1 @@ +Subproject commit 4cec00b696844f92d1ef2900acbcfa3f5ff6e408 diff --git a/Wireframe/code-review-flow.png b/Wireframe/code-review-flow.png new file mode 100644 index 000000000..b6a30dcee Binary files /dev/null and b/Wireframe/code-review-flow.png differ diff --git a/Wireframe/index.html b/Wireframe/index.html index 0e014e535..77db2fee5 100644 --- a/Wireframe/index.html +++ b/Wireframe/index.html @@ -1,4 +1,4 @@ - + @@ -8,26 +8,48 @@
-

Wireframe

-

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

+

Understanding Developer Tools

+

A simple guide to README files, wireframes, and Git branches.

+
- -

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 explains what a project does, how to install it, and how to + use it.

- Read more + Learn more +
+ +
+ Wireframe sketch +

What is the purpose of a wireframe?

+

+ A wireframe shows the layout of a webpage before coding begins. It + helps developers plan structure and content. +

+ Learn more +
+ +
+ Git branch diagram +

What is a branch in Git?

+

+ A branch allows you to work on new features without affecting the main + codebase. +

+ Learn more
+ diff --git a/Wireframe/readme.png b/Wireframe/readme.png new file mode 100644 index 000000000..8017b66fd Binary files /dev/null and b/Wireframe/readme.png differ diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c7..ad2aa4a19 100644 --- a/Wireframe/style.css +++ b/Wireframe/style.css @@ -52,7 +52,11 @@ main { footer { position: fixed; bottom: 0; + width: 100%; + background: #333; + color: white; text-align: center; + padding: 10px; } /* ====== Articles Grid Layout ==== Setting the rules for how articles are placed in the main element. @@ -87,3 +91,8 @@ article { grid-column: span 3; } } +header { + text-align: center; + margin: 2rem auto; + max-width: 800px; +} diff --git a/code-review-flow.png b/code-review-flow.png deleted file mode 100644 index e7f991370..000000000 Binary files a/code-review-flow.png and /dev/null differ diff --git a/index.html b/index.html deleted file mode 100644 index 80aa49666..000000000 --- a/index.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - Coursework - - - -

🧐 CYF Coursework Disposable Branch Previews

-
-
    -
  1. -

    Project 1: Wireframe

    -

    - Mentors: - open the assignment in a tab -

    -
  2. -
  3. -

    Project 2: Form Controls

    -

    - Mentors: - open the assignment in a tab -

    -
  4. -
-
- - - diff --git a/readme.md b/readme.md deleted file mode 100644 index e929bed32..000000000 --- a/readme.md +++ /dev/null @@ -1,33 +0,0 @@ -# 🤝 Welcome to your Onboarding Module - -## 🔑 Do the prep - -Before you try to complete the work in this repo, go to your curriculum and work through the prep. The prep shows you how to complete the work in this repo. Start with the prep. - -Your workflow should always be: - -```mermaid -graph LR - Begin[Prep]:::green --> Next[Backlog] --> Attend[Class] --> Evaluate[Success] --> Begin - - classDef green fill:#90EE90,color:black -``` - -### 🥁 Rhythm of the Week - -Get into a rhythm of working through the coursework: - -```mermaid -graph LR - Tuesday[Prep] --> Wednesday[Backlog] --> Friday[Demo] --> Saturday[Class] --> Sunday/Monday[Review] --> Tuesday -``` - -## 📅 Planning and managing your work - -All the coursework is listed as issues on this repo. These issues are mirrored on your curriculum backlog page. - -You will copy these issues to your Coursework Planner, which is one repo that will hold all your coursework and assignments for the entire course. - -If you do not already have your own Coursework Planner, set one up now: - -https://github.com/CodeYourFuture/Coursework-Planner