-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcollections.html
More file actions
237 lines (207 loc) · 5.96 KB
/
collections.html
File metadata and controls
237 lines (207 loc) · 5.96 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<title>مجموعه مهرها | Sealica</title>
<style>
@font-face {
font-family: 'Dastan';
src: url('assets/css/dastan.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
font-family: 'Dastan', sans-serif;
direction: rtl;
font-size: 18pt;
background-color: white;
overflow-x: hidden;
}
.header-img {
width: 800px;
height: auto;
display: block;
margin: 0 auto;
padding: 10px;
}
.header-img:hover {
content: url("assets/css/sealica_header_hover.jpg"); /* Changes the image source */
}
nav {
width: 750px;
margin: 0 auto;
padding: 10px;
background-color: white;
display: flex;
justify-content: space-between;
align-items: center;
}
nav a {
font-size: 30px;
color: #b0b0b0;
text-decoration: none;
margin: 0 15px;
font-weight: bold;
transition: color 0.3s ease;
}
nav a:hover {
color: #000000;
}
main {
flex: 1;
max-width: 1024px;
width: 100%;
margin: 0 auto;
padding: 0 15px;
display: flex;
flex-direction: column;
align-items: stretch;
}
.filter-bar {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
margin: 30px auto 20px auto;
}
.filters {
display: flex;
gap: 15px;
align-items: center;
flex-wrap: wrap;
}
.filter-bar label {
margin-left: 10px;
color: #003366;
}
.filter-bar select {
font-size: 16pt;
padding: 5px;
border-radius: 4px;
border: 1px solid #ccc;
font-family: 'Dastan', sans-serif;
}
#searchInput {
font-size: 16pt;
padding: 8px 12px;
border-radius: 6px;
border: 1px solid #ccc;
font-family: 'Dastan', sans-serif;
max-width: 350px;
flex-shrink: 0;
}
.gallery-grid {
width: 100%;
max-width: 1024px;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
margin-bottom: 40px;
}
.thumb img {
width: 100%;
height: auto;
border-radius: 4px;
box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.caption {
margin-top: 6px;
text-align: center;
font-size: 14pt;
color: #333;
}
footer {
width: 100%;
text-align: center;
font-size: 12pt;
font-family: Calibri, sans-serif;
color: gray;
padding: 10px;
background-color: white;
direction: ltr;
}
</style>
<!-- دادههای گالری مهرها -->
<script src="gallery_data.js"></script>
</head>
<body>
<img src="assets/css/sealica_header.jpg" alt="Sealica Header" class="header-img">
<nav>
<a href="index.html">خانه</a>
<a href="collections.html">مجموعهها</a>
<a href="library.html">کتابخانه</a>
<a href="map.html">نقشه</a>
<a href="about.html">درباره ما</a>
<a href="contribute.html">همراهی</a>
<a href="collections-en.html" style="font-size: 16pt; font-family: sans-serif; margin-right: 10 px;">English</a>
</nav>
<main>
<div class="filter-bar">
<div class="filters">
<label for="typeDropdown">نوع مهر:</label>
<select id="typeDropdown">
<option>همه انواع</option>
<option>استوانهای</option>
<option>استمپی</option>
<option>برچسبی</option>
</select>
<label for="periodDropdown">دوره تاریخی:</label>
<select id="periodDropdown">
<option>همه دورهها</option>
<option>پیش از تاریخ</option>
<option>هخامنشیان</option>
<option>سلوکیان</option>
<option>اشکانیان</option>
<option>ساسانیان</option>
<option>دوره میانه</option>
<option>ایلخانان</option>
<option>تیموریان</option>
<option>ترکمانان</option>
<option>صفویان</option>
<option>افشاریان</option>
<option>زندیان</option>
<option>قاجاریان</option>
<option>پهلوی</option>
<option>معاصر</option>
</select>
</div>
<input type="text" id="searchInput" placeholder="جستجو در میان مهرها..." />
</div>
<div class="gallery-grid"></div>
</main>
<footer>
Sealica: Thesaurus Sigillorum Iranicorum - سیلیکا: گنجینه مهرهای ایرانی<br>
Powered by <a href="mailto:alirafi@gmx.ch">Ali Mashhadi Rafi</a>
</footer>
<script>
const gallery = document.querySelector(".gallery-grid");
const searchInput = document.getElementById("searchInput");
function displayGallery(items) {
gallery.innerHTML = "";
items.slice(0, 24).forEach(item => {
const div = document.createElement("div");
div.className = "thumb";
div.innerHTML = `
<img src="images/${item.image}" alt="${item.name}">
<div class="caption">${item.name}</div>
`;
gallery.appendChild(div);
});
}
// نمایش اولیه
displayGallery(galleryItems);
// جستجو زنده
searchInput.addEventListener("input", () => {
const query = searchInput.value.trim();
const filtered = galleryItems.filter(item => item.name.includes(query));
displayGallery(filtered);
});
</script>
</body>
</html>