-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhone.html
More file actions
102 lines (82 loc) · 3.23 KB
/
Phone.html
File metadata and controls
102 lines (82 loc) · 3.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Metadata for character encoding & responsiveness -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Import Bootstrap CSS for styling -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!-- Page Title -->
<title>Phone Hunter</title>
</head>
<body>
<!-- Header Section -->
<header>
<center>
<h1>Exploring The New Phones</h1>
</center>
</header>
<br>
<!-- Main Content -->
<main>
<!-- Search Bar for filtering phones -->
<center>
<input type="text" class="w-25" id="phone-input-field" placeholder="Search Your Favourite Phone!!">
<button id="phone-search-button">Search</button>
</center>
<br>
<!-- Error Message & Loading Spinner -->
<center>
<!-- Message shown when no phone is found -->
<div class="text-danger d-none" id="no-phone-found" style="padding-top: 175px;">
<h1>No Phone Found. Please Try A New Search</h1>
</div>
<!-- Loading Spinner while fetching phone data -->
<div class="d-none" id="spinner" style="padding-top: 175px;">
<div class="spinner-border" style="width: 3rem; height: 3rem;" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
</center>
<br>
<!-- Section to display phone cards dynamically -->
<center>
<section class="row row-cols-1 row-cols-md-3 g-4" id="Phone-Container">
<!-- Dynamically generated phone cards will be placed here -->
</section>
</center>
<!-- Modal for displaying detailed phone information -->
<section>
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Mobile Detail Information</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<!-- Modal Body -->
<div class="modal-body" id="modal-container">
<!-- Phone details will be dynamically added here -->
</div>
<!-- Modal Footer -->
<div class="modal-footer d-flex justify-content-center">
<button type="button" class="btn btn-success" data-bs-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Footer Section -->
<footer>
<!-- You can add footer content here if needed -->
</footer>
</body>
<!-- Import JavaScript files -->
<script src="Phone.js"></script>
<!-- Import Bootstrap JS for modal functionality -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</html>