-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileUploader.html
More file actions
217 lines (188 loc) · 5.6 KB
/
Copy pathFileUploader.html
File metadata and controls
217 lines (188 loc) · 5.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Knights Demplar – Scroll Vault Uploader</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Heroic Roman Serif -->
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&display=swap" rel="stylesheet">
<style>
* { box-sizing: border-box; }
:root {
--accent-magic: #7b63ff;
--rune-color: rgba(240, 220, 185, 0.8);
}
html, body {
margin: 0;
padding: 0;
min-height: 100%;
width: 100%;
background: #000; /* PURE BLACK BACKGROUND */
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
color: #f3e7d0;
display: flex;
flex-direction: column;
align-items: center;
}
/* =========================================
HEADER ABOVE SCROLL
========================================= */
.top-header {
text-align: center;
margin-top: 26px;
margin-bottom: 10px;
font-family: 'Cinzel', serif;
}
.top-header .title {
font-size: 4rem;
text-transform: uppercase;
letter-spacing: 0.12em;
margin: 0;
color: #f4e6c1;
text-shadow: 0 3px 8px rgba(0,0,0,0.7);
}
.top-header .subtitle {
margin-top: 8px;
font-size: 1.6rem;
text-transform: uppercase;
letter-spacing: 0.18em;
color: #d8c29e;
text-shadow: 0 2px 6px rgba(0,0,0,0.65);
}
/* =========================================
SCROLL BACKGROUND IMAGE WRAPPER
========================================= */
.scroll-wrapper {
position: relative;
width: 100%;
max-width: 900px;
margin-bottom: 80px;
}
.scroll-wrapper img.scroll-bg {
width: 100%;
display: block;
}
/* =========================================
DESCRIPTION TEXT ON BLACK, ABOVE PARCHMENT
========================================= */
.description {
position: absolute;
top: 0px; /* tuned for YOUR scroll graphic */
width: 100%;
text-align: center;
font-size: 1rem;
line-height: 1;
color: #f3e7d0;
padding: 0 20px;
text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.runes {
margin-top: 30px;
letter-spacing: 0.25em;
font-size: 2rem;
opacity: 0.85;
color: var(--rune-color);
font-family: 'Cinzel', serif;
text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
/* =========================================
UPLOAD IFRAME POSITIONED ON THE PARCHMENT
========================================= */
.upload-area {
position: absolute;
top: 350px; /* tuned for YOUR parchment area */
left: 50%;
transform: translateX(-50%);
width: 50%;
max-width: 650px;
border-radius: 12px;
padding: 0;
}
.iframe-frame {
position: relative;
border-radius: 12px;
padding: 14px;
background: rgba(255, 248, 232, 0.6);
backdrop-filter: blur(2px);
box-shadow:
inset 0 0 0 1px rgba(160, 120, 80, 0.8),
0 10px 26px rgba(0,0,0,0.45);
}
.iframe-frame::before {
position: absolute;
inset: 8px;
border-radius: 10px;
border: 1px dashed rgba(140, 90, 50, 0.7);
font-size: 0.58rem;
letter-spacing: 0.4em;
text-align: center;
line-height: 1.8;
color: rgba(150, 100, 60, 0.8);
pointer-events: none;
padding-top: 6px;
mix-blend-mode: multiply;
z-index: 10;
}
iframe {
width: 100%;
height: 620px;
border: none;
background: transparent;
z-index: 2;
position: relative;
}
.fallback {
margin-top: 6px;
text-align: center;
font-size: 0.8rem;
color: #e4d7b5;
}
.fallback a {
color: var(--accent-magic);
text-decoration: none;
border-bottom: 1px solid rgba(123, 99, 255, 0.4);
}
/* MOBILE TUNING */
@media (max-width: 600px) {
.description { top: 105px; }
.upload-area { top: 200px; width: 90%; }
iframe { height: 420px; }
}
</style>
</head>
<body>
<!-- HEADER ABOVE SCROLL -->
<div class="top-header">
<h1 class="title">Knights Demplar</h1>
<p class="subtitle">Community Art & Media Submissions</p>
</div>
<!-- SCROLL BACKGROUND WRAPPER -->
<div class="scroll-wrapper">
<!-- FULL SCROLL IMAGE -->
<img class="scroll-bg"
src="https://raw.githubusercontent.com/RaptorCapture247/KnightsDemplarFileUploader/bcf98e6dab6238e5a0db2dea7b38ddfaa4c12791/assets/background.png"
alt="Scroll Background" />
<!-- DESCRIPTION ABOVE PARCHMENT -->
<div class="description">
Your creations strengthen embassy relations. Upload images or videos for possible inclusion on the official Knights Demplar channels. Please include your Twitter username to receive credit if art is used.
<div class="runes">ᚠ ᚱ ᛖ ᛚ ᚨ ᛗ ᛊ ᛉ ᚺ ᛈ ᛋ ᚷ ᛟ ᛞ</div>
</div>
<!-- UPLOAD AREA -->
<div class="upload-area">
<div class="iframe-frame">
<iframe id="pigeonFrame" loading="lazy" referrerpolicy="no-referrer"></iframe>
</div>
<p class="fallback">
Uploader not appearing? <a id="pigeonLink" href="#" target="_blank">Open in new tab</a>
</p>
</div>
</div>
<script>
/* Change every 7 days */
const PIGEON_UPLOAD_URL =
"https://pigeonfiles.com/u/t2dvlyqva23z00f12winey";
document.getElementById("pigeonFrame").src = PIGEON_UPLOAD_URL;
document.getElementById("pigeonLink").href = PIGEON_UPLOAD_URL;
</script>
</body>
</html>