-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsource.html
More file actions
367 lines (340 loc) · 16.9 KB
/
Copy pathsource.html
File metadata and controls
367 lines (340 loc) · 16.9 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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Source Code - NotYVidGen</title>
<link rel="icon" type="image/x-icon" href="assets/icons/favicon.ico" />
<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:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="css/common.css" />
<link rel="stylesheet" href="css/source.css" />
<link rel="stylesheet" href="css/animations.css" />
<link rel="stylesheet" href="css/responsive.css" />
<!-- Security Module - Must be loaded first -->
<script src="js/security.js"></script>
<script src="/config/auth.js"></script>
<script src="/config/client.js"></script>
<style>
.loading-screen-source {
position: fixed;
inset: 0;
z-index: 9999;
background: var(--bg-primary, #F2F2F2);
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loading-screen-source.hidden {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
.loading-container-source {
text-align: center;
}
.loading-container-source img {
width: 48px;
height: 48px;
animation: pulse 1.5s ease-in-out infinite;
}
.loading-container-source p {
margin-top: 12px;
color: var(--text-secondary, #424242);
font-size: 14px;
}
</style>
</head>
<body>
<div id="loading-screen-source" class="loading-screen-source">
<div class="loading-container-source">
<img src="assets/icons/logo.svg" alt="NotYVidGen" width="48" height="48" />
<p>Loading...</p>
</div>
</div>
<div class="source-page" id="source-page" style="display: none;">
<nav class="navbar">
<div class="navbar-brand">
<img src="assets/icons/logo.svg" alt="NotYVidGen" width="32" height="32" />
<span>NotYVidGen</span>
</div>
<button class="hamburger-btn" id="hamburger-btn" aria-label="Toggle menu">
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M4 6h16M4 12h16M4 18h16"/>
</svg>
</button>
<div class="navbar-links">
<a href="/" class="navbar-link" id="nav-home">Home</a>
<a href="/about.html" class="navbar-link">About</a>
<a href="/help.html" class="navbar-link">Help</a>
<a href="/privacy.html" class="navbar-link">Privacy</a>
<a href="/terms.html" class="navbar-link">Terms</a>
<a href="/source.html" class="navbar-link active">Source</a>
<div class="navbar-user" id="navbar-user" style="display: none;">
<div class="user-avatar" id="user-avatar-nav" onclick="window.location.href='/home.html'">
<img src="assets/icons/logo.svg" alt="User" />
</div>
</div>
</div>
</nav>
<div class="nav-drawer-overlay" id="nav-drawer-overlay"></div>
<div class="nav-drawer" id="nav-drawer">
<div class="nav-drawer-header">
<div class="navbar-brand">
<img src="assets/icons/logo.svg" alt="NotYVidGen" width="28" height="28" />
<span>NotYVidGen</span>
</div>
<button class="nav-drawer-close" id="nav-drawer-close">✕</button>
</div>
<div class="nav-drawer-links">
<a href="/" class="nav-drawer-link">🏠 Home</a>
<a href="/about.html" class="nav-drawer-link">ℹ️ About</a>
<a href="/help.html" class="nav-drawer-link">❓ Help</a>
<a href="/privacy.html" class="nav-drawer-link">🔒 Privacy</a>
<a href="/terms.html" class="nav-drawer-link">📜 Terms</a>
<a href="/source.html" class="nav-drawer-link active">📦 Source</a>
<a href="/license.html" class="nav-drawer-link">📄 License</a>
</div>
<div class="nav-drawer-footer">
<div id="drawer-auth-section">
<button class="btn btn-primary btn-sm" id="drawer-login-btn" style="width:100%;">Sign In</button>
</div>
</div>
</div>
<div class="container">
<div class="source-header animate-fade-in">
<h1>Source Code</h1>
<p class="text-muted">Open source and community driven</p>
</div>
<div class="source-content">
<div class="card">
<div class="source-repo">
<span class="repo-icon">🐙</span>
<div class="repo-info">
<h4>NotYVidGen</h4>
<p>AI-powered video generation from images</p>
</div>
<a href="https://github.com/NotY215/NotYVidGen" target="_blank" class="repo-link" rel="noopener noreferrer">
⭐ View on GitHub
</a>
</div>
<div class="source-stats">
<div class="source-stat">
<div class="number">8</div>
<div class="label">Commits</div>
</div>
<div class="source-stat">
<div class="number">GPL v3.0</div>
<div class="label">License</div>
</div>
<div class="source-stat">
<div class="number">Active</div>
<div class="label">Development</div>
</div>
</div>
<div style="margin: 24px 0;">
<div class="source-info">
<p><strong>Version:</strong> 1.0.0</p>
<p><strong>License:</strong> <a href="/license.html">GNU GPL v3.0</a></p>
<p><strong>Status:</strong> <span class="badge badge-success">Active Development</span></p>
<p><strong>Language:</strong> JavaScript, HTML, CSS</p>
<p><strong>Repository:</strong> <a href="https://github.com/NotY215/NotYVidGen" target="_blank" rel="noopener noreferrer">github.com/NotY215/NotYVidGen</a></p>
</div>
</div>
<div>
<h3>Project Structure</h3>
<div style="background: var(--bg-tertiary); padding: 16px; border-radius: var(--radius-sm); font-family: monospace; font-size: var(--font-size-sm); color: var(--text-secondary); overflow-x: auto;">
<pre style="margin: 0; white-space: pre-wrap;">
notyvidgen/
├── index.html # Main entry point (public)
├── home.html # Authenticated dashboard
├── config/ # Configuration files
│ ├── auth.js # Auth configuration mapping
│ ├── client.js # Client credentials
│ └── app-config.js # Application config
├── css/ # Stylesheets
│ ├── common.css # Shared styles
│ ├── index.css # Landing page styles
│ ├── home.css # Dashboard styles
│ ├── about.css # About page styles
│ ├── history.css # History page styles
│ ├── settings.css # Settings page styles
│ ├── license.css # License page styles
│ ├── privacy.css # Privacy page styles
│ ├── source.css # Source page styles
│ ├── terms.css # Terms page styles
│ ├── animations.css # Animations
│ └── responsive.css # Responsive design
├── js/ # JavaScript modules
│ ├── app.js # Main application
│ ├── authclient.js # Authentication client
│ ├── session.js # Session management
│ ├── generation.js # Video generation
│ ├── history.js # History management
│ ├── settings.js # Settings
│ ├── navigation.js # Navigation
│ ├── notifications.js # Notifications
│ ├── upload.js # File upload
│ └── utils.js # Utilities
├── notebooks/ # Colab notebooks
│ └── video_generation.ipynb
├── database/ # Database schemas
│ └── schema.sql
└── assets/ # Static assets
├── icons/
└── images/
</pre>
</div>
</div>
<div style="margin-top: 24px;">
<h3>Development Roadmap</h3>
<div class="roadmap-item">
<span class="roadmap-status">✅</span>
<div class="roadmap-text">
<h4>Basic Video Generation</h4>
<p>Core functionality with image-to-video generation</p>
</div>
</div>
<div class="roadmap-item">
<span class="roadmap-status">✅</span>
<div class="roadmap-text">
<h4>Google Authentication</h4>
<p>Secure sign-in with Google OAuth</p>
</div>
</div>
<div class="roadmap-item">
<span class="roadmap-status">✅</span>
<div class="roadmap-text">
<h4>History Management</h4>
<p>Track and manage generated videos</p>
</div>
</div>
<div class="roadmap-item">
<span class="roadmap-status">🔲</span>
<div class="roadmap-text">
<h4>Multiple AI Models</h4>
<p>Support for different generation models</p>
</div>
</div>
<div class="roadmap-item">
<span class="roadmap-status">🔲</span>
<div class="roadmap-text">
<h4>Advanced Editing</h4>
<p>Edit and customize generated videos</p>
</div>
</div>
</div>
<div style="margin-top: 24px; text-align: center; padding-top: 24px; border-top: 1px solid var(--border-color);">
<h4>Contributing</h4>
<p class="text-muted text-sm">We welcome contributions! Check the repository for guidelines.</p>
<div style="display: flex; gap: 12px; justify-content: center; margin-top: 12px; flex-wrap: wrap;">
<a href="https://github.com/NotY215/NotYVidGen" target="_blank" rel="noopener noreferrer" class="btn btn-primary btn-sm">
⭐ Star on GitHub
</a>
<a href="https://github.com/NotY215/NotYVidGen/issues" target="_blank" rel="noopener noreferrer" class="btn btn-secondary btn-sm">
🐛 Report Issue
</a>
<a href="https://github.com/NotY215/NotYVidGen#readme" target="_blank" rel="noopener noreferrer" class="btn btn-secondary btn-sm">
📖 Read Docs
</a>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<div class="footer-content">
<span class="footer-brand">NotYVidGen v1.0.0</span>
<span class="footer-copy">Made with ❤️ in India</span>
</div>
</div>
</footer>
</div>
<script>
// Hamburger menu
(function() {
const hamburgerBtn = document.getElementById('hamburger-btn');
const drawer = document.getElementById('nav-drawer');
const overlay = document.getElementById('nav-drawer-overlay');
const closeBtn = document.getElementById('nav-drawer-close');
function openDrawer() {
drawer.classList.add('open');
overlay.classList.add('show');
document.body.style.overflow = 'hidden';
}
function closeDrawer() {
drawer.classList.remove('open');
overlay.classList.remove('show');
document.body.style.overflow = '';
}
if (hamburgerBtn) hamburgerBtn.addEventListener('click', openDrawer);
if (closeBtn) closeBtn.addEventListener('click', closeDrawer);
if (overlay) overlay.addEventListener('click', closeDrawer);
document.querySelectorAll('.nav-drawer-link').forEach(link => {
link.addEventListener('click', closeDrawer);
});
document.addEventListener('keydown', function(e) {
if (e.key === 'Escape' && drawer.classList.contains('open')) {
closeDrawer();
}
});
})();
// Loading & Session
(function() {
const loadingScreen = document.getElementById('loading-screen-source');
const sourcePage = document.getElementById('source-page');
const navHome = document.getElementById('nav-home');
const userAvatar = document.getElementById('user-avatar-nav');
const navbarUser = document.getElementById('navbar-user');
const drawerLoginBtn = document.getElementById('drawer-login-btn');
const authData = sessionStorage.getItem('notyvidgen_auth');
if (authData) {
try {
const data = JSON.parse(authData);
if (data.user) {
navHome.href = '/home.html';
if (navbarUser) {
navbarUser.style.display = 'flex';
}
if (userAvatar) {
if (data.user.picture) {
userAvatar.innerHTML = `<img src="${data.user.picture}" alt="${data.user.name}" />`;
} else {
userAvatar.textContent = data.user.name ? data.user.name.charAt(0).toUpperCase() : 'U';
}
userAvatar.style.cursor = 'pointer';
userAvatar.onclick = function() {
window.location.href = '/home.html';
};
}
if (drawerLoginBtn) {
drawerLoginBtn.textContent = 'Go to Dashboard';
drawerLoginBtn.className = 'btn btn-primary btn-sm';
drawerLoginBtn.style.width = '100%';
drawerLoginBtn.onclick = function() {
window.location.href = '/home.html';
};
}
}
} catch(e) {}
} else {
if (drawerLoginBtn) {
drawerLoginBtn.textContent = 'Sign In';
drawerLoginBtn.className = 'btn btn-primary btn-sm';
drawerLoginBtn.style.width = '100%';
drawerLoginBtn.onclick = function() {
window.location.href = '/';
};
}
}
setTimeout(function() {
loadingScreen.classList.add('hidden');
sourcePage.style.display = 'block';
}, 300);
})();
</script>
</body>
</html>