-
Notifications
You must be signed in to change notification settings - Fork 0
/
create.html
91 lines (84 loc) · 2.38 KB
/
create.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create cover</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<style>
.main-paste {
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
}
.pins-container {
position: absolute;
width: 100vw;
height: 0;
}
.pins-container .pin:nth-child(2) {
background-color: purple;
}
.pins-container .pin:nth-child(2) .pin-move {
background-color: green;
}
.pins-container .pin:nth-child(3) {
background-color: blue;
}
.pins-container .pin:nth-child(3) .pin-move {
background-color: orange;
}
.pins-container .pin {
height: 100vh;
width: 2px;
background-color: red;
position: absolute;
top: 0;
left: 10%;
}
.pins-container .pin .pin-move {
width: 50px;
height: 50px;
border-radius: 80px;
background-color: blue;
transform: translate(-50%, 0%);
text-align: center;
color: white;
font-size: 2rem;
line-height: 1.7;
user-select: none;
}
.main-paste img {
object-fit: contain;
width: 100%;
height: 100%;
user-select: none;
pointer-events: none;
}
button {
position: absolute;
bottom: 1rem;
left: 50%;
color: #1B1B1B;
padding: 1rem;
outline: 2px solid #1B1B1B;
background-color: white;
z-index: 99;
border-radius: 0.25rem;
cursor: pointer;
}
</style>
<script src="create.js" type="module"></script>
<div class="pins-container">
<div class="pin" id="pin-2"><div class="pin-move">3</div></div>
<div class="pin" id="pin-1"><div class="pin-move">2</div></div>
<div class="pin" id="pin-0"><div class="pin-move">1</div></div>
</div>
<div class="main-paste" contenteditable=""></div>
<button>Valider</button>
</body>
</html>