-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
253 lines (231 loc) · 13.3 KB
/
index.html
File metadata and controls
253 lines (231 loc) · 13.3 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
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HoopUp Portfolio</title>
<link
href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css"
rel="stylesheet">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/glightbox/3.0.9/css/glightbox.min.css">
<link rel="stylesheet" href="styles.css">
<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=Bebas+Neue&display=swap"
rel="stylesheet">
</head>
<body class="bg-gray-100 text-gray-800 flex flex-col min-h-screen">
<header class="shadow-md">
<div class="container flex justify-between items-center">
<div class="flex items-center">
<img src="assets/images/icon_logo.png" alt="HoopUp Logo"
class="h-12 mr-4">
<h1 class="text-2xl font-bold">Portfolio</h1>
</div>
</div>
</header>
<main class="flex-grow flex flex-col justify-center p-6">
<section
class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mb-6">
<!-- Videor -->
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/videos/scenario_1.mp4" class="glightbox"
data-type="video"
data-title="Join Game using the Filter Function">
<div class="relative">
<video controls
class="w-full h-56 object-contain mb-4 rounded">
<source src="assets/videos/scenario_1.mp4"
type="video/mp4">
Your browser does not support video playback.
</video>
<div class="absolute inset-0"></div>
</div>
</a>
<h4 class="text-lg font-bold">Join Game using the Filter
Function</h4>
<p class="text-md mt-2 text-center">User scenario based on
use case - join game by using the filter function</p>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/videos/Scenario_3.mp4" class="glightbox"
data-type="video"
data-title="Creating a Game via the Map">
<div class="relative">
<video controls
class="w-full h-56 object-contain mb-4 rounded">
<source src="assets/videos/Scenario_3.mp4"
type="video/mp4">
Your browser does not support video playback.
</video>
<div class="absolute inset-0"></div>
</div>
</a>
<h4 class="text-lg font-bold">Creating a Game via the
Map</h4>
<p class="text-md mt-2 text-center">User scenario based on
use case - creating a game via the map</p>
</div>
<!-- Bilder -->
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Start_Page.jpg" class="glightbox"
data-title="Start Page">
<img src="assets/images/Start_Page.jpg" alt="Start Page"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Start Page</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Create_Account.jpg" class="glightbox"
data-title="Create Account">
<img src="assets/images/Create_Account.jpg"
alt="Create Account"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Create Account</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Login_Page.jpg" class="glightbox"
data-title="Login Page">
<img src="assets/images/Login_Page.jpg" alt="Login Page"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Login Page</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Home_Page.jpg" class="glightbox"
data-title="Home Page">
<img src="assets/images/Home_Page.jpg" alt="Home Page"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Home Page</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Confirm_Game_Page.jpg"
class="glightbox"
data-title="Example from the Create Game Wizard (Last Page)">
<img src="assets/images/Confirm_Game_Page.jpg"
alt="Example from the Create Game Wizard (Last Page)"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Example from the Create Game
Wizard (Last Page)</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Map_Page.jpg" class="glightbox"
data-title="Map Page">
<img src="assets/images/Map_Page.jpg" alt="Map Page"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Map Page</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/My_Booking_Page.jpg"
class="glightbox" data-title="My Bookings Page">
<img src="assets/images/My_Booking_Page.jpg"
alt="My Bookings Page"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">My Bookings Page</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Event_Page.jpg" class="glightbox"
data-title="Event Page">
<img src="assets/images/Event_Page.jpg" alt="Event Page"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Event Page</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Example_Chat.jpg" class="glightbox"
data-title="Example Chat">
<img src="assets/images/Example_Chat.jpg"
alt="Example Chat"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Example Chat</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Event_Page_With_Popup_Map.jpg"
class="glightbox"
data-title="Event Page with Popup Map">
<img src="assets/images/Event_Page_With_Popup_Map.jpg"
alt="Event Page with Popup Map"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Event Page with Popup Map</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Error_Message_Example.jpg"
class="glightbox" data-title="Popup Message Example">
<img src="assets/images/Error_Message_Example.jpg"
alt="Popup Message Example"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Popup Message Example</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Profile_Page.jpg" class="glightbox"
data-title="Profile Page">
<img src="assets/images/Profile_Page.jpg"
alt="Profile Page"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Profile Page</h4>
</div>
<div style="background-color: #f4f1e0;"
class="rounded-lg shadow-lg overflow-hidden hover:shadow-2xl transition-shadow duration-300 p-4 flex flex-col items-center">
<a href="assets/images/Edit_Profile_Page.jpg"
class="glightbox" data-title="Edit Profile Page">
<img src="assets/images/Edit_Profile_Page.jpg"
alt="Edit Profile Page"
class="w-full h-56 object-cover mb-4 rounded">
</a>
<h4 class="text-lg font-bold">Edit Profile Page</h4>
</div>
</section>
</main>
<footer class="py-4 px-6 text-center flex items-center justify-center">
<p>© 2024 Portfolio for the app HoopUp. All rights
reserved.</p>
</footer>
<script>
// Hämta alla video länkar
var videoLinks = document.querySelectorAll('a.glightbox[data-type="video"]');
// Loopa igenom varje video länk
for (var i = 0; i < videoLinks.length; i++) {
// Hämta föräldraelementet till <a>-elementet
var parent = videoLinks[i].parentNode;
// Hämta det sista barnet till föräldraelementet (som borde vara <p>-taggen med beskrivningen)
var description = parent.lastElementChild;
// Ändra data-title attributet till texten i beskrivningen
videoLinks[i].setAttribute('data-title', description.textContent);
}
</script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/glightbox/3.0.9/js/glightbox.min.js"></script>
<script>
const lightbox = GLightbox({
selector: '.glightbox'
});
</script>
</body>
</html>