-
Notifications
You must be signed in to change notification settings - Fork 0
/
contactUs.html
115 lines (102 loc) · 6.02 KB
/
contactUs.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
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="2G9">
<link href="./output.css" rel="stylesheet">
<title>Contact Us</title>
<link rel="icon" type="image/png" href="./images/logo.png">
<!-- Icons -->
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:[email protected]&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script src="./js/script.js"></script>
</head>
<style>
body {
font-family: "Noto Kufi Arabic", sans-serif;
}
</style>
<body class="bg-gray-50">
<!-- Start Navbar -->
<div id="navbar"></div>
<!-- End Navbar -->
<!-- Start Header -->
<div class="container mx-auto mt-5 p-10">
<h2 class="text-[#C10D10] font-bold text-4xl mb-10">تواصل معنا</h2>
<form>
<div class="grid gap-6 mb-6 md:grid-cols-2">
<div>
<label for="first_name" class="block mb-2 text-sm font-medium text-gray-900 dark:text-black">الاسم</label>
<input type="text" id="first_name" class="bg-white text-gray-900 text-sm rounded-lg block w-full p-2.5 shadow-md transition-all outline-none" placeholder="اكتب اسمك" required />
</div>
<div>
<label for="last_name" class="block mb-2 text-sm font-medium text-gray-900 dark:text-black">الايميل</label>
<input type="text" id="last_name" class="bg-white text-gray-900 text-sm rounded-lg block w-full p-2.5 shadow-md transition-all outline-none" placeholder="اكتب الايميل" required />
</div>
<div>
<label for="phone" class="block mb-2 text-sm font-medium text-gray-900 dark:text-black">رقم الهاتف</label>
<input type="" id="phone" class="bg-white text-gray-900 text-sm rounded-lg block w-full p-2.5 shadow-md transition-all outline-none" placeholder="اكتب رقم الهاتف" pattern="[0-9]{3}-[0-9]{2}-[0-9]{3}" required />
</div>
<div>
<label for="message" class="block mb-2 text-sm font-medium text-gray-900 dark:text-black">تعليقك</label>
<textarea id="message" rows="4" class="bg-white text-gray-900 text-sm rounded-lg block w-full p-2.5 shadow-md transition-all outline-none" placeholder="اترك تعليقك"></textarea>
</div>
</div>
<div class="flex justify-center">
<button id="submitButton" type="submit" class="text-white bg-[#C10D10] font-medium rounded-lg text-sm w-1/2 px-5 py-2.5 text-center border border-[#C10D10] hover:bg-white hover:text-[#C10D10] hover:border-[#C10D10] hover:border">
إرسال
</button>
</div>
<!-- POP UP -->
<div id="popup" class="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 hidden ">
<div class="bg-white rounded-lg shadow-lg p-6 sm:max-w-[30%] w-[90%] relative">
<img id="closePopup" src="./images/Close Square.svg" class="cursor-pointer absolute top-2 right-2" alt="close">
<div class="flex flex-col items-center">
<div class="relative">
<div class="relative rounded-full p-3">
<img src="./images/Alert - Danger.svg" alt="check" class="w-[223px] h-[223px]">
</div>
</div>
<h2 class="mt-4 text-2xl font-medium">تم إرسال طلبك بنجاح</h2>
<p class="mt-2 font-medium sm:text-xl text-sm text-gray-600 text-center">سيقوم احد مسؤولي خدمة العملاء بالتواصل معكم</p>
</div>
</div>
</div>
</form>
<div class="flex justify-center mt-10">
<img src="./images/cuate.webp" alt="cuate">
</div>
</div>
<!-- End Header -->
<!-- Start Footer -->
<div id="footer"></div>
<!-- End Footer -->
<script>
document.addEventListener('DOMContentLoaded', function () {
const popup = document.getElementById('popup');
const closePopup = document.getElementById('closePopup');
const submitButton = document.getElementById('submitButton');
if (popup && closePopup && submitButton) {
submitButton.addEventListener('click', function (e) {
e.preventDefault();
popup.classList.remove('hidden');
});
closePopup.addEventListener('click', function () {
popup.classList.add('hidden');
});
popup.addEventListener('click', function (e) {
if (e.target === popup) {
popup.classList.add('hidden');
}
});
}
});
</script>
</body>
</html>