-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
556 lines (457 loc) · 19.6 KB
/
index.html
File metadata and controls
556 lines (457 loc) · 19.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
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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CodeFetch</title>
</head>
<link rel="icon" type="image/png" href="/assets/logo.png" />
<link rel="stylesheet" href="style.css" />
<body>
<div class="background" id="main">
<video muted loop autoplay>
<source src="/assets/bg-video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div id="cursor"></div>
<img src="/assets/3dimg3.png" alt="Background decoration">
<header>
<div class="logo">
<img src="/assets/logo.png" alt="CodeFetch logo">
<h1 class="logotext1">Code</h1>
<h1 class="logotext2">Fetch</h1>
</div>
<nav id="nav">
<a style="cursor: pointer;"
onclick="document.getElementById('main').scrollIntoView({ behavior: 'smooth' });">Home</a>
<a style="cursor: pointer;"
onclick="document.getElementById('cards').scrollIntoView({ behavior: 'smooth' });">Products</a>
<a style="cursor: pointer;"
onclick="document.getElementById('contactUs').scrollIntoView({ behavior: 'smooth' });">Contact Us</a>
<button class="btn">
<img style="padding-right: 10px;" src="/assets/get.png" alt="">
Get Now
</button>
</nav>
<div class="mobile-menu-toggle" id="mobile-toggle">
<span></span>
<span></span>
<span></span>
</div>
</header>
<section class="main">
<div class="left">
<h1>CodeFetch</h1>
<h3>Best developer tool</h3>
<p>
Struggling with DevTools? Our Chrome Extension makes web inspection easy and beginner-friendly.
With one click, you can hover over any element on a live site to see its HTML and CSS, extract images, videos,
and SVGs,
and copy ready-to-use code snippets. Whether you're a student or a new developer,
this tool helps you understand how real websites are built — visually, interactively, and without the
overwhelm.
Start learning by doing, not guessing.
</p>
<div class="buttons">
<button class="btnn"
onclick="document.getElementById('mainPhoto').scrollIntoView({ behavior: 'smooth' });">Features</button>
<button style="background: rgb(238, 31, 31); " class="btn">
<img style="padding-right: 10px; margin-right: 0; " src="/assets/get.png" alt="">
Get Now
</button>
</div>
</div>
</section>
</div>
<div class="scroll-container" id="scrollContainer">
<div class="animation-wrapper">
<div class="header" id="header">
<h1>
<img src="/assets/arrow (2).png" alt="">
</h1>
<h1>Scroll Down</h1>
<p>For more information on CodeFetch chrome extension scroll down to learn more </p>
</div>
<div class="card-container" id="cardContainer">
<div class="card-inner">
<div class="demo-content">
<div class="video-container">
<iframe id="youtubeVideo" src="https://www.youtube.com/embed/8flfpEaSYYM?si=ww3x2fBQhB6S3SLc" frameborder="0" allow="autoplay;encrypted-media;"allowfullscreen></iframe>
</iframe>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="spacer">
<h2>Tools for web developers</h2>
<div class="cards" id="cards">
<div class="feature-grid">
<div class="feature-item">
<div class="icon">
<img src="/assets/eye.png" style="scale: 1.3;" alt="Inspector Icon" />
</div>
<div class="feature-content">
<h3>Inspector</h3>
<p>Inspect HTML and CSS by just hovering over the element. No need to open dev tools.</p>
</div>
</div>
<div class="feature-item">
<div class="icon">
<img src="/assets/photo.png" alt="Assets Icon" />
</div>
<div class="feature-content">
<h3>Assets</h3>
<p>Extract images, videos, and SVGs, and copy ready-to-use code snippets from any page.</p>
</div>
</div>
<div class="feature-item">
<div class="icon">
<img src="/assets/free-1-svgrepo-com (1).svg" style="scale: 1.7;" alt="Assets Icon" />
</div>
<div class="feature-content">
<h3>Completely Free to Use</h3>
<p>Enjoy all our features without paying a rupee. We believe great tools should be accessible to everyone.</p>
</div>
</div>
<div class="feature-item">
<div class="icon">
<img src="/assets/browsers-svgrepo-com.svg" alt="Assets Icon" style="scale: 1.2;" />
</div>
<div class="feature-content">
<h3>Platform Independent</h3>
<p>Our platform is fully compatible with all major browsers. Enjoy a seamless experience on
<div class="flex items-center font-body text-sm text-gray-300">
<span class="ml-2 flex-1 flex items-center gap-0.5">
<img class="w-8 h-8" src="/assets/chrome.svg" style="height: 32px; width: 32px;" alt="Chrome">
<img class="w-8 h-8" src="/assets/brave.svg" style="height: 32px; width: 32px;" alt="Brave">
<img class="w-8 h-8" src="/assets/edge.svg" style="height: 32px; width: 32px;" alt="Edge">
<img class="w-7 h-7" src="/assets/firefox.svg" style="height: 32px; width: 32px;" alt="Firefox">
</span>
</div>
</p>
</div>
</div>
<div class="feature-item">
<div class="icon">
<img src="/assets/macrphone..svg" alt="Assets Icon" />
</div>
<div class="feature-content">
<h3>Coming Soon . . .</h3>
<p>We're working behind the scenes to bring you exciting new tools. Stay tuned for powerful updates that will take your experience to the next level!</p>
</div>
</div>
</div>
</div>
</div>
<div class="lastPage">
<div class="carousel-container">
<div class="photo-section">
<img id="mainPhoto" class="main-photo" src="/assets/ss1.png" alt="Main Photo">
<div class="thumbnail-container">
<img class="thumbnail active" src="/assets/ss1.png" alt="Pizza" data-index="0">
<img class="thumbnail" src="/assets/ss3.png" alt="Pancakes" data-index="1">
<img class="thumbnail" src="/assets/ss2.png" alt="Salad" data-index="2">
</div>
</div>
<div class="details-section">
<div class="details-content active" id="content-0">
<div class="category">Extension</div>
<h1 class="title">CodeFetch Extension</h1>
<p class="description">Struggling with DevTools? Our Chrome Extension makes web inspection easy and beginner-friendly.</p>
</div>
<div class="details-content" id="content-1">
<div class="category">Assets</div>
<h1 class="title">Asset Database</h1>
<p class="description">Extract images, videos, and SVGs, and copy from any page. One click, you can extract images, videos,
and SVGs form any webpage.</p>
</div>
<div class="details-content" id="content-2">
<div class="category">HTML & CSS</div>
<h1 class="title">Get HTML & CSS</h1>
<p class="description">Inspect HTML and CSS by just hovering over the element. No need to open dev tools. With one click, you can hover over any element on a live site to see its HTML and CSS and copy ready-to-use code snippets.</p>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="footer-container">
<div class="footer-about">
<h3>Code Fetch</h3>
<p>
Our Chrome Extension makes web inspection easy and beginner-friendly.
With one click, you can hover over any element on a live site to see its HTML and CSS, extract images, videos,
and SVGs
</p>
</div>
<div class="footer-links">
<h4>Quick Links</h4>
<ul>
<li><a style="cursor: pointer;"
onclick="document.getElementById('main').scrollIntoView({ behavior: 'smooth' });">Home</a></li>
<li><a style="cursor: pointer;"
onclick="document.getElementById('cards').scrollIntoView({ behavior: 'smooth' });">About</a>
</li>
<li><a style="cursor: pointer;">Contact</a></li>
</ul>
</div>
<div class="footer-contact" id="contactUs">
<h4>Contact Us</h4>
<div class="tooltip-container" id="tooltipContainer">
<!-- Tooltips will be dynamically generated -->
</div>
</div>
</div>
<div class="footer-bottom">
<p>© 2025 Code Fetch. All rights reserved.</p>
<p>made by manushwi,anurag</p>
</div>
</footer>
<script>
const photos = [
{
main: '/assets/ss1.png',
thumb: '/assets/ss1.png'
},
{
main: '/assets/ss3.png',
thumb: '/assets/ss3.png'
},
{
main: '/assets/ss2.png',
thumb: '/assets/ss2.png'
}
];
const mainPhoto = document.getElementById('mainPhoto');
const thumbnails = document.querySelectorAll('.thumbnail');
const detailsContents = document.querySelectorAll('.details-content');
let currentIndex = 0;
function switchPhoto(index) {
// Update main photo
mainPhoto.src = photos[index].main;
// Update active thumbnail
thumbnails.forEach((thumb, i) => {
thumb.classList.toggle('active', i === index);
});
// Update content with fade effect
detailsContents[currentIndex].classList.remove('active');
setTimeout(() => {
detailsContents[index].classList.add('active');
}, 200);
currentIndex = index;
}
// Add click event to thumbnails
thumbnails.forEach((thumbnail, index) => {
thumbnail.addEventListener('click', () => {
switchPhoto(index);
});
});
// Add click event to main photo (cycles through photos)
mainPhoto.addEventListener('click', () => {
const nextIndex = (currentIndex + 1) % photos.length;
switchPhoto(nextIndex);
});
// Keyboard navigation
document.addEventListener('keydown', (e) => {
if (e.key === 'ArrowRight') {
const nextIndex = (currentIndex + 1) % photos.length;
switchPhoto(nextIndex);
} else if (e.key === 'ArrowLeft') {
const prevIndex = (currentIndex - 1 + photos.length) % photos.length;
switchPhoto(prevIndex);
}
});
// Auto-advance carousel (optional)
let autoAdvance = setInterval(() => {
const nextIndex = (currentIndex + 1) % photos.length;
switchPhoto(nextIndex);
}, 5000);
// Pause auto-advance on hover
const container = document.querySelector('.carousel-container');
container.addEventListener('mouseenter', () => {
clearInterval(autoAdvance);
});
container.addEventListener('mouseleave', () => {
autoAdvance = setInterval(() => {
const nextIndex = (currentIndex + 1) % photos.length;
switchPhoto(nextIndex);
}, 5000);
});
</script>
<script>
// Sample data for tooltips
const tooltipData = [
{
name: "Manushwi Raj",
role: "Team Leader",
avatar: "/assets//manushwi.jpg",
id: "marcus",
link: "https://www.linkedin.com/in/manushwi-raj-bhardwaj/"
},
{
name: "Anurag Singh",
role: "Web designer",
avatar: "/assets//anurag.jpg",
id: "elena",
link: "https://www.linkedin.com/in/anurag-singh-003958353/"
},
];
// Generate tooltip HTML
function createTooltipHTML(person) {
return `
<div class="tooltip-item" data-id="${person.id}">
<a href="${person.link}" target="_blank">
<img src="${person.avatar}" class="avatar" alt="${person.name}" loading="lazy">
</a>
<div class="tooltip">
<div class="tooltip-name">${person.name}</div>
<div class="tooltip-role">${person.role}</div>
</div>
</div>
`;
}
// Initialize tooltips
function initializeTooltips() {
const container = document.getElementById('tooltipContainer');
const tooltipHTML = tooltipData.map(person => createTooltipHTML(person)).join('');
container.innerHTML = tooltipHTML;
// Add enhanced hover effects
const tooltipItems = container.querySelectorAll('.tooltip-item');
tooltipItems.forEach((item, index) => {
// Staggered entrance animation
item.style.animationDelay = `${index * 0.1}s`;
item.style.animation = 'fadeInUp 0.6s ease-out forwards';
// Enhanced interaction effects
item.addEventListener('mouseenter', function () {
// Subtle scale effect on other items
tooltipItems.forEach((otherItem, otherIndex) => {
if (otherIndex !== index) {
otherItem.style.transform = 'scale(0.95)';
otherItem.style.opacity = '0.7';
}
});
});
item.addEventListener('mouseleave', function () {
// Reset all items
tooltipItems.forEach(otherItem => {
otherItem.style.transform = '';
otherItem.style.opacity = '';
});
});
// Handle image loading errors
const img = item.querySelector('.avatar');
img.addEventListener('error', function () {
this.style.background = `linear-gradient(135deg,
hsl(${Math.random() * 360}, 70%, 60%) 0%,
hsl(${Math.random() * 360}, 70%, 50%) 100%)`;
this.innerHTML = person.name.charAt(0);
this.style.display = 'flex';
this.style.alignItems = 'center';
this.style.justifyContent = 'center';
this.style.fontSize = '1.2rem';
this.style.fontWeight = '600';
this.style.color = 'white';
});
});
}
// Advanced tooltip positioning for edge cases
function adjustTooltipPosition() {
const tooltips = document.querySelectorAll('.tooltip');
tooltips.forEach(tooltip => {
const rect = tooltip.getBoundingClientRect();
const viewportWidth = window.innerWidth;
// Adjust if tooltip goes off-screen
if (rect.left < 10) {
tooltip.style.left = '10px';
tooltip.style.transform = 'translateX(0)';
} else if (rect.right > viewportWidth - 10) {
tooltip.style.left = 'auto';
tooltip.style.right = '10px';
tooltip.style.transform = 'translateX(0)';
}
});
}
// Initialize everything when DOM is loaded
document.addEventListener('DOMContentLoaded', function () {
initializeTooltips();
// Adjust tooltip positions on window resize
let resizeTimeout;
window.addEventListener('resize', function () {
clearTimeout(resizeTimeout);
resizeTimeout = setTimeout(adjustTooltipPosition, 100);
});
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"
integrity="sha512-7eHRwcbYkK4d9g/6tD/mhkf++eoTHwpNM9woBxtPUBWm67zeAfFC+HrdoE2GanKeocly/VxeLvIqwvCdk7qScg=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="script.js"></script>
<script src="https://www.youtube.com/iframe_api"></script>
<script>
class ContainerScrollAnimation {
constructor() {
this.scrollContainer = document.getElementById('scrollContainer');
this.cardContainer = document.getElementById('cardContainer');
this.header = document.getElementById('header');
this.scrollProgress = document.getElementById('scrollProgress');
this.isMobile = window.innerWidth <= 768;
this.init();
}
init() {
this.setupEventListeners();
this.handleScroll();
}
setupEventListeners() {
window.addEventListener('scroll', () => this.handleScroll());
window.addEventListener('resize', () => {
this.isMobile = window.innerWidth <= 768;
this.handleScroll();
});
}
handleScroll() {
const scrollProgress = this.getScrollProgress();
this.updateAnimations(scrollProgress);
this.updateScrollIndicator(scrollProgress);
}
getScrollProgress() {
const containerRect = this.scrollContainer.getBoundingClientRect();
const containerTop = containerRect.top;
const containerHeight = containerRect.height;
const windowHeight = window.innerHeight;
// Calculate when container enters and exits viewport
const startOffset = windowHeight;
const endOffset = windowHeight * 0.000001;
const totalDistance = startOffset - endOffset;
const currentProgress = (startOffset - containerTop) / totalDistance;
return Math.max(0, Math.min(1, currentProgress));
}
updateAnimations(progress) {
// Rotation: starts at 20deg, ends at 0deg
const rotation = 80 - (progress * 80);
// Scale: mobile (0.7 to 0.9), desktop (1.05 to 1.0)
const scaleStart = this.isMobile ? 0.7 : 1.05;
const scaleEnd = this.isMobile ? 0.9 : 1.0;
const scale = scaleStart + (progress * (scaleEnd - scaleStart));
// Translation: header moves up as we scroll
const headerTranslate = progress * -100;
// Apply transforms
this.cardContainer.style.transform = `rotateX(${rotation}deg) scale(${scale})`;
this.header.style.transform = `translateY(${headerTranslate}px)`;
// Optional: Add some opacity fade to header
this.header.style.opacity = Math.max(0.3, 1 - (progress * 0.7));
}
updateScrollIndicator(progress) {
const height = Math.max(0, Math.min(100, progress * 100));
this.scrollProgress.style.height = `${height}%`;
}
}
// Initialize when DOM is loaded
document.addEventListener('DOMContentLoaded', () => {
new ContainerScrollAnimation();
});
// Add some extra scroll smoothness for webkit browsers
document.documentElement.style.scrollBehavior = 'smooth';
</script>
</body>
</html>