-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdashboard.html
177 lines (169 loc) · 4.6 KB
/
dashboard.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="styles/navbar.css" />
<link rel="stylesheet" href="styles/dashboard.css" />
<script
src="https://kit.fontawesome.com/7a4d6432b5.js"
crossorigin="anonymous"
></script>
<title>Dashboard</title>
</head>
<body>
<!-- navbar -->
<nav id="nav_parent" class="navbar"></nav>
<div class="navbar2">
<p>Menu</p>
<div>
<a class="tooltip" href="dashboard.html">
<img src="assets/most-recent.png" alt="" />
<span class="tooltiptext">Dashboard</span>
</a>
<a class="tooltip" href="message.html">
<img src="assets/subscription.png" alt="" />
<span class="tooltiptext">My Tickets</span>
</a>
</div>
<p>Library</p>
<div>
<a class="tooltip" href="#">
<img src="assets/star.png" alt="" />
<span class="tooltiptext">Favourite</span>
</a>
<a class="tooltip" href="#">
<img src="assets/sms3.png" alt="" />
<span class="tooltiptext">Message</span>
</a>
<a class="tooltip" href="#">
<img src="assets/cart_shop.png" alt="" />
<span class="tooltiptext">Cart</span>
</a>
</div>
<p>Setting</p>
<div>
<a class="tooltip" href="#">
<img src="assets/sett.png" alt="" />
<span class="tooltiptext">Setting</span>
</a>
<a class="tooltip" href="#">
<img src="assets/customer-service.png" alt="" />
<span class="tooltiptext">Cusomer Support</span>
</a>
</div>
</div>
<!-- navbar -->
<div id="dashboard-page">
<div id="dashboard-details">
<h1>Hello <span id="User-name">Mohd Adil</span></h1>
<p>Welcome Back and Explore The world</p>
<h2>Easy Visa Destination</h2>
<div class="card-cont1">
<div class="card">
<img src="assets/Thailand.jpg" alt="" />
<div class="abcdef">
<p>Thailand</p>
</div>
</div>
<div class="card">
<img src="assets/dubai.jpg" alt="" />
<div class="abcdef">
<p>Dubai</p>
</div>
</div>
<div class="card">
<img src="assets/switzerland.jpg" alt="" />
<div class="abcdef">
<p>Switzerland</p>
</div>
</div>
<div class="card">
<img src="assets/philip.jpg" alt="" />
<div class="abcdef">
<p>Philippines</p>
</div>
</div>
<div class="card">
<img src="assets/Singapore.jpg" alt="" />
<div class="abcdef">
<p>Singapore</p>
</div>
</div>
</div>
<h2>Special Offers For You</h2>
<div class="card-cont2">
</div>
</div>
</div>
<!-- footer -->
<div class="foot-correct">
<div class="footer" id="foot_parent"></div>
</div>
<!-- footer -->
</body>
</html>
<script src="navbar.js"></script>
<script>
let card_cont2 = document.querySelector('.card-cont2')
let arr = [
{
title: "Taj Mahal",
img: "assets/taj-mahal3.jpg",
info: "lorem lolo",
rating: 4.5,
price: 16000
},
{
title: "shimla Himalayas Tour",
img: "assets/himalya.jpg",
info: "lorem lolo",
rating: 3.5,
price: 16564
},
{
title: "Sunderbans Forest Getaway",
img: "assets/sundarban.jpg",
info: "lorem lolo",
rating: 3.5,
price: 66465
},
{
title: "Tribal Tours Of Chattisgarh",
img: "assets/tribe-chattisgarh.jpg",
info: "lorem lolo",
rating: 3.5,
price: 545454
},
{
title: "Effil Tower",
img: "assets/effil-tower.jpg",
info: "lorem lolo",
rating: 3.5,
price: 545454
},
{
title: "Sunderbans Forest Getaway",
img: "assets/sundarban.jpg",
info: "lorem lolo",
rating: 3.5,
price: 545454
}
]
arr.forEach(element => {
let {title , img , info , rating , price} = element
let dis = price - Math.round((30/100)*price)
card_cont2.innerHTML += `
<div class="card-dis">
<img src="${img}" alt="" />
<div class="offer-name">
<h3>${title}</h3>
<p>${title}</p>
<div class="dis-price">
<del>Rs: ${price}</del>
<p>Rs: ${dis}</p>
</div>
</div>
</div>`
});
</script>