Skip to content

Add Form Controls and Wireframe Projects (Module 1) #554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
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
43 changes: 43 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
111 changes: 87 additions & 24 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,90 @@
<!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-->
<h2>By HOMEWORK SOLUTION</h2>
</footer>
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Product Pick</title>
</head>
<body>
<header>
<h1>Product Pick</h1>
</header>

<main>
<form>
<!-- اسم العميل -->
<label for="name">Name:</label>
<input
type="text"
id="name"
name="name"
minlength="2"
required
placeholder="Enter your name"
/>
<br /><br />

<!-- البريد الإلكتروني -->
<label for="email">Email:</label>
<input
type="email"
id="email"
name="email"
required
placeholder="Enter your email"
/>
<br /><br />

<!-- اختيار اللون (3 خيارات) -->
<fieldset>
<legend>Choose a colour:</legend>

<input
type="radio"
id="red"
name="colour"
value="Red"
required
/>
<label for="red">Red</label>

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

<input
type="radio"
id="green"
name="colour"
value="Green"
/>
<label for="green">Green</label>
</fieldset>
<br />

<!-- اختيار المقاس (6 خيارات) -->
<label for="size">Choose a size:</label>
<select id="size" name="size" required>
<option value="" disabled selected>Select 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>
<br /><br />

<button type="submit">Submit</button>
</form>
</main>

<footer>
<h2>By Adel Almurisi</h2>
</footer>
</body>
</html>
70 changes: 40 additions & 30 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,43 @@
<!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">
<title>Wireframe - AdelCYF</title>
<link rel="stylesheet" href="../styles.css">
</head>
<body>
<header>
<h1>My Website Wireframe</h1>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<main>
<article>
<img src="placeholder.svg" alt="Decorative placeholder image">
<h2>Article One</h2>
<p>What is the purpose of a README file? It explains the project.</p>
<a href="#">Read more</a>
</article>
<article>
<img src="placeholder.svg" alt="Decorative placeholder image">
<h2>Article Two</h2>
<p>What is the purpose of a wireframe? It designs the UI layout.</p>
<a href="#">Read more</a>
</article>
<article>
<img src="placeholder.svg" alt="Decorative placeholder image">
<h2>Article Three</h2>
<p>What is a branch in Git? It’s a version for changes.</p>
<a href="#">Read more</a>
</article>
</main>
<footer>
<p>© 2025 My Website. All rights reserved.</p>
</footer>
</body>
</html>