Frontend
Frontend
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prelim Exam</title>
<link href="https://fonts.googleapis.com/css2?
family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="nav">
<h1><i style="color:pink">GET READY WITH ME</i></h1>
</div>
<style>
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
flex-direction: column;
}
.nav {
width: 100%;
text-align: center;
background-color: #fff;
padding: 10px 0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.container {
display: flex;
flex-direction: justify;
align-items: center;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 80%;
max-width: 900px;
margin: 20px auto;
}
form {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
padding-bottom: 20px;
}
form label {
font-size: 1.2rem;
margin: 5px 0;
}
form input[type="text"] {
padding: 8px;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 5px;
width: 300px;
margin-bottom: 15px;
}
form button {
background-color: #DE3163;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
}
.product-grid {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
margin: 20px 0;
background-color: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 50%;
max-width: 800px;
border: 2px solid #DE3163;
}
.product-item img {
width: 50px;
height: 50px;
border-radius: 5px;
object-fit: cover;
}
.product-grid label {
font-size: 1rem;
margin-left: 10px;
}
h4 {
margin-bottom: 10px;
text-align: center;
}
</style>
<div class="container">
<form action="backend.php" method="post">
<!-- Username -->
<label for="u-name">Username:</label>
<input type="text" name="u-name" id="u-name" placeholder="Enter your
username" required
value="<?php echo isset($_POST['u-name']) ? $_POST['u-name'] :
''; ?>">
<h2><i style="color:#DE3163">PRODUCTS</i></h2>
</div>
</section>
<!-- Pressed Powder Section -->
<section class="product-grid">
<div class="pressedpowder">
<h4><i style="color:hotpink">Pressed Powder</i></h4>
<div class="product-item">
<input type="checkbox" name="oat" id="oat">
<img src="img/Pressed Oat.jpg" alt="">
<label for="oat">Oat</label>
</div>
<div class="product-item">
<input type="checkbox" name="nutmeg" id="nutmeg">
<img src="img/Pressed Nutmeg.jpg" alt="">
<label for="nutmeg">Nutmeg</label>
</div>
<div class="product-item">
<input type="checkbox" name="mocha" id="mocha">
<img src="img/Pressed Mocha.jpg" alt="">
<label for="mocha">Mocha</label>
</div>
</div>
</section>
<div class="product-item">
<input type="checkbox" name="vol" id="vol">
<img src="img/Volumizing.jpg" alt="">
<label for="vol">Volumizing</label>
</div>
</div>
</section>
</body>
</html>