forked from cotton123236/zoomist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (74 loc) · 2.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Zoomist Dev</title>
<link rel="stylesheet" href="./test/styles/normalize.css">
<style>
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.cat-zoomist {
max-width: 540px;
margin-left: auto;
margin-right: auto;
}
/* .zoomist-image {
width: 400px;
aspect-ratio: 1;
}
.zoomist-image img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
} */
.zoomer-btn {
display: flex;
justify-content: center;
align-items: center;
width: 3rem;
height: 3rem;
background-color: #efefef;
}
.zoomer-btn.zoomer-disabled {
opacity: 0.2;
}
.change-image-btn {
padding: 0.5rem;
background-color: #eee;
}
</style>
</head>
<body>
<div id="app">
<!-- ZOOMIST -->
<div class="cat-zoomist zoomist-container">
<div class="zoomist-wrapper">
<div class="zoomist-image">
<img src="./test/images/cat.jpg" alt="cat" />
</div>
</div>
</div>
<!-- <button class="change-image-btn">CHANGE</button> -->
<!-- <div class="zoomist-custom-zoomer">
<button class="in-zoomer zoomer-btn">+</button>
<button class="out-zoomer zoomer-btn">-</button>
<button class="reset-zoomer zoomer-btn">R</button>
</div> -->
<!-- <div class="zoomist-custom-slider"></div> -->
</div>
<script type="module" src="./test/main.ts"></script>
<!-- <script>
const changeImageBtn = document.querySelector('.change-image-btn')
changeImageBtn.addEventListener('click', () => {
document.querySelector('.zoomist-image').innerHTML = '<img src="./test/images/japan.jpg" alt="japan" />'
})
</script> -->
</body>
</html>