-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
235 lines (200 loc) · 10.2 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
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
<!DOCTYPE html>
<html x-data="darkMode" lang="fa" dir="rtl" :class="{ 'dark' : darkMode }">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ParsFront</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.rtl.min.css"
integrity="sha384-beJoAY4VI2Q+5IPXjI207/ntOuaz06QYCdpWfWRv4lSFDyUSqsM0W+wiAMr2I185" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin="" />
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
<link rel="stylesheet" href="./css/main.css">
</head>
<body class="dark-bg-body-dark">
<!-- Switch Dark Mode -->
<div class="d-flex align-items-center justify-content-end p-4">
<i class="bi bi-brightness-high-fill fs-4 me-2 lh-0 dark-text-white"></i>
<div class="form-check form-switch">
<input x-model="darkMode" class="form-check-input darkmode-switch" type="checkbox"
id="flexSwitchCheckDefault">
</div>
<i class="bi bi-moon-stars-fill fs-5 ms-2 lh-0 dark-text-white"></i>
</div>
<!-- Header -->
<header class="header text-gray dark-text-white">
<div class="container">
<div class="row text-center">
<h2 class="fw-bold mb-4"><span class="text-primary">لورم ایپسوم</span> <span id="text"></span></h2>
<p class="lh-lg">لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک
است.</p>
</div>
<div x-data="countdown" class="row countdown justify-content-center my-5">
<div>
<h3 class="fw-bold" x-text="days">2</h3>
<h5 class="mb-0">روز</h5>
</div>
<div>
<h3 class="fw-bold" x-text="hours"></h3>
<h5 class="mb-0">ساعت</h5>
</div>
<div>
<h3 class="fw-bold" x-text="minutes"></h3>
<h5 class="mb-0">دقیقه</h5>
</div>
<div>
<h3 class="fw-bold" x-text="seconds"></h3>
<h5 class="mb-0">ثانیه</h5>
</div>
</div>
<div class="row justify-content-center text-center">
<div class="col-12">
<h6 class="mb-4">لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم</h6>
</div>
<div class="col-12 col-sm-6 col-lg-4">
<div class="input-group mb-3">
<input type="text" class="form-control">
<button class="btn btn-primary" type="button">عضویت</button>
</div>
</div>
<div class="col-12 social-links mt-5">
<a href="#"><i class="lh-0 bi bi-twitter"></i></a>
<a href="#"><i class="lh-0 bi bi-facebook"></i></a>
<a href="#"><i class="lh-0 bi bi-instagram"></i></a>
<a href="#"><i class="lh-0 bi bi-linkedin"></i></a>
</div>
</div>
</div>
</header>
<section class="contact">
<div class="container my-5">
<div class="row text-center justify-content-center">
<h2 class="fw-bold">ارتباط با ما</h2>
<hr>
</div>
<div class="row gy-4">
<div class="col-lg-5">
<div class="card">
<div class="d-flex align-items-center">
<i class="bi bi-geo-alt me-3"></i>
<div>
<h5 class="fw-bold">آدرس:</h5>
<p class="mb-0">لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم</p>
</div>
</div>
<div class="d-flex align-items-center my-4">
<i class="bi bi-envelope me-3"></i>
<div>
<h5 class="fw-bold">ایمیل:</h5>
<p class="mb-0">info@example.com</p>
</div>
</div>
<div class="d-flex align-items-center">
<i class="bi bi-phone me-3"></i>
<div>
<h5 class="fw-bold">شماره تماس:</h5>
<p class="mb-0">09100000000</p>
</div>
</div>
<div id="mapid" class="mt-4" style="height: 325px;"></div>
</div>
</div>
<div class="col-lg-7">
<form class="card h-100">
<div class="row gy-3">
<div class="col-md-6">
<label class="form-label fw-bold" for="name">نام : </label>
<input type="text" name="name" class="form-control" id="name" required="">
</div>
<div class="col-md-6">
<label class="form-label fw-bold" for="name">ایمیل :</label>
<input type="email" class="form-control" name="email" id="email" required="">
</div>
</div>
<div class="mt-3">
<label class="form-label fw-bold" for="name">موضوع :</label>
<input type="text" class="form-control" name="subject" id="subject" required="">
</div>
<div class="mt-3">
<label class="form-label fw-bold" for="name">متن پیام : </label>
<textarea class="form-control" name="message" rows="10" required=""></textarea>
</div>
<div class="text-center">
<button class="btn btn-primary mt-5" type="submit">ارسال پیام</button>
</div>
</form>
</div>
</div>
</div>
</section>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous">
</script>
<script src="https://unpkg.com/ityped@1.0.3"></script>
<script>
const textElement = document.querySelector('#text');
ityped.init(textElement, {
strings: ['متن ساختگی ...', 'متن ساختگی با تولید', 'متن ساختگی با تولید سادگی']
});
</script>
<script defer src="https://unpkg.com/alpinejs@3.3.4/dist/cdn.min.js"></script>
<script>
document.addEventListener('alpine:init', () => {
Alpine.data('darkMode', () => ({
darkMode: false,
init() {
this.darkMode = localStorage.theme === 'dark' ? true : false
this.$watch('darkMode', (value) => {
localStorage.theme = value ? 'dark' : 'light';
})
}
})),
Alpine.data('countdown', () => ({
days: '00',
hours: '00',
minutes: '00',
seconds: '00',
init() {
let endDate = new Date(2026, 11, 1).getTime();
setInterval(() => {
let nowDate = new Date().getTime();
let time = endDate - nowDate;
if (time >= 0) {
this.days = this.format(Math.floor(time / (1000 * 60 * 60 *
24)));
this.hours = this.format(Math.floor((time % (1000 * 60 * 60 *
24)) / (1000 * 60 * 60)));
this.minutes = this.format(Math.floor((time % (1000 * 60 *
60)) / (1000 * 60)));
this.seconds = this.format(Math.floor((time % (1000 * 60)) /
1000));
}
}, 1000);
},
format(num) {
return num < 10 ? '0' + num : num;
}
}))
})
</script>
<script>
let mymap = L.map('mapid').setView([36.31002082783015, 59.52959458403995], 12);
L.tileLayer(
'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 18,
attribution: 'Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, ' +
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
id: 'mapbox/streets-v11',
tileSize: 512,
zoomOffset: -1
}).addTo(mymap);
L.marker([36.31002082783015, 59.52959458403995]).bindPopup("ParsFront").addTo(mymap).openPopup();
</script>
</body>
</html>