-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
191 lines (151 loc) · 4.01 KB
/
popup.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!doctype html>
<html>
<head>
<title>Short.GG</title>
<style type="text/css">
body {
margin-bottom: 3.5rem;
margin-left: 2rem;
margin-right: 2rem;
width: 442px;
}
h1, h2, h3, h4 {
font-family: 'Pacifico', cursive;
}
div, p, input {
font-family: 'Lato', sans-serif !important;
}
input, .input-container, .button, .spin, .button-clipboard {
transition: all 0.218s;
}
input {
height: 44px;
font-size: 2rem;
border: none;
margin: 0px;
padding: 0px;
width: calc(100% - 1rem - 2rem - 44px);
position: absolute;
z-index: 1;
outline: none;
background-color: transparent;
color: #616161;
text-align: left;
padding-left: 1rem;
left: 0;
padding-right: calc(44px + 2rem);
}
.input-container {
padding: 1rem;
padding-right: calc(44px + 2rem);
}
.input-button-container {
position: relative;
max-width: 584px;
margin: 0 auto;
}
.input-container {
position: relative;
max-width: 584px;
height: 44px;
border: 1px solid #616161;
margin: 0 auto;
}
.input-container:hover {
border: 1px solid #212121;
}
.button-clipboard {
position: relative;
float: right;
display: inline-block;
border: 1px solid #616161;
height: 44px;
width: 44px;
padding: 1rem;
z-index: 3;
}
.button-clipboard:hover {
cursor: pointer;
background-color: #F1F4BB;
}
.hint {
border: 1px solid #031D44;
width: 84px;
z-index: 40;
background-color: #FFF;
padding: 1rem;
position: absolute;
bottom: -42px;
left: -84px;
}
.button {
position: relative;
margin: 0 auto;
border-radius: 90px;
background-color: #F44336;
box-shadow: 2px 1px 5px #888888;
height: 9rem;
width: 9rem;
margin-top: 3rem;
}
.button:hover {
background-color: #e53935;
cursor: pointer;
box-shadow: none;
}
img {
position: relative;
width: 50%;
height: 50%;
margin: 0 auto;
margin-top: 23%;
margin-left: 25%;
}
.spin {
box-shadow: inset 0 0 10px #000000 !important;
-webkit-animation:spin 0.218s linear infinite;
-moz-animation:spin 0.218s linear infinite;
animation:spin 0.218s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
#container {
align-items: center;
display: flex;
justify-content: space-between;
}
</style>
<!--
- JavaScript and HTML must be in separate files: see our Content Security
- Policy documentation[1] for details and explanation.
-
- [1]: https://developer.chrome.com/extensions/contentSecurityPolicy
-->
<script src="popup.js"></script>
<script src="clipboard.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Lato:300|Pacifico" rel="stylesheet">
</head>
<body>
<h1>Short.gg</h1>
<div class="input-button-container">
<div
class="button-clipboard"
data-clipboard-target="#mainInput"
@click="displayHint"
>
<img alt="clipboard" src="./assets/clipboard.svg" />
<div id="hint" class="hint" style="display:none" >
Copied!
</div>
</div>
<div class="input-container">
<input id="mainInput" type="text" value="Shortening..." />
</div>
<br />
<div id="long-url">
...
</div>
</div>
</body>
</html>