-
Notifications
You must be signed in to change notification settings - Fork 0
/
completeProfile.html
88 lines (81 loc) · 4.85 KB
/
completeProfile.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
<!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>Complete Your Profile</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 >
<!-- Start Navbar -->
<div id="navbar"></div>
<!-- End Navbar -->
<!-- Start Section -->
<div class="container mx-auto flex flex-col justify-center items-center p-4 md:p-20 gap-5">
<div class="mb-5 text-center">
<h2 class="text-[#2B2F4E] font-bold text-xl md:text-[40px] mb-4">👏 استكمال البيانات</h2>
<p class="text-[#878787] font-bold text-xs md:text-sm">حياك الله نحن فى انتظار خدمتك طوال الوقت!</p>
</div>
<div class="relative">
<img id="profileImage" src="./images/profile.webp" alt="profile" class="border-2 border-[#C10D10] rounded-full p-1 w-[221.93px] h-[221.93px]">
<img id="changePictureIcon" src="./images/ChangePicture.svg" alt="Change Picture" class="absolute top-[73%] cursor-pointer"> <input type="file" id="fileInput" class="hidden" accept="image/*">
</div>
<div class="flex items-center rounded-2xl bg-[#FAFAFA]">
<ion-icon name="person-outline" class="w-4 h-4 md:w-5 md:h-5 text-[#9E9E9E] ml-2 mr-2"></ion-icon>
<input type="text" placeholder="اسم المستخدم" class="flex-grow w-full md:w-96 text-xs md:text-sm text-[#6C6C6C] outline-none bg-transparent h-12 md:h-16">
<span class="w-4 h-4 md:w-5 md:h-5 ml-2 mr-2"></span>
</div>
<div class="flex items-center rounded-2xl bg-[#FAFAFA]">
<ion-icon name="lock-closed" class="w-4 h-4 md:w-5 md:h-5 text-[#9E9E9E] ml-2 mr-2"></ion-icon>
<input type="password" placeholder="كلمة السر الجديدة" class="flex-grow w-full md:w-96 text-xs md:text-sm text-[#6C6C6C] outline-none bg-transparent h-12 md:h-16">
<ion-icon name="eye-off" class="w-4 h-4 md:w-5 md:h-5 text-[#9E9E9E] ml-2 mr-2"></ion-icon>
</div>
<div class="flex items-center rounded-2xl bg-[#FAFAFA]">
<ion-icon name="lock-closed" class="w-4 h-4 md:w-5 md:h-5 text-[#9E9E9E] ml-2 mr-2"></ion-icon>
<input type="password" placeholder="اعادة ادخال كلمة السر" class="flex-grow w-full md:w-96 text-xs md:text-sm text-[#6C6C6C] outline-none bg-transparent h-12 md:h-16">
<ion-icon name="eye-off" class="w-4 h-4 md:w-5 md:h-5 text-[#9E9E9E] ml-2 mr-2"></ion-icon>
</div>
<div class="flex flex-col gap-4 md:gap-7 w-full items-center">
<button type="submit" class="text-white bg-[#C10D10] font-medium rounded-lg text-xs md:text-sm px-5 py-2.5 text-center border border-[#C10D10] hover:bg-white hover:text-[#C10D10] hover:border-[#C10D10] md:w-96 w-full h-12 md:h-16">تأكيد</button>
</div>
</div>
<!-- End Section -->
<!-- Start Footer -->
<div id="footer"></div>
<!-- End Footer -->
<script>
const fileInput = document.getElementById('fileInput');
const changePictureIcon = document.getElementById('changePictureIcon');
const profileImage = document.getElementById('profileImage');
changePictureIcon.addEventListener('click', () => {
fileInput.click();
});
fileInput.addEventListener('change', (event) => {
const file = event.target.files[0];
if (file) {
const reader = new FileReader();
reader.onload = (e) => {
profileImage.src = e.target.result;
};
reader.readAsDataURL(file);
}
});
</script>
</body>
</html>