Skip to content
Closed
121 changes: 97 additions & 24 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,100 @@
<!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>
<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" />
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
}
label {
display: block;
margin-bottom: 10px;
}
input {
width: 100%;
padding: 15px;
margin-bottom: 10px;
}
button{
border-radius: 5px;
margin: 15px;
padding: 5px;
}
.colour{
display: flex;
flex-direction: row;
}
footer{
text-align: center;
font-size: small;
}
</style>
</head>
<body>
<header>
<h1>Product Pick</h1>
</header>
<main>
<form>
<div class="name">
<label for="name">Name</label>
<input
type="text"
name="name"
id="name"
pattern=".*\S.*\S.*"
placeholder="Enter Your Name"
required
/>
</div>
<div class="email">
<label for="email">Email</label>
<input
type="email"
name="email"
id="email"
required
placeholder="Enter your email address"
/>
</div>
<div class="colour">
<label for="red">Red</label>
<input type="radio" name="colour" id="red" value="Red" />
<label for="blue">Blue</label>
<input type="radio" name="colour" id="blue" value="Blue" />
<label for="green">Green</label>
<input
type="radio"
name="colour"
id="green"
value="Green"
required
/>
</div>
<div class="size">
<label for="size">T-shirt Size</label>
<select name="size" id="size" required>
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="XXL">XXL</option>
</select>
</div>
<button type="reset">Reset</button>
<button type="submit">Submit</button>
</form>
</main>
<footer>
<p>Created by Szidonia Bodo</p>
</footer>
</body>
</html>
Binary file added Wireframe/GitBranch.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/Readme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
98 changes: 68 additions & 30 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,71 @@
<!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>
<p>
This is the default, provided code and no changes have been made yet.
</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>
<p>
This is the default, provided code and no changes have been made yet.
</p>
</footer>
</body>
<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>Workflow</h1>
<p>
Together, a README, wireframe, and Git branch form a basic web
development workflow: the README explains the project, the
wireframe plans the design and structure, and Git branches help
developers work on feature sfely without affecting the main
code.
</p>
</header>
<main>
<div class="firstrow">
<article>
<img src="Readme.png" alt="Readme file example" id="readmeimg" />
<h2>README files</h2>
<p>
A README file explains a project to other developers and
users. It usually includes the project purpose, installation
steps, usage instructions, features and other important
information so anyone can quickly understand and work with
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>
</div>
<div class="secondrow">
<article>
<img src="Wireframe.png" alt="Wireframe example" />
<h2>Wireframe</h2>
<p>
A wireframe isa simple visual layout used to plan the
structure, content, and use experience of a website or
application before development begins.
</p>
<a
href="https://www.figma.com/resource-library/what-is-wireframing"
>Read more</a
>
</article>
<article>
<img src="GitBranch.png" alt="Git branching example" />
<h2>Git Branching</h2>
<p>
Git branching allows developers to work on new features
or fixes separately without affecting the main project
code until the changes are ready to merge
</p>
<a
href="https://www.atlassian.com/git/tutorials/using-branches"
>Read more</a
>
</article>
</div>
</main>
<footer>
<p>This website was coded by Szidonia Bodo</p>
</footer>
</body>
</html>
114 changes: 57 additions & 57 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
/* Here are some starter styles
You can edit these or replace them entirely
It's showing you a common way to organise CSS
And includes solutions to common problems
As well as useful links to learn more */

/* ====== Design Palette ======
This is our "design palette".
It sets out the colours, fonts, styles etc to be used in this design
At work, a designer will give these to you based on the corporate brand, but while you are learning
You can design it yourself if you like
Inspect the starter design with Devtools
Click on the colour swatches to see what is happening
I've put some useful CSS you won't have learned yet
For you to explore and play with if you are interested
https://web.dev/articles/min-max-clamp
https://scrimba.com/learn-css-variables-c026
====== Design Palette ====== */
/*====== Design Palette ====== */
:root {
--paper: oklch(7 0 0);
--ink: color-mix(in oklab, var(--color) 5%, black);
--font: 100%/1.5 system-ui;
--space: clamp(6px, 6px + 2vw, 15px);
--line: 1px solid;
--container: 1280px;
--line: 1px solid rgb(201, 198, 198);
}
/* ====== Base Elements ======
General rules for basic HTML elements in any context */


body {
background: var(--paper);
color: var(--ink);
font: var(--font);
display: block;
margin: 0 auto;
background-color: rgb(213, 230, 224);
max-width: 1200px;
}
a {
h1{
font-size: 90px;
text-align: center;
color: rgb(47, 16, 77);
padding: var(--space);
}
h2, p{
margin: var(--space);
}

a {
display: block;
padding: 10px;
margin: 0 auto;
border: var(--line);
max-width: fit-content;
border-radius: 5px;
background-color: rgb(221, 149, 191);
color: black;
text-decoration: none;
}
img,
svg {
width: 100%;
object-fit: cover;
}
/* ====== 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;
padding: var(--space);
margin: var(--space);
bottom: 0;
text-align: center;
}
/* ====== 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
Play with the options that come up.
https://developer.chrome.com/docs/devtools/css/grid
https://gridbyexample.com/learn/
*/
main {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space);
> *:first-child {
grid-column: span 2;
}
}
/* ====== 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 {
border: var(--line);
border-radius: 5px;
padding-bottom: var(--space);
text-align: left;
gap: 20px;
background-color: rgb(233, 210, 243);
}
.firstrow {
display: grid;
grid-template-columns: var(--space) 1fr var(--space);
> * {
grid-column: 2/3;
grid-template-columns: 1fr;
padding: 0 0 20px;

}
.secondrow {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
#readmeimg{
display: block;
margin: 0 auto;
width: 500px;
}
@media (max-width: 800px){
.firstrow, .secondrow{
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}
> img {
grid-column: span 3;
#readmeimg{
width: 100%;
}
}
}
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