-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
124 lines (109 loc) · 3.26 KB
/
index.html
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>App Drawer</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #B5CB99;
}
.header {
background-color: #186F65;
color: #FCE09B;
padding: 16px;
text-align: center;
}
.search-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
background-color: #C84B31;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-top: 16px; /* Margin to align with app-items */
}
.search-input {
flex-grow: 1;
padding: 8px;
margin-right: 16px;
}
.app-drawer {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
padding: 16px;
}
.app-item {
background-color: #186F65;
border: 1px solid #ddd;
border-radius: 8px;
padding: 16px;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease-in-out;
display: flex;
flex-direction: column;
align-items: center;
}
.app-item img {
max-width: 50px;
max-height: 50px;
margin-bottom: 8px;
}
.app-item span {
font-size: 14px;
color: #FCE09B;
}
.app-item:hover {
transform: scale(1.05);
background-color: #B2533E;
}
</style>
</head>
<body>
<div class="header">
<h1>Madrasah Digital</h1>
<div class="date-widget">January 19, 2024</div>
</div>
<div class="search-bar">
<input type="text" class="search-input" placeholder="Search..." oninput="searchApps()">
</div>
<div class="app-drawer">
<div class="app-item" id="app1">
<img src="icon1.png" alt="App Icon 1">
<span>App 1</span>
</div>
<div class="app-item" id="app2">
<img src="icon2.png" alt="App Icon 2">
<span>App 2</span>
</div>
<div class="app-item" id="app3">
<img src="icon3.png" alt="App Icon 3">
<span>App 3</span>
</div>
<!-- Add more app items as needed -->
</div>
<script>
function searchApps() {
var input, filter, apps, app, i, txtValue;
input = document.querySelector('.search-input');
filter = input.value.toUpperCase();
apps = document.querySelectorAll('.app-item');
for (i = 0; i < apps.length; i++) {
app = apps[i];
txtValue = app.textContent || app.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
app.style.display = "";
} else {
app.style.display = "none";
}
}
}
</script>
</body>
</html>