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
92 changes: 67 additions & 25 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,69 @@
<!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>
</html>
<head>
<meta charset="UTF-8">
<title>T-shirt Order Form</title>
</head>
<body>
<main>
<h1>T-shirt Order Form</h1>

<form>
<fieldset>
<legend>Customer details</legend>

<label for="customer-name">Name</label>
<input
type="text"
id="customer-name"
name="customer-name"
minlength="2"
pattern=".*\S.*\S.*"
required
>

<label for="customer-email">Email</label>
<input
type="email"
id="customer-email"
name="customer-email"
required
>
</fieldset>

<fieldset>
<legend>T-shirt colour</legend>

<input type="radio" id="colour-black" name="colour" value="black" required>
<label for="colour-black">Black</label>

<input type="radio" id="colour-white" name="colour" value="white">
<label for="colour-white">White</label>

<input type="radio" id="colour-blue" name="colour" value="blue">
<label for="colour-blue">Blue</label>
</fieldset>

<fieldset>
<legend>T-shirt size</legend>

<label for="size">Size</label>
<select id="size" name="size" required>
<option value="">Choose a size</option>
<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>
</fieldset>

<button type="submit">Submit order</button>
</form>
</main>
<footer>
<p>By Eymen Bera Zengin</p>
</footer>
</body>
</html>
89 changes: 45 additions & 44 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,46 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Coursework</title>
<style>
: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;
}
body {
background: var(--paper);
color: var(--ink);
font: var(--font);
max-width: 1280px;
margin: 0 auto;
}
</style>
</head>
<body>
<header><h1>🧐 CYF Coursework Disposable Branch Previews</h1></header>
<main>
<ol>
<li>
<h2><a href="/Wireframe">Project 1: Wireframe</a></h2>
<p>
Mentors:
<a href="Wireframe/readme.md">open the assignment in a tab</a>
</p>
</li>
<li>
<h2><a href="/Form-Controls">Project 2: Form Controls</a></h2>
<p>
Mentors:
<a href="Form-Controls/readme.md">open the assignment in a tab</a>
</p>
</li>
</ol>
</main>
<footer><a href="HOW_TO_REVIEW.md">HOW TO REVIEW MD</a></footer>
</body>
</html>
<head>
<meta charset="UTF-8">
<title>Wireframe Task</title>
<link rel="stylesheet" href="style.css">
</head>

<body>

<header>
<h1>My Web Page</h1>
</header>

<main>
<section class="articles">

<article>
<img src="placeholder.svg" alt="image">
<h2>What is a README file?</h2>
<p>Short explanation here...</p>
<a href="#">Read more</a>
</article>

<article>
<img src="placeholder.svg" alt="image">
<h2>What is a wireframe?</h2>
<p>Short explanation here...</p>
<a href="#">Read more</a>
</article>

<article>
<img src="placeholder.svg" alt="image">
<h2>What is a Git branch?</h2>
<p>Short explanation here...</p>
<a href="#">Read more</a>
</article>

</section>
</main>

<footer>
<p>Footer content</p>
</footer>

</body>
</html>
71 changes: 71 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
body {
margin: 0;
font-family: Arial, sans-serif;
padding-bottom: 80px;
}

header {
text-align: center;
padding: 30px 0 20px;
}

header p {
font-weight: bold;
}

main {
max-width: 1000px;
margin: 0 auto;
}

.articles {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 25px;
}

article {
border: 2px solid black;
}

article:first-child {
grid-column: 1 / 3;
}

article img {
width: 100%;
height: 220px;
object-fit: cover;
display: block;
border-bottom: 2px solid black;
}

article:first-child img {
height: 260px;
}

article h2,
article p,
article a {
margin-left: 20px;
}

article a {
display: inline-block;
margin-bottom: 20px;
padding: 10px 18px;
border: 2px solid black;
color: black;
text-decoration: none;
font-weight: bold;
}

footer {
position: fixed;
bottom: 0;
width: 100%;
border-top: 2px solid black;
text-align: center;
padding: 20px;
background: white;
}