Advances in Web Technologies
Advances in Web Technologies
Assessment-1
Name :V. Dhivya Shree
reg.no:22MID0295
CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Hackathon Registration</title>
<style>
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #A8DADC,
#E6FFFB); /* Light blue and mint green */
color: #333;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-size: cover;
}
h1 {
text-align: center;
font-size: 3em;
margin-bottom: 30px;
color: #FF6F61; /* Peach color for header */
text-transform: uppercase;
font-weight: 600;
}
.moving-text {
color: #3CB371; /* Medium sea green for moving text */
font-size: 1.8em;
font-style: italic;
position: absolute;
top: 15%;
animation: moveText 10s linear infinite;
font-weight: bold;
}
@keyframes moveText {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(-100%);
}
}
.container {
width: 60%;
background-color: #fff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
margin-top: 100px;
color: #333;
border-top: 5px solid #FF6F61; /* Peach accent at the
top */
}
.form-group {
margin-bottom: 20px;
}
label {
font-size: 1.1em;
color: #FF6F61; /* Peach color for labels */
font-weight: 600;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
width: 100%;
padding: 12px;
border: 2px solid #A8DADC; /* Light mint green border
*/
border-radius: 6px;
font-size: 16px;
color: #333;
margin-top: 5px;
background-color: #fff;
box-sizing: border-box;
}
textarea {
resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
margin-right: 10px;
}
button {
padding: 12px 18px;
background-color: #FF6F61; /* Peach button */
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 18px;
width: 48%;
margin-top: 20px;
transition: background-color 0.3s;
}
button:hover {
background-color: #FF4F39; /* Darker peach color on
hover */
}
.form-footer {
display: flex;
justify-content: space-between;
gap: 15px;
}
.form-footer button {
width: 48%;
}
.form-group input[type="file"] {
padding: 8px;
border-radius: 6px;
border: 2px solid #A8DADC; /* Light mint green for file
input */
}
.form-group input[type="radio"],
.form-group input[type="checkbox"] {
margin-top: 10px;
}
</style>
</head>
<body>
<div class="moving-text">
<p>Join us for an unforgettable Hackathon
experience!</p>
</div>
<div class="container">
<h1>Hackathon Registration</h1>
<form action="#" method="POST"
enctype="multipart/form-data">
<div class="form-group">
<label for="email">Email Address:</label>
<input type="email" id="email" name="email" required
placeholder="Enter your email">
</div>
<div class="form-group">
<label for="contact">Contact Number:</label>
<input type="tel" id="contact" name="contact"
required placeholder="Enter your contact number">
</div>
<div class="form-group">
<label for="year">Year of Study:</label>
<select id="year" name="year" required>
<option value="" disabled selected>Select your
year of study</option>
<option value="1">1st Year</option>
<option value="2">2nd Year</option>
<option value="3">3rd Year</option>
<option value="4">4th Year</option>
</select>
</div>
</body>
</html>
OUTPUT: