-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.html
More file actions
64 lines (54 loc) · 1.99 KB
/
Copy paththeme.html
File metadata and controls
64 lines (54 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Website Themes</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light text-dark">
<div class="container py-5">
<h1 class="text-center mb-4">Choose a Website Theme</h1>
<div class="row g-4">
<!-- Theme 1 -->
<div class="col-md-4">
<div class="card text-white bg-dark">
<div class="card-body">
<h5 class="card-title">Dark Mode</h5>
<p class="card-text">Dark background with white text</p>
<button class="btn btn-light w-100" onclick="applyTheme('dark')">Apply Theme</button>
</div>
</div>
</div>
<!-- Theme 2 -->
<div class="col-md-4">
<div class="card text-white bg-primary">
<div class="card-body">
<h5 class="card-title">Blue Theme</h5>
<p class="card-text">Blue navbar and highlights</p>
<button class="btn btn-light w-100" onclick="applyTheme('blue')">Apply Theme</button>
</div>
</div>
</div>
<!-- Theme 3 -->
<div class="col-md-4">
<div class="card text-dark bg-warning">
<div class="card-body">
<h5 class="card-title">Yellow Theme</h5>
<p class="card-text">Bright and cheerful layout</p>
<button class="btn btn-dark w-100" onclick="applyTheme('yellow')">Apply Theme</button>
</div>
</div>
</div>
</div>
</div>
<script>
function applyTheme(theme) {
alert('Theme "' + theme + '" applied!');
// Example theme logic (can be replaced with actual CSS changes)
localStorage.setItem("selectedTheme", theme);
// You can now use this value on other pages to apply consistent theme
}
</script>
</body>
</html>