-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (77 loc) · 2.89 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
<!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" />
<link rel="stylesheet" href="index.css" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&family=Merriweather:wght@400;700&family=Montserrat:wght@400;700&display=swap"
rel="stylesheet"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
<title>Cat Facts</title>
</head>
<body class="body">
<div id="app" class="app">
<div
class="card mb-3 position-absolute top-50 start-50 translate-middle"
id="cards"
>
<div class="row g-0">
<div class="col-md-4">
<img alt="cat" id="image" :src="imagesrc" class="img" />
</div>
<div class="col-md-8">
<div class="card-body">
<h3 class="card-title" id="card-title">Fact #{{count}}</h3>
<p class="card-text">{{randomfact}}</p>
<p class="source card-text">
<a :href="username_url" class="link1 pd-3">Photo by - {{username}} on- </a>
<a class="link" href="https://unsplash.com/" target="_blank">unsplash</a>
</p>
<button
id="next-fact"
v-on:click="next_cat_fact"
type="button"
class="btn btn-outline-light"
>
Next fact
</button>
</div>
</div>
</div>
</div>
<a href="https://github.com/Orta12" target="_blank"
><p
class="position-absolute bottom-0 start-50 translate-middle-x"
id="footer"
>
A Vue.js by <i><u>Akash chowdhury</u></i>
</p></a
>
</div>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="app.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy"
crossorigin="anonymous"
></script>
</body>
</html>