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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
Binary file added Images/artificial-intelligence.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
127 changes: 124 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<!-- 1. create the basic html structure. your structure should include a blue heading and a red paragragh with font size 15px -->


<!-- 2. in your html file, add a link that opens a new tab to an external resource -->


<!-- 3. create a section and add an image, using css; place a green border on the image, the image should be 500px wide and 500px high -->


<!-- 4. create another section add a form that takes in the following input:
a. name
b. email address
Expand All @@ -22,3 +19,127 @@
-->

<!-- 5. all styling should be placed in the style.css, make sure to correctly embed the external css file on the index.html file using the relevant tag -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hackathon</title>
<link rel="stylesheet" href="style.css" type="text/css"
</head>
<body>
<header class="heading">
<h1>Welcome to my World</h1>
</header>
<p class="welcome">You are about to witness something spectacular</p>
<a
href="https://frontend-34di-6rwk0f9zl-sylvester-bamideles-projects.vercel.app/"
target="_blank"
class="my_link"
>Checkout my first work</a
>
<div class="sections">
<section class="image">
<img class="my_image" src="Images/artificial-intelligence.jpg"
</section>
</div>
<form id="myForm">
<section class="form">
<label for="name">Name</label>
<input
type="text"
name="name"
id="name"
required
class="input"
placeholder="Please enter your name"
/>
<label for="email">Email</label>
<input
type="text"
name="email"
id="email"
class="input"
placeholder="Please enter your email address"
/>
<label for="phone">Phone Number</label>
<input
class="input"
type="number"
name="Phone"
id="phone"
placeholder="Please enter your number"
/>
<label for="age">Age</label>
<input
type="number"
id="age"
name="age"
class="input"
placeholder="Please enter your age"
/>
<div class="gender_div">
<label>
<input type="radio" name="gender" value="male" class="gender" />Male
</label>
<label>
<input
type="radio"
name="gender"
value="female"
class="gender"
/>Female
</label>
<label>
<input
type="radio"
name="gender"
value="other"
class="gender"
/>Other
</label>
</div>
<label for="subjects">Select subjects:</label>
<select id="subjects" name="subjects" class="input">
<option value="math">Math</option>
<option value="science">Science</option>
<option value="history">History</option>
<option value="english">English</option>
<option value="english">Agriculture</option>
<option value="english">Art and Craft</option>
<option value="english">Geography</option>
</select>
<label for="password">Password</label>
<input
type="password"
id="password"
name="password"
class="input"
placeholder="Please enter your password"
/>
<input
type="hidden"
id="sessionId"
name="sessionId"
value="your_session_ID_here"
/>
<div class="submit_btn">
<button type="reset" class="button">Cancel</button>
<script>
document
.getElementById("myForm")
.addEventListener("reset", function (event) {
// Prevent the form from actually resetting
event.preventDefault();

// Clear the input fields
document.getElementById("Name").value = "";
document.getElementById("password").value = "";
});
</script>
<button type="submit" class="button">Register</button>
</div>
</section>
</form>
</body>
</html>
79 changes: 78 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1 +1,78 @@

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Helvetica;
}
.sections {
display: flex;
flex-direction: column;
}
.heading {
color: blue;
font-size: 15px;
text-align: center;
}
.welcome {
color: red;
font-size: 15px;
text-align: center;
margin-top: 10px;
}
.my_link {
display: flex;
justify-content: center;
margin-top: 10px;
}
.image {
display: flex;
justify-content: center;
align-items: center;
}
.my_image {
border: 3px solid green;
width: 500px;
height: 500px;
margin: 10px 0 10px 0;
}
.form {
display: flex;
align-items: center;
flex-direction: column;
border-radius: 10px;
}
#myForm {
display: flex;
justify-content: center;
}
.input {
border-radius: 6px;
width: 500px;
height: 30px;
padding-left: 10px;
margin: 10px 0 10px 0;
}
.gender {
width: 15px;
height: 15px;
margin-right: 5px;
}
.gender_div {
display: flex;
gap: 60px;
margin-bottom: 10px;
}
.button {
width: 200px;
height: 40px;
background-color: aqua;
border: none;
border-radius: 6px;
font-size: 20px;
font-family: "Courier New", Courier, monospace;
}
.submit_btn {
display: flex;
gap: 50px;
margin-top: 20px;
}