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
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.
95 changes: 65 additions & 30 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,68 @@
<!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>
<article>
<img src="Readme.png" alt="Readme file example" />
<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>
<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>
</main>
<footer>
<p>
This website was coded by Szidonia Bodo
</p>
</footer>
</body>
</html>
34 changes: 15 additions & 19 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
/* 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;
--line: 1px solid rgb(201, 198, 198);
--container: 1280px;
}
/* ====== Base Elements ======
Expand All @@ -31,10 +15,20 @@ body {
color: var(--ink);
font: var(--font);
}
h1{
text-align: center;
padding: var(--space);
}
h2, p{
padding: var(--space);
margin: var(--space);
}
a {
padding: var(--space);
margin: var(--space);
border: var(--line);
max-width: fit-content;
border-radius: 5px;
}
img,
svg {
Expand All @@ -50,7 +44,8 @@ main {
margin: 0 auto calc(var(--space) * 4) auto;
}
footer {
position: fixed;
padding: var(--space);
margin: var(--space);
bottom: 0;
text-align: center;
}
Expand All @@ -76,6 +71,7 @@ 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;
display: grid;
Expand Down
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