Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.
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
Binary file added Cakes-Co/img/Best-Birthday-Cake.webp
Binary file not shown.
Binary file added Cakes-Co/img/cake 1.webp
Binary file not shown.
Binary file added Cakes-Co/img/cake 2.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 Cakes-Co/img/chocolate cake.avif
Binary file not shown.
Binary file added Cakes-Co/img/cupcakes.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 Cakes-Co/img/donuts.jfif
Binary file not shown.
Binary file added Cakes-Co/img/fruit cake.jfif
Binary file not shown.
Binary file added Cakes-Co/img/logo for cake.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 Cakes-Co/img/muffin.avif
Binary file not shown.
62 changes: 54 additions & 8 deletions Cakes-Co/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,62 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Responsive Cake webpage</title>
<!-- Add a link to your css file here -->
<link rel="stylesheet" href="style.css">
<title>Cake Company</title>
</head>

<body>
<!-- Add your markup here -->
</body>
<!-- Header with Logo and Navigation -->
<header>
<div class="logo">
<img src="img/logo for cake.jpg" alt="Cake Company Logo">
</div>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Cakes</a></li>
<li><a href="#">Ordering</a></li>
<li><a href="#">Lessons</a></li>
<li><a href="#">About</a></li>
</ul>
</nav>
</header>

<!-- Hero Section (Welcome Message and Tagline) -->
<section class="hero">
<div class="hero-text">
<h1>Welcome</h1>
<p>The best cakes in town delivered to your door</p>
</div>
<div class="hero-image">
<img src="img/Best-Birthday-Cake.webp" alt="Cake Image">
</div>
</section>

</html>
<!-- Cake Gallery -->
<section class="gallery">
<div class="gallery-item">
<img src="img/cake 1.webp" alt="Birthday Cake">
<p>Birthday Cake</p>
</div>
<div class="gallery-item">
<img src="img/cake 2.jpg" alt="Chocolate Cake">
<p>Chocolate Cake</p>
</div>
<div class="gallery-item">
<img src="img/fruit cake.jfif" alt="Fruit Cake">
<p>Fruit Cake</p>
</div>
<div class="gallery-item">
<img src="img/cupcakes.jpg" alt="Cupcake">
<p>Cupcake</p>
</div>
</section>

<!-- Footer -->
<footer>
<p>&copy; 2024 Cake Company. All rights reserved.</p>
</footer>
</body>
</html>
143 changes: 142 additions & 1 deletion Cakes-Co/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,142 @@
/* Add your styling here */
/* General Style */
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f9f9f9;
color: #333;
}

/* Header Styling */
header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
padding: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
width: 80px;
}

nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}

nav ul li {
margin-left: 20px;
}

nav a {
text-decoration: none;
color: #333;
font-weight: bold;
transition: color 0.3s ease;
}

nav a:hover {
color: #f39c12;
}

/* Hero Section Styling */
.hero {
display: flex;
justify-content: space-between;
align-items: center;
padding: 60px 20px;
background-color: #f3e5f5;
}

.hero-text h1 {
font-size: 2.5rem;
color: #d35400;
}

.hero-text p {
font-size: 1.2rem;
color: #7f8c8d;
}

.hero-image img {
width: 400px;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cake Gallery Styling */
.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
padding: 20px;
background-color: #fff;
}

.gallery-item {
text-align: center;
}

.gallery-item img {
width: 100%;
height: 250px;
object-fit: cover; /* Ensures all images maintain a uniform size without distortion */
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item p {
margin-top: 10px;
font-weight: bold;
color: #34495e;
}

/* Footer Styling */
footer {
text-align: center;
padding: 20px;
background-color: #fff;
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
font-size: 0.9rem;
color: #7f8c8d;
}

/* Responsive Media Query */
@media (max-width: 768px) {
header {
flex-direction: column;
align-items: center;
}

nav ul {
flex-direction: column;
align-items: center;
}

nav ul li {
margin: 10px 0;
}

.hero {
flex-direction: column;
text-align: center;
}

.hero-text h1 {
font-size: 2rem;
}

.hero-image img {
width: 250px;
}
}
68 changes: 60 additions & 8 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,71 @@
</head>
<body>
<header>
<h1>Product Pick</h1>
<h1>Shirt Order Form</h1>
</header>
<main>
<form>
<!-- write your html here-->
<!-- try writing out the requirements first-->
<form id="shirt-order-form">
<!-- Customer's Name -->
<div class="form-group">
<label for="customer-name">What is your name?</label>
<input type="text" id="customer-name" name="customer-name" required minlength="2" placeholder="Enter your name">
</div>

<!-- Customer's Email -->
<div class="form-group">
<label for="customer-email">What is your email?</label>
<input type="email" id="customer-email" name="customer-email" required placeholder="Enter your email">
</div>

<!-- T-shirt Color -->
<div class="form-group">
<label for="tshirt-color">What color should this t-shirt be?</label>
<select id="tshirt-color" name="tshirt-color" required>
<option value="" disabled selected>Select a color</option>
<option value="red">Red</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
</select>
</div>

<!-- T-shirt Size -->
<div class="form-group">
<label for="tshirt-size">What size do you want?</label>
<select id="tshirt-size" name="tshirt-size" required>
<option value="" disabled selected>Select 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>
</div>

<!-- Delivery Date -->
<div class="form-group">
<label for="delivery-date">When do you want the t-shirt to be delivered?</label>
<input type="date" id="delivery-date" name="delivery-date" required min="" max="">
</div>

<!-- Submit Button -->
<button type="submit">Submit Order</button>
</form>

</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<!-- Change to your name -->
<h2>By Delwin Mansur A. Bawa</h2>
</footer>
</body>

</html>
<script>
// Setting min and max delivery dates (next 4 weeks)
const deliveryDateInput = document.getElementById('delivery-date');
const today = new Date();
const maxDate = new Date(today);
maxDate.setDate(today.getDate() + 28); // Max 4 weeks from today
deliveryDateInput.min = today.toISOString().split('T')[0];
deliveryDateInput.max = maxDate.toISOString().split('T')[0];
</script>
</body>
</html>
59 changes: 59 additions & 0 deletions Form-Controls/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 20px;
}

h1 {
text-align: center;
color: #333;
}

form {
background: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
max-width: 400px;
margin: auto;
}

label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}

input[type="text"],
input[type="email"],
select,
input[type="date"] {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
transition: border-color 0.3s;
}

input:focus,
select:focus,
input[type="date"]:focus {
border-color: #66afe9;
outline: none;
}

button {
background-color: #28a745;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}

button:hover {
background-color: #218838;
}
Loading