-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
220 lines (206 loc) · 8.6 KB
/
index.html
File metadata and controls
220 lines (206 loc) · 8.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
218
219
220
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>DriveDrop — Interstellar</title>
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Exo+2:wght@300;400;500&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<canvas id="starfield"></canvas>
<div class="nebula nebula-1"></div>
<div class="nebula nebula-2"></div>
<div class="nebula nebula-3"></div>
<div class="app">
<header>
<div class="logo">
<div class="logo-icon">🛸</div>
<div class="logo-text">Drive<span>Drop</span></div>
</div>
<button id="authBtn" onclick="handleAuth()">Connect</button>
</header>
<div class="tab-bar">
<button class="tab-btn active" onclick="switchTab('dashboard')">Dashboard</button>
<button class="tab-btn" onclick="switchTab('achievements')">
Achievements
<span class="tab-badge hidden" id="achievementBadge">0</span>
</button>
</div>
<div id="tabDashboard" class="tab-content">
<div class="info-grid">
<div class="info-card panel">
<div class="info-label">Storage Used</div>
<div class="info-value accent" id="infoUsed">—</div>
</div>
<div class="info-card panel">
<div class="info-label">Free Space</div>
<div class="info-value green" id="infoFree">—</div>
</div>
<div class="info-card wide panel">
<div class="info-label">Capacity</div>
<div class="storage-bar-wrap"><div class="storage-bar-fill" id="storageBar" style="width:0%"></div></div>
<div class="storage-text" id="storageText">Awaiting connection…</div>
</div>
</div>
</div>
<div id="tabAchievements" class="tab-content hidden">
<div class="achievements-header">
<div class="ach-title-row">
<div class="ach-main-title">Mission Logs</div>
<div class="ach-progress-pill" id="achProgressPill">0 / 0 Unlocked</div>
</div>
<div class="ach-progress-bar-wrap">
<div class="ach-progress-bar-fill" id="achProgressBar" style="width:0%"></div>
</div>
</div>
<div class="ach-category-label">Upload Milestones</div>
<div class="ach-grid" id="achGridMilestones"></div>
<div class="ach-category-label">Data Volume</div>
<div class="ach-grid" id="achGridData"></div>
<div class="ach-category-label">Fun & Quirky</div>
<div class="ach-grid" id="achGridFun"></div>
</div>
<div class="folder-bar panel">
<div class="folder-left">
<div class="folder-emoji">📡</div>
<div class="folder-info">
<div class="folder-label">Transmission Target</div>
<div class="folder-name" id="folderName">Connect to assign folder</div>
</div>
</div>
<button class="folder-change-btn" onclick="openFolderModal()">Reroute</button>
</div>
<div class="dropzone-wrapper">
<div id="dropzone" class="disabled"
ondragover="onDragOver(event)" ondragleave="onDragLeave()" ondrop="onDrop(event)">
<div class="warp-ring"></div>
<div class="warp-ring"></div>
<div class="warp-ring"></div>
<div class="drop-corner-tr"></div>
<div class="drop-corner-bl"></div>
<div class="drop-inner-glow"></div>
<div class="drop-icon">🌌</div>
<div class="drop-title">Initiate Transmission</div>
<div class="drop-sub">
Drop files to beam them to your Drive<br/>
<span class="drop-browse">or tap to select from device</span>
</div>
<label id="fileLabel" style="position:absolute;inset:0;cursor:pointer;z-index:1;">
<input type="file" id="fileInput" multiple onchange="onFileSelect(event)" style="display:none"/>
</label>
</div>
</div>
<div class="stats-row">
<div class="stat-card panel">
<div class="stat-label">Queued</div>
<div class="stat-dot-row">
<div class="stat-dot red"></div>
<div class="stat-value" id="statQueued">0</div>
</div>
</div>
<div class="stat-card panel">
<div class="stat-label">Beamed</div>
<div class="stat-dot-row">
<div class="stat-dot green"></div>
<div class="stat-value" id="statDone">0</div>
</div>
</div>
<div class="stat-card panel">
<div class="stat-label">Data</div>
<div class="stat-dot-row">
<div class="stat-dot yellow"></div>
<div class="stat-value" id="statSize">0 B</div>
</div>
</div>
</div>
<div class="queue-wrapper hidden" id="queueWrapper">
<div class="queue-header">— Transmission Log —</div>
<div id="fileList"></div>
</div>
</div>
<footer class="site-footer">
<div class="footer-left">
<div class="footer-logo">
<div class="footer-logo-icon">🛸</div>
<div class="footer-logo-text">Drive<span>Drop</span></div>
</div>
<div class="footer-made">
Made with <span class="footer-heart">♥</span> by Harsh
</div>
</div>
<div class="footer-divider"></div>
<div class="footer-right">
<div class="footer-right-label">Info</div>
<div class="footer-links">
<a class="footer-link" href="privacy-policy.html" target="_blank" rel="noopener">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
</svg>
Privacy Policy
</a>
<a class="footer-link" href="mailto:[email protected]">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="4" width="20" height="16" rx="2"/>
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/>
</svg>
</a>
<a class="footer-link" href="https://github.com/harshbuildsstuff/drive-uploader" target="_blank" rel="noopener">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/>
</svg>
Contribute on GitHub
</a>
</div>
</div>
</footer>
<div class="modal-overlay" id="folderModal" onclick="closeFolderModalOutside(event)">
<div class="modal">
<div class="modal-title">Select Transmission Target</div>
<div class="modal-sub">Create a new folder or pick an existing one in your Drive.</div>
<div class="modal-input-row">
<input class="modal-input" id="newFolderInput" type="text" placeholder="New folder name…"/>
<button class="modal-create-btn" onclick="createAndSelectFolder()">Create</button>
</div>
<div class="modal-divider">or existing</div>
<div class="folder-list" id="folderList">
<div class="folder-list-placeholder">Scanning Drive…</div>
</div>
<button class="modal-cancel" onclick="closeFolderModal()">Abort</button>
</div>
</div>
<div class="achievement-unlock-overlay" id="achievementOverlay">
<div class="achievement-unlock-box">
<div class="aub-stars">
<div class="aub-star s1">✦</div>
<div class="aub-star s2">✦</div>
<div class="aub-star s3">✦</div>
<div class="aub-star s4">✦</div>
<div class="aub-star s5">✦</div>
</div>
<div class="aub-label">Achievement Unlocked</div>
<div class="aub-icon" id="aubIcon">🛸</div>
<div class="aub-name" id="aubName"></div>
<div class="aub-desc" id="aubDesc"></div>
<div class="aub-glow"></div>
<button class="aub-close" onclick="closeAchievementOverlay()">Continue Mission</button>
</div>
</div>
<div id="toast"></div>
<div class="cookie-bar" id="cookieBar">
<div class="cookie-lights">
<span class="cookie-dot red"></span>
<span class="cookie-dot yellow"></span>
<span class="cookie-dot green"></span>
</div>
<p class="cookie-text">Yeah my app uses cookies to remember your session across visits. DW</p>
<div class="cookie-actions">
<button class="cookie-decline" onclick="declineCookies()">Decline</button>
<button class="cookie-accept" onclick="acceptCookies()">Accept</button>
</div>
</div>
<script src="https://accounts.google.com/gsi/client" async defer></script>
<script src="app.js"></script>
</body>
</html>