-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (82 loc) · 4.82 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Exchange Rates </title>
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="./assets/CSS/style.css">
<!-- CSS -->
<script type="module" src="./assets/JS/app.js"> </script>
<!-- JS Vue -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
<!-- Animations -->
<link rel="stylesheet" href="./assets/fontawesome/fontawesome-free-6.1.1-web/css/all.css" >
<!-- Font Awesome -->
</head>
<body>
<div id="app" class="container text-center">
<header class="text-center p-2 bg-white">
<h1> Exchange Rates on <span v-cloak> {{date}} </span> </h1>
</header>
<nav class="bg-white mt-2 py-2 text-center" >
<div class="searchPoint">
<h3 class="py-2"> Search <input v-model="search" class="mx-2" type="text" placeholder="request"> </h3>
</div>
</nav>
<main class="text-center mt-2">
<div v-if="!arrRate.length" id="spinner" class="spinner-border text-info" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<!-- Spinner -->
<div class="position-absolute top-50 start-50 translate-middle" id="notFound" v-if="!funSearchFilt.length">
<h2> Not found </h2>
<h2> Check your request </h2>
</div>
<!-- Not Found -->
<!-- Main Data -->
<div v-cloak class="row row-cols-1 row-cols-md-2 row row-cols-lg-3">
<div class="p-2" v-for="(item, i) in funSearchFilt" >
<div id="" class="card text-center bg-white"
:class="{
'card': item.arrowClicker,
'cardFull': !item.arrowClicker
}">
<div class="card-body bgbg shadow">
<h5 class="card-title fs-2"> {{item.txt}}, {{item.cc}} </h5>
<p class="card-text fs-4"> Курс валюти: {{item.rate}} грн. </p>
<p class="card-text text-center fs-4"> Країни, де використовують: </p>
<div id="" class="p-2">
<i v-if="item.arrowClicker" @click="item.arrowClicker = !item.arrowClicker" @dblclick="showArrow" class="animate_animated animate__heartBeat imagesA arrowClick fa-solid fa-chevron-down fs-5 mt-1"></i>
<i v-else="" @click="item.arrowClicker = !item.arrowClicker" @dblclick="showArrow" class="animate_animated animate__heartBeat imagesA arrowClick fa-solid fa-chevron-up fs-5 mt-1"></i>
<p v-if="item.arrowClicker" @click="item.arrowClicker = !item.arrowClicker" class="image3 card-text text-center d-flex justify-content-center row row-cols-3 row-cols-md-3 row-cols-lg-3 m-2">
<img
v-for="item in item.countryResult"
:title="item.title"
:src="item.url"
:alt="item.title"
class="image3 p-1 shadow">
</p>
<p v-else="" @click="item.arrowClicker = !item.arrowClicker" class=" card-text text-center d-flex justify-content-center row row-cols-3 row-cols-md-3 row-cols-lg-3 m-2">
<img
v-for="item in item.countryResult"
:title="item.title"
:src="item.url"
:alt="item.title"
class="p-1 shadow">
</p>
</div>
</div>
</div>
</div>
</div>
<!-- Main Data -->
</main>
<footer class="text-center py-2 px-2">
<a href="../../index_Portfolio_main.html"> <i class="fs-3 mainPage text-black fa-solid fa-house"></i> </a>
</footer>
</div>
</body>
</html>