Add Week-01 and Week-02 content
This commit is contained in:
45
Week-02/Day_01/index.html
Normal file
45
Week-02/Day_01/index.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Advanced HTML & CSS - Simple Form</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="wrapper">
|
||||
|
||||
<form class="form" id="userForm">
|
||||
<h3>User Form</h3>
|
||||
|
||||
<input type="text" id="name" name="name" placeholder="Name" required>
|
||||
<input type="email" id="email" name="email" placeholder="Email" required>
|
||||
<input type="text" id="city" name="city" placeholder="City">
|
||||
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
|
||||
<div class="display">
|
||||
<h3>Entered Details</h3>
|
||||
<p>Name: <span id="displayName">______</span></p>
|
||||
<p>Email: <span id="displayEmail">______</span></p>
|
||||
<p>City: <span id="displayCity">______</span></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.getElementById('userForm').addEventListener('submit', function(e) {
|
||||
e.preventDefault();
|
||||
var name = document.getElementById('name').value.trim();
|
||||
var email = document.getElementById('email').value.trim();
|
||||
var city = document.getElementById('city').value.trim();
|
||||
|
||||
document.getElementById('displayName').textContent = name || '______';
|
||||
document.getElementById('displayEmail').textContent = email || '______';
|
||||
document.getElementById('displayCity').textContent = city || '______';
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
32
Week-02/Day_01/style.css
Normal file
32
Week-02/Day_01/style.css
Normal file
@@ -0,0 +1,32 @@
|
||||
body {
|
||||
font-family: Arial;
|
||||
background: #f2f2f2;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
width: 500px;
|
||||
margin: 50px auto;
|
||||
}
|
||||
|
||||
.form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
background: white;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.display {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
background: white;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
input, button {
|
||||
padding: 8px;
|
||||
}
|
||||
65
Week-02/Day_02/index.html
Normal file
65
Week-02/Day_02/index.html
Normal file
@@ -0,0 +1,65 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Advanced HTML & CSS - Simple Form</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<nav class="nav">
|
||||
<ul>
|
||||
<li><a href="#about">About</a></li>
|
||||
<li><a href="#product">Product</a></li>
|
||||
<li><a href="#contact">Contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<div class="wrapper">
|
||||
|
||||
<form class="form" id="userForm">
|
||||
<h3>User Form</h3>
|
||||
|
||||
<input type="text" id="name" name="name" placeholder="Name" required>
|
||||
<input type="email" id="email" name="email" placeholder="Email" required>
|
||||
<input type="text" id="city" name="city" placeholder="City">
|
||||
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
|
||||
<div class="display">
|
||||
<h3>Entered Details</h3>
|
||||
<p>Name: <span id="displayName">______</span></p>
|
||||
<p>Email: <span id="displayEmail">______</span></p>
|
||||
<p>City: <span id="displayCity">______</span></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<div class="pagination">
|
||||
<a href="#" class="prev">«</a>
|
||||
<a href="#" class="page active">1</a>
|
||||
<a href="#" class="page">2</a>
|
||||
<a href="#" class="page">3</a>
|
||||
<a href="#" class="next">»</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
document.getElementById('userForm').addEventListener('submit', function(e) {
|
||||
e.preventDefault();
|
||||
var name = document.getElementById('name').value.trim();
|
||||
var email = document.getElementById('email').value.trim();
|
||||
var city = document.getElementById('city').value.trim();
|
||||
|
||||
document.getElementById('displayName').textContent = name || '______';
|
||||
document.getElementById('displayEmail').textContent = email || '______';
|
||||
document.getElementById('displayCity').textContent = city || '______';
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
79
Week-02/Day_02/style.css
Normal file
79
Week-02/Day_02/style.css
Normal file
@@ -0,0 +1,79 @@
|
||||
body {
|
||||
font-family: Arial;
|
||||
background: #f2f2f2;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
max-width: 700px;
|
||||
margin: 40px auto;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
background: white;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.display {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
background: white;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
input, button {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
header {
|
||||
background: #ffffff;
|
||||
box-shadow: 0 1px 4px rgba(0,0,0,0.06);
|
||||
padding: 12px 0;
|
||||
}
|
||||
header .nav ul {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
justify-content: center;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
header .nav a {
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Footer / Pagination */
|
||||
footer {
|
||||
margin: 30px auto 50px;
|
||||
max-width: 700px;
|
||||
text-align: center;
|
||||
}
|
||||
.pagination {
|
||||
display: inline-flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
.pagination a {
|
||||
display: inline-block;
|
||||
padding: 6px 10px;
|
||||
background: #fff;
|
||||
border-radius: 4px;
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
.pagination a.active {
|
||||
background: #007acc;
|
||||
color: #fff;
|
||||
border-color: #007acc;
|
||||
}
|
||||
43
Week-02/Day_03/index.html
Normal file
43
Week-02/Day_03/index.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Responsive Task - Week 2 - Day 3</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<header>
|
||||
<h1>Responsive News</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#">Home</a></li>
|
||||
<li><a href="#">Articles</a></li>
|
||||
<li><a href="#">Contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="grid">
|
||||
<article class="card">
|
||||
<img src="https://via.placeholder.com/400x200" alt="Sample">
|
||||
<h2>Article 1</h2>
|
||||
<p>This layout uses CSS Grid to stay organized on desktop.</p>
|
||||
</article>
|
||||
<article class="card">
|
||||
<img src="https://via.placeholder.com/400x200" alt="Sample">
|
||||
<h2>Article 2</h2>
|
||||
<p>On mobile, these cards will stack one on top of the other.</p>
|
||||
</article>
|
||||
<article class="card">
|
||||
<img src="https://via.placeholder.com/400x200" alt="Sample">
|
||||
<h2>Article 3</h2>
|
||||
<p>Responsive design makes the web accessible to everyone.</p>
|
||||
</article>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
53
Week-02/Day_03/style.css
Normal file
53
Week-02/Day_03/style.css
Normal file
@@ -0,0 +1,53 @@
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
line-height: 1.5;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
gap: 20px;
|
||||
background: #1a08e9;
|
||||
padding: 10px;
|
||||
}
|
||||
nav a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.card {
|
||||
border: 2px solid #271e1e;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
|
||||
.grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
19
Week-02/Day_04/README.md
Normal file
19
Week-02/Day_04/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
### I mastered the 5 Basic Steps of the GitHub workflow:
|
||||
|
||||
1. **Repository:** I created a "home" for my project files.
|
||||
2. **Branching:** I made a "copy" of my project to work on safely (so I don't break the main version).
|
||||
3. **Committing:** I saved my progress with a clear note about what I changed.
|
||||
4. **Pull Request (PR):** I asked for my changes to be checked and added to the main project.
|
||||
5. **Merging:** I combined my new work into the final project.
|
||||
|
||||
## Checklist of Tasks Completed
|
||||
- [1] Created a new repository called `hello-world`.
|
||||
- [2] Created a new branch called `readme-edits`.
|
||||
- [3] Edited the README file and saved (committed) the changes.
|
||||
- [4] Opened a Pull Request to share my work.
|
||||
- [5] Merged the Pull Request into the main branch.
|
||||
|
||||
## Tools Used
|
||||
* **GitHub:** To host my project online.
|
||||
* **Git:** To track the history of my work.
|
||||
* **Markdown:** To write this simple and clean README file.
|
||||
36
Week-02/Day_05/README.md
Normal file
36
Week-02/Day_05/README.md
Normal file
@@ -0,0 +1,36 @@
|
||||
### Key Concepts Learned
|
||||
|
||||
1. **Repositories:** Creating a project container on GitHub to track history.
|
||||
2. **Branching:** Creating an isolated environment (`readme-edits`) to test new ideas without affecting the `main` code.
|
||||
3. **Commits:** Saving "checkpoints" in the project with descriptive messages.
|
||||
4. **Pull Requests (PR):** Proposing changes to the project and starting a discussion before merging.
|
||||
5. **Merging:** Successfully incorporating changes from a branch back into the master project.
|
||||
|
||||
|
||||
### To complete this task, I performed the following steps:
|
||||
|
||||
- [x] **Initialized Repository:** Created the `hello-world` repository.
|
||||
- [x] **Created Branch:** Created a branch named `readme-edits` to follow the branching strategy.
|
||||
- [x] **Modified Content:** Updated the `README.md` with professional information.
|
||||
- [x] **Committed Changes:** Used the Conventional Commits format for the commit message.
|
||||
- [x] **Opened Pull Request:** Documented the changes and submitted them for review.
|
||||
- [x] **Merged PR:** Finalized the changes into the `main` branch.
|
||||
|
||||
|
||||
### During this task, I practiced the following CLI commands:
|
||||
|
||||
```bash
|
||||
# Clone the repository locally
|
||||
git clone https://github.com/[username]/hello-world.git
|
||||
|
||||
# Create a new branch
|
||||
git checkout -b readme-edits
|
||||
|
||||
# Stage changes
|
||||
git add .
|
||||
|
||||
# Commit changes
|
||||
git commit -m "docs: add intern profile and workflow log"
|
||||
|
||||
# Push to GitHub
|
||||
git push origin readme-edits
|
||||
Reference in New Issue
Block a user