-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (46 loc) · 2.11 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vue Carousel</title>
<!-- Font Awesome -->
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css'
integrity='sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=='
crossorigin='anonymous' />
<!-- Bootstrap 5 -->
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css'
integrity='sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg=='
crossorigin='anonymous' />
<!-- Personal Css -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Vue 3 -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<div id="app">
<!-- Container -->
<div id="container" class="container-xl">
<div class="wrapper">
<div id="carousel">
<i id="left" class="fa-solid fa-chevron-left fa-4x" @click="prevImage()"></i>
<div id="gallery">
<div id="introduction" class="w-50">
<h2 id="title"> {{ images[activeIndex].title }} </h2>
<p id="description" class="fw-semibold"> {{ images[activeIndex].description }} </p>
</div>
<img :src="images[activeIndex].src" :alt="images[activeIndex].title" class="active">
</div>
<i id="right" class="fa-solid fa-chevron-right fa-4x" @click="nextImage()"></i>
</div>
<div id="thumbnails">
<img v-for="(image, i) in images" :src="images[i].src" :alt="images[i].title"
:class="{active: i === activeIndex}" @click="currentImage(i)">
</div>
</div>
</div>
</div>
<!-- Personal script -->
<script src="js/script.js"></script>
</body>
</html>