-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlanding-page-7.html
225 lines (215 loc) · 6.66 KB
/
landing-page-7.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>__FILENAME__ - shared with Dropshare</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="https://dropshare.app/favicon.png" />
<link
rel="preconnect"
href="https://cdn.tailwindcss.com"
rel="stylesheet"
/>
<style>
.filetype {
text-transform: uppercase;
}
.imagePreview {
margin: 0 auto;
}
.imagePreview,
.imagePreview > :first-child {
height: 100%;
width: 100%;
object-fit: contain;
}
</style>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap"
rel="stylesheet"
/>
<meta name="generator" content="Dropshare http://dropshare.app" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:image" content="__PREVIEWURL__" [^] />
<meta property="twitter:title" content="__FILENAME__" />
<meta
property="twitter:description"
content="__FILENAME__ - shared with Dropshare"
/>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
const file = '__PREVIEWURL__';
const extension = file.split('.').pop();
const imageFormats = [
'jpg',
'jpeg',
'png',
'gif',
'bmp',
'svg',
'webp',
'tiff',
'heif',
'ico',
];
const videoFormats = [
'mp4',
'mov',
'wmv',
'flv',
'avi',
'mkv',
'webm',
'mpeg',
'mpg',
'ogv',
];
const highlightCompatibleFormats = [
'bash',
'clj',
'cljc',
'cljs',
'cpp',
'cs',
'css',
'cxx',
'erl',
'go',
'h',
'hpp',
'hs',
'htm',
'html',
'java',
'js',
'json',
'kt',
'kts',
'lhs',
'lua',
'markdown',
'md',
'php',
'pl',
'pls',
'plsql',
'pm',
'ps1',
'py',
'rb',
'rs',
'scala',
'scss',
'sh',
'sql',
'swift',
'tf',
'tfvars',
'ts',
'tsx',
'xml',
'yaml',
'yml',
'txt',
'Dockerfile',
];
const allowedExtensions = [
...imageFormats,
...videoFormats,
...highlightCompatibleFormats,
];
$('.filetype').text(`.${extension}`);
if (!allowedExtensions.includes(extension)) {
$('#preview').hide();
} else {
$('#placeholder').hide();
}
});
</script>
</head>
<body class="bg-[#181818] font-[Inter]">
<div class="flex flex-col w-full min-h-screen px-4 sm:px-12 py-9 mx-auto">
<!-- Header -->
<div
class="flex flex-col-reverse sm:flex-row items-center justify-between mb-9 gap-6 text-sm text-center text-white"
>
</div>
<div class="flex flex-col flex-1 items-center justify-center">
<!-- Card -->
<div class="w-full max-w-2xl p-4 sm:p-7 rounded-[32px] bg-white">
<div
class="flex flex-col sm:flex-row justify-between px-2 sm:px-0 gap-6 sm:gap-4"
>
<div>
<p class="text-lg font-semibold truncate sm:max-w-80">
__FILENAME__
</p>
<p class="text-sm font-light">__SHAREDATE__</p>
</div>
<a
href="__PATH__"
download="__FILENAME__"
class="mx-auto px-5 py-4 bg-[#009B72] text-sm text-white font-medium hover:text-black rounded-full transition-all duration-300 sm:mr-0"
>
Download (__FILESIZE__)
</a>
</div>
<div
class="relative mt-7 w-full overflow-hidden rounded-3xl aspect-[488/294] bg-[#E5E6DB]"
>
<div id="preview" class="absolute inset-0 flex" style="overflow:scroll">__PREVIEW__</div>
<!-- Placeholder -->
<div
id="placeholder"
class="flex flex-col items-center justify-center gap-6 h-full w-full text-[#BABCA6]"
>
<div class="relative">
<svg
class="w-20 h-20 sm:w-36 sm:h-36"
viewBox="0 0 144 144"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M128.333 58.3333V87.5C128.333 116.667 116.667 128.333 87.5001 128.333H52.5001C23.3334 128.333 11.6667 116.667 11.6667 87.5V52.5C11.6667 23.3333 23.3334 11.6667 52.5001 11.6667H81.6667"
stroke="#CBCDB9"
stroke-width="3"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M128.333 58.3333H105C87.5001 58.3333 81.6667 52.5 81.6667 35V11.6667L128.333 58.3333Z"
stroke="#CBCDB9"
stroke-width="3"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
<p
class="filetype absolute inset-0 flex items-center justify-center translate-y-2 sm:translate-y-4 text-sm sm:text-base"
></p>
</div>
<p class="text-sm text-center max-w-40 sm:max-w-none">
Preview for
<span class="filetype">this file</span> format is not available
</p>
</div>
</div>
</div>
<!-- Homepage CTA -->
<a
href="https://dropshare.app/"
class="mt-8 text-xs font-light text-[#D5D5D5] hover:text-[#009B72] transition-all duration-300 inline"
>
Share files with Dropshare <svg class="h-2 w-2 inline" fill=none viewBox="0 0 14 10"xmlns=http://www.w3.org/2000/svg aria-hidden=true>
<path d="M1 5h12m0 0L9 1m4 4L9 9"stroke-linecap=round stroke-linejoin=round stroke=currentColor stroke-width=2 />
</svg>
</a>
</div>
</div>
</body>
</html>