Skip to content
Closed
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
96 changes: 84 additions & 12 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,99 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<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" />
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css" >
</head>

<body>
<center>
<header>
<h1>Product Pick</h1>
<h1>Customer Confirmation Form </h1>
</header>
</center>

<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 action="results.html" method="GET">
<div>
<label for="name">Customer Name:</label>
<input type="text" id="name" name="name" required placeholder="enter your name ."/>
</div>

<div
<label for="email"> Email:</label>
<input type="email" id="email" name="email" required placeholder="@gmail.com" />
</div>

<div>
<label for="Size"> Size: </label>
<select id="size" name="size">
<option value="xsmall">xSmall</option>
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>
<option value="xlarge">xLarge</option>
<option value="xxlarge">xxLarge</option>

</div>
</select>

<div>

<label for="phone"> Phone Number:</label>
<input type="tel" id="phone" name="phone" required />
</div>

<div>
<label for="address"> Address: </label>
<input type="text" id="address" name="address" required />
</div>

<div>
<label for="color"> Color:</label>
<select id="color" name="color">
<option value="red">yellow</option>
<option value="blue">black</option>
<option value="green">Green</option>
</select>
</div>

<fieldset>

<legend>
Gender
</legend>

<div>
<label for="gender" value="male">Male</label>
<input type="radio" for="gender" id="male"></input>
</div>

<div>
<label for="gender" value="female">Female</label>
<input type="radio" for="gender" id="female"></input>
</div>

</fieldset>
<div>
<label for="comments">Additional Comments:</label>
<textarea id="comments" name="comments"></textarea>
</div>

<div>
<div class="form-button">
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</div>

</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<!-- ENICE MUTANDA-->
<p>ENICE MUTANDA</p>
</footer>
</body>
</html>
Empty file added Form-Controls/results.html
Empty file.
23 changes: 23 additions & 0 deletions Form-Controls/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
h2 {
text-align: center;
color: #333;
font-size: 24px;
}
body {
font-family: Arial, sans-serif;
background-color: #c597b0;
margin: 0;
padding: 20px;
}
header {
background-color: #c597b0;
color: rgb(53, 50, 50);
padding: 5px 0;
}
form {
background-color: #dd9ad2;
padding: 20px;
border-radius: 10px;
max-width: 500px;
margin: auto;
}
1 change: 1 addition & 0 deletions Wireframe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<!--{{</objectives>}}>-->

## Task

![Wireframe](./wireframe.png)

Using the provided wireframe and resources, write a new webpage explaining:
Expand Down
Binary file added Wireframe/images/Cafe Wireframe .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/images/Classroom Wireframe.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/images/Shopping Wireframe.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 41 additions & 10 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand All @@ -9,25 +9,56 @@
<body>
<header>
<h1>Wireframe</h1>
<p>
This is the default, provided code and no changes have been made yet.

<p Id="para">
A wireframe is a basic, two-dimensional blueprint or outline of a
website or app interface.
</p>
</header>

<main>
<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<img src="images/Classroom Wireframe.jpg" alt="alt="Classroom website wireframe showing the layout of an educational platform"

/>" />
<h2>What is the purpose of a README file?</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
A README file is a document that provides information about a project,
including its purpose, how to use it, and any other relevant details.
It serves as a guide for users and developers who want to understand
the project and contribute to it.</p>
<a href="">Read more</a>
</p>
</article>

<article>
<img src="images\Cafe Wireframe .jpg" alt=""Cafe website wireframe showing the layout of a restaurant homepage"
/>" />
<h2>What is the purpose of a wireframe?</h2>

<p>
A wireframe is a visual representation of a website or app's layout
and structure. It serves as a blueprint for the design and development
process, allowing designers and developers to plan the user interface
and user experience before creating the final product.
</p>
<a href="">Read more</a>
</article>

<article>
<img src="images/Shopping Wireframe.jpg" alt="Shopping website wireframe showing the layout of an e-commerce platform"
/>" />
<h2>What is a branch?</h2>
<p>
A branch in version control is a separate line of development. It
allows you to work on different features or experiments without
affecting the main codebase.
</p>
<a href="">Read more</a>
</article>
</main>
<footer>
<p>
This is the default, provided code and no changes have been made yet.
</p>
<p>Enice Mutanda Cyf 2026</p>
</footer>
</body>
</html>
27 changes: 20 additions & 7 deletions Wireframe/style.css

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two main selectors in this file. Consider merging the properties from both selectors into a single main rule to make them easier to find and maintain.

Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ As well as useful links to learn more */
}
/* ====== Base Elements ======
General rules for basic HTML elements in any context */

body {
background: var(--paper);
color: var(--ink);
font: var(--font);

min-height: 100vh;
display: flex;
flex-direction: column;
}
a {
padding: var(--space);
Expand All @@ -44,14 +49,8 @@ svg {
/* ====== 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 ====
Expand All @@ -61,10 +60,17 @@ Play with the options that come up.
https://developer.chrome.com/docs/devtools/css/grid
https://gridbyexample.com/learn/
*/

main {
flex: 1;

max-width: var(--container);
margin: 0 auto calc(var(--space) * 4) auto;

display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space);

> *:first-child {
grid-column: span 2;
}
Expand All @@ -87,3 +93,10 @@ article {
grid-column: span 3;
}
}
h1 {
text-align: center;
}

#para {
text-align: center;
}
Loading