<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Account Settings</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Account Settings</h1>
</header>
<main>
<section class="settings-section">
<h2>Profile Settings</h2>
<form>
<label for="username">Username:</label>
<input type="text" id="username" name="username" value="john_doe" disabled>
<label for="email">Email:</label>
<input type="email" id="email" name="email" value="[email protected]">
<label for="bio">Bio:</label>
<textarea id="bio" name="bio" rows="4">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</textarea>
<button type="submit">Save Changes</button>
</form>
</section>
<section class="settings-section">
<h2>Password Settings</h2>
<form>
<label for="current-password">Current Password:</label>
<input type="password" id="current-password" name="current-password">
<label for="new-password">New Password:</label>
<input type="password" id="new-password" name="new-password">
<label for="confirm-password">Confirm New Password:</label>
<input type="password" id="confirm-password" name="confirm-password">
<button type="submit">Change Password</button>
</form>
</section>
<section class="settings-section">
<h2>Notification Settings</h2>
<div class="notification-option">
<label for="email-notifications">Email Notifications:</label>
<input type="checkbox" id="email-notifications" name="email-notifications" checked>
</div>
<div class="notification-option">
<label for="push-notifications">Push Notifications:</label>
<input type="checkbox" id="push-notifications" name="push-notifications">
</div>
<button>Save Notification Settings</button>
</section>
</main>
<footer>
<p>© 2024 Account Settings</p>
</footer>
</body>
</html>
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
background-color: #f4f4f4;
color: #333;
padding: 2rem;
}
header {
background-color: #333;
color: #fff;
padding: 1rem 0;
text-align: center;
margin-bottom: 2rem;
}
main {
display: grid;
gap: 2rem;
}
.settings-section {
background-color: #fff;
border: 1px solid #ccc;
padding: 1.5rem;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.settings-section h2 {
border-bottom: 1px solid #ccc;
padding-bottom: 0.5rem;
margin-bottom: 1rem;
}
form {
display: grid;
gap: 1rem;
}
form label {
font-weight: bold;
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea {
width: 100%;
padding: 0.5rem;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 3px;
}
form textarea {
resize: vertical;
}
form button {
background-color: #333;
color: #fff;
border: none;
padding: 0.5rem 1rem;
cursor: pointer;
border-radius: 3px;
transition: background-color 0.3s;
}
form button:hover {
background-color: #555;
}
.notification-option {
display: flex;
align-items: center;
margin-bottom: 1rem;
}
.notification-option label {
margin-right: 1rem;
}