Download index.html from z0m80z/try1: direct link, hf CLI and curl.
- Browser
- Download file 50.6 kB
-
https://huggingface.co/spaces/z0m80z/try1/resolve/main/index.html
- Command line
-
hf download hf://spaces/z0m80z/try1/index.html
-
curl -L -o index.html https://huggingface.co/spaces/z0m80z/try1/resolve/main/index.html
50.6 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>SwiftShare | Ultra-Fast & Secure File Sharing</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap" rel="stylesheet"> | |
| <style> | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| background-color: #f8fafc; | |
| } | |
| .drop-zone { | |
| border: 2px dashed #3b82f6; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| background-color: rgba(59, 130, 246, 0.03); | |
| } | |
| .drop-zone--over { | |
| border-color: #10b981; | |
| background-color: rgba(16, 185, 129, 0.08); | |
| transform: scale(1.01); | |
| } | |
| .file-item { | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .file-item:hover { | |
| transform: translateY(-3px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .progress-bar { | |
| height: 6px; | |
| transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .toast { | |
| animation: slideIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), fadeOut 0.5s 2.5s forwards; | |
| } | |
| @keyframes slideIn { | |
| from { transform: translateX(100%); opacity: 0; } | |
| to { transform: translateX(0); opacity: 1; } | |
| } | |
| @keyframes fadeOut { | |
| to { opacity: 0; transform: translateX(100%); } | |
| } | |
| .feature-card { | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .feature-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); | |
| } | |
| .title-font { | |
| font-family: 'Space Grotesk', sans-serif; | |
| } | |
| .pulse-animation { | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { transform: scale(1); } | |
| 50% { transform: scale(1.05); } | |
| 100% { transform: scale(1); } | |
| } | |
| .upload-icon { | |
| transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .drop-zone--over .upload-icon { | |
| transform: translateY(-5px) scale(1.1); | |
| } | |
| .tick-animation { | |
| stroke-dasharray: 30; | |
| stroke-dashoffset: 30; | |
| animation: draw 0.5s forwards; | |
| } | |
| @keyframes draw { | |
| to { stroke-dashoffset: 0; } | |
| } | |
| .link-box { | |
| transition: all 0.2s ease; | |
| } | |
| .link-box:hover { | |
| box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 min-h-screen"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm sticky top-0 z-50"> | |
| <div class="container mx-auto px-4 py-4 flex justify-between items-center"> | |
| <div class="flex items-center space-x-3"> | |
| <i class="fas fa-paperclip text-blue-500 text-2xl"></i> | |
| <h1 class="text-2xl font-bold text-gray-800 title-font">SwiftShare</h1> | |
| </div> | |
| <nav class="hidden md:block"> | |
| <ul class="flex space-x-8"> | |
| <li><a href="#" class="text-gray-600 hover:text-blue-500 transition font-medium">Home</a></li> | |
| <li><a href="#" class="text-gray-600 hover:text-blue-500 transition font-medium">Features</a></li> | |
| <li><a href="#" class="text-gray-600 hover:text-blue-500 transition font-medium">Pricing</a></li> | |
| <li><a href="#" class="text-gray-600 hover:text-blue-500 transition font-medium">About</a></li> | |
| <li><a href="#" class="text-gray-600 hover:text-blue-500 transition font-medium">Contact</a></li> | |
| </ul> | |
| </nav> | |
| <div class="flex space-x-4"> | |
| <button class="px-4 py-2 text-blue-500 font-medium rounded-lg hover:bg-blue-50 transition hidden md:block">Login</button> | |
| <button class="px-4 py-2 bg-gradient-to-r from-blue-500 to-blue-600 text-white font-medium rounded-lg hover:from-blue-600 hover:to-blue-700 transition shadow-md hover:shadow-lg"> | |
| Sign Up Free | |
| </button> | |
| <button class="md:hidden text-gray-600"> | |
| <i class="fas fa-bars text-xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="container mx-auto px-4 py-12"> | |
| <!-- Hero Section --> | |
| <section class="max-w-6xl mx-auto text-center mb-16"> | |
| <div class="mb-8"> | |
| <span class="inline-block bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-sm font-semibold mb-4">⚡ NEW! Ultra-Fast Uploads</span> | |
| <h2 class="text-4xl md:text-5xl font-bold text-gray-800 mb-4 title-font leading-tight">Secure File Sharing <br class="hidden lg:block"> Made Incredibly Simple</h2> | |
| <p class="text-xl text-gray-600 max-w-2xl mx-auto">Upload in seconds, share with anyone, and track your files. All without registration.</p> | |
| </div> | |
| <div class="flex flex-col sm:flex-row justify-center gap-4 mt-8"> | |
| <button class="px-6 py-3 bg-gradient-to-r from-blue-500 to-blue-600 text-white font-medium rounded-lg hover:from-blue-600 hover:to-blue-700 transition shadow-md hover:shadow-lg flex items-center justify-center"> | |
| <i class="fas fa-cloud-upload-alt mr-2"></i> Upload Files Now | |
| </button> | |
| <button class="px-6 py-3 bg-white border border-gray-200 text-gray-800 font-medium rounded-lg hover:bg-gray-50 transition shadow-sm hover:shadow-md flex items-center justify-center"> | |
| <i class="fas fa-play-circle mr-2 text-blue-500"></i> Watch Demo | |
| </button> | |
| </div> | |
| <div class="flex justify-center gap-6 mt-12"> | |
| <div class="flex items-center"> | |
| <div class="flex -space-x-2"> | |
| <img src="https://randomuser.me/api/portraits/women/12.jpg" class="w-10 h-10 rounded-full border-2 border-white" alt="User"> | |
| <img src="https://randomuser.me/api/portraits/men/32.jpg" class="w-10 h-10 rounded-full border-2 border-white" alt="User"> | |
| <img src="https://randomuser.me/api/portraits/women/45.jpg" class="w-10 h-10 rounded-full border-2 border-white" alt="User"> | |
| </div> | |
| <p class="ml-3 text-gray-600 text-sm font-medium">Join <span class="text-blue-500">10,000+</span> happy users</p> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="flex items-center justify-center w-10 h-10 bg-yellow-100 rounded-full mr-2"> | |
| <i class="fas fa-crown text-yellow-500"></i> | |
| </div> | |
| <p class="text-gray-600 text-sm font-medium">Trusted by <span class="text-blue-500">500+</span> businesses</p> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Upload Section --> | |
| <section class="max-w-4xl mx-auto bg-white rounded-2xl shadow-xl overflow-hidden mb-16"> | |
| <div class="bg-gradient-to-r from-blue-500 to-blue-600 p-6 text-white"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <h3 class="text-xl font-semibold">Upload Your Files</h3> | |
| <p class="text-blue-100">Single or multiple files up to 10GB (for registered users)</p> | |
| </div> | |
| <div class="bg-white bg-opacity-20 px-3 py-1 rounded-full text-sm"> | |
| <i class="fas fa-bolt mr-1"></i> Fast Upload | |
| </div> | |
| </div> | |
| </div> | |
| <div id="drop-zone" class="drop-zone p-8 md:p-12 text-center cursor-pointer transition-all relative"> | |
| <div id="upload-content" class="space-y-4 relative z-10"> | |
| <div class="flex justify-center"> | |
| <div class="bg-white p-6 rounded-full shadow-lg upload-icon"> | |
| <svg width="48" height="48" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| <path d="M7 10V14H17V10H19V14C19 15.1 18.1 16 17 16H7C5.9 16 5 15.1 5 14V10H7ZM12 15L16 11H13V5H11V11H8L12 15ZM12 4C12.5523 4 13 4.44772 13 5C13 5.55228 12.5523 6 12 6C11.4477 6 11 5.55228 11 5C11 4.44772 11.4477 4 12 4Z" fill="#3B82F6"/> | |
| </svg> | |
| </div> | |
| </div> | |
| <h3 class="text-2xl font-semibold text-gray-800">Drag & Drop Files Here</h3> | |
| <p class="text-gray-500">or</p> | |
| <button id="select-files-btn" class="px-8 py-3 bg-gradient-to-r from-blue-500 to-blue-600 text-white font-medium rounded-lg hover:from-blue-600 hover:to-blue-700 transition shadow-md hover:shadow-lg pulse-animation"> | |
| <i class="fas fa-folder-open mr-2"></i> Browse Files | |
| </button> | |
| <p class="text-sm text-gray-500 mt-6">Supported files: images, documents, videos, audio (Max: 100MB for guests)</p> | |
| <input type="file" id="file-input" class="hidden" multiple> | |
| </div> | |
| <div id="upload-progress" class="hidden space-y-6 relative z-10"> | |
| <h3 class="text-2xl font-semibold text-gray-800"> | |
| <i class="fas fa-cloud-upload-alt text-blue-500 mr-2"></i> | |
| Uploading Files | |
| </h3> | |
| <div id="file-list" class="space-y-4"></div> | |
| <div class="flex justify-center gap-4"> | |
| <button id="cancel-upload-btn" class="px-6 py-3 bg-white border border-gray-200 text-gray-800 font-medium rounded-lg hover:bg-gray-50 transition shadow-sm hover:shadow-md"> | |
| <i class="fas fa-times-circle mr-2"></i> Cancel All | |
| </button> | |
| <button id="add-more-btn" class="px-6 py-3 bg-white border border-blue-200 text-blue-500 font-medium rounded-lg hover:bg-blue-50 transition shadow-sm hover:shadow-md"> | |
| <i class="fas fa-plus mr-2"></i> Add More Files | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Background gradient circles --> | |
| <div class="absolute top-0 left-0 w-full h-full overflow-hidden -z-0"> | |
| <div class="absolute -top-20 -left-20 w-64 h-64 bg-blue-100 rounded-full opacity-10"></div> | |
| <div class="absolute -bottom-20 -right-20 w-64 h-64 bg-blue-100 rounded-full opacity-10"></div> | |
| </div> | |
| </div> | |
| <div id="share-section" class="hidden p-6 bg-gray-50 border-t border-gray-200"> | |
| <h4 class="font-medium text-gray-800 mb-3">Your file is ready to share!</h4> | |
| <div class="flex flex-col md:flex-row gap-3"> | |
| <div class="flex-1 bg-white border border-gray-200 rounded-lg p-3 link-box"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-link text-blue-500 mr-2"></i> | |
| <p id="share-link" class="truncate text-blue-500 font-medium">https://swiftshare.com/s/f3r3j3-h3j4j3</p> | |
| <button id="copy-link-btn" class="ml-auto bg-blue-50 text-blue-500 p-2 rounded hover:bg-blue-100 transition"> | |
| <i class="far fa-copy"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="flex gap-3"> | |
| <button class="bg-white border border-gray-200 text-gray-700 p-2 rounded-lg hover:bg-gray-50 transition"> | |
| <i class="fas fa-envelope"></i> | |
| </button> | |
| <button class="bg-white border border-gray-200 text-gray-700 p-2 rounded-lg hover:bg-gray-50 transition"> | |
| <i class="fab fa-whatsapp"></i> | |
| </button> | |
| <button class="bg-white border border-gray-200 text-gray-700 p-2 rounded-lg hover:bg-gray-50 transition"> | |
| <i class="fab fa-telegram"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="mt-4 flex flex-wrap gap-3"> | |
| <button class="text-sm bg-blue-50 text-blue-500 px-3 py-1 rounded-full hover:bg-blue-100 transition flex items-center"> | |
| <i class="fas fa-qrcode mr-1"></i> QR Code | |
| </button> | |
| <button class="text-sm bg-blue-50 text-blue-500 px-3 py-1 rounded-full hover:bg-blue-100 transition flex items-center"> | |
| <i class="fas fa-eye mr-1"></i> Preview | |
| </button> | |
| <button class="text-sm bg-blue-50 text-blue-500 px-3 py-1 rounded-full hover:bg-blue-100 transition flex items-center"> | |
| <i class="fas fa-expand mr-1"></i> Fullscreen | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Stats Section --> | |
| <section class="max-w-6xl mx-auto bg-white rounded-2xl shadow-md p-8 mb-16"> | |
| <div class="grid grid-cols-2 md:grid-cols-4 gap-6"> | |
| <div class="text-center"> | |
| <div class="text-4xl font-bold text-blue-500 mb-2">10M+</div> | |
| <div class="text-gray-600">Files Shared</div> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-4xl font-bold text-blue-500 mb-2">500K+</div> | |
| <div class="text-gray-600">Daily Users</div> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-4xl font-bold text-blue-500 mb-2">99.9%</div> | |
| <div class="text-gray-600">Uptime</div> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-4xl font-bold text-blue-500 mb-2">100%</div> | |
| <div class="text-gray-600">Secure</div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Features Section --> | |
| <section class="max-w-6xl mx-auto mb-16"> | |
| <div class="text-center mb-12"> | |
| <h2 class="text-3xl font-bold text-gray-800 title-font mb-4">Why Choose SwiftShare?</h2> | |
| <p class="text-gray-600 max-w-2xl mx-auto">We make file sharing simple, fast and secure with advanced features for everyone</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> | |
| <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:border-blue-500 transition-all border border-transparent"> | |
| <div class="bg-blue-100 inline-flex p-4 rounded-xl mb-4"> | |
| <i class="fas fa-bolt text-blue-500 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold text-gray-800 mb-2">Ultra-Fast Transfer</h3> | |
| <p class="text-gray-600 mb-4">Our optimized servers ensure your files upload and download at blazing speeds.</p> | |
| <div class="flex items-center text-blue-500 font-medium"> | |
| <span>Learn more</span> | |
| <i class="fas fa-arrow-right ml-2"></i> | |
| </div> | |
| </div> | |
| <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:border-blue-500 transition-all border border-transparent"> | |
| <div class="bg-blue-100 inline-flex p-4 rounded-xl mb-4"> | |
| <i class="fas fa-lock text-blue-500 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold text-gray-800 mb-2">Bank-Level Security</h3> | |
| <p class="text-gray-600 mb-4">256-bit SSL encryption and automatic virus scanning for maximum protection.</p> | |
| <div class="flex items-center text-blue-500 font-medium"> | |
| <span>Learn more</span> | |
| <i class="fas fa-arrow-right ml-2"></i> | |
| </div> | |
| </div> | |
| <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:border-blue-500 transition-all border border-transparent"> | |
| <div class="bg-blue-100 inline-flex p-4 rounded-xl mb-4"> | |
| <i class="fas fa-expand text-blue-500 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold text-gray-800 mb-2">No File Size Limits</h3> | |
| <p class="text-gray-600 mb-4">Premium users can send files of any size with our smart chunking technology.</p> | |
| <div class="flex items-center text-blue-500 font-medium"> | |
| <span>Learn more</span> | |
| <i class="fas fa-arrow-right ml-2"></i> | |
| </div> | |
| </div> | |
| <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:border-blue-500 transition-all border border-transparent"> | |
| <div class="bg-blue-100 inline-flex p-4 rounded-xl mb-4"> | |
| <i class="fas fa-history text-blue-500 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold text-gray-800 mb-2">Extended Expiry</h3> | |
| <p class="text-gray-600 mb-4">Files stay available for up to 30 days instead of the usual 7 days for free users.</p> | |
| <div class="flex items-center text-blue-500 font-medium"> | |
| <span>Learn more</span> | |
| <i class="fas fa-arrow-right ml-2"></i> | |
| </div> | |
| </div> | |
| <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:border-blue-500 transition-all border border-transparent"> | |
| <div class="bg-blue-100 inline-flex p-4 rounded-xl mb-4"> | |
| <i class="fas fa-chart-line text-blue-500 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold text-gray-800 mb-2">Advanced Analytics</h3> | |
| <p class="text-gray-600 mb-4">Track downloads, views, and geographic data for every file you share.</p> | |
| <div class="flex items-center text-blue-500 font-medium"> | |
| <span>Learn more</span> | |
| <i class="fas fa-arrow-right ml-2"></i> | |
| </div> | |
| </div> | |
| <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:border-blue-500 transition-all border border-transparent"> | |
| <div class="bg-blue-100 inline-flex p-4 rounded-xl mb-4"> | |
| <i class="fas fa-users text-blue-500 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold text-gray-800 mb-2">Team Collaboration</h3> | |
| <p class="text-gray-600 mb-4">Share folders with your team and control access permissions easily.</p> | |
| <div class="flex items-center text-blue-500 font-medium"> | |
| <span>Learn more</span> | |
| <i class="fas fa-arrow-right ml-2"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- CTA Section --> | |
| <section class="max-w-6xl mx-auto bg-gradient-to-r from-blue-500 to-blue-600 rounded-2xl shadow-xl overflow-hidden mb-16"> | |
| <div class="p-8 md:p-12 text-center text-white"> | |
| <h2 class="text-3xl font-bold mb-4">Ready to share your files the smarter way?</h2> | |
| <p class="text-blue-100 max-w-2xl mx-auto mb-8">Join thousands of happy users who trust SwiftShare for their file sharing needs.</p> | |
| <div class="flex flex-col sm:flex-row justify-center gap-4"> | |
| <button class="px-8 py-3 bg-white text-blue-500 font-bold rounded-lg hover:bg-gray-100 transition shadow-md hover:shadow-lg"> | |
| <i class="fas fa-rocket mr-2"></i> Get Started Free | |
| </button> | |
| <button class="px-8 py-3 bg-white bg-opacity-20 text-white font-bold rounded-lg hover:bg-opacity-30 transition border border-white border-opacity-30"> | |
| <i class="fas fa-play mr-2"></i> Watch Demo | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Testimonials --> | |
| <section class="max-w-6xl mx-auto mb-16"> | |
| <div class="text-center mb-12"> | |
| <h2 class="text-3xl font-bold text-gray-800 title-font mb-4">What Our Users Say</h2> | |
| <p class="text-gray-600 max-w-2xl mx-auto">Don't just take our word for it - hear from our amazing community</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <div class="bg-white p-6 rounded-xl shadow-md"> | |
| <div class="flex items-center mb-4"> | |
| <div class="flex -space-x-2 mr-3"> | |
| <img src="https://randomuser.me/api/portraits/women/34.jpg" class="w-10 h-10 rounded-full border-2 border-white" alt="User"> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold text-gray-800">Sarah Johnson</h4> | |
| <p class="text-sm text-gray-500">Marketing Director</p> | |
| </div> | |
| </div> | |
| <p class="text-gray-600 mb-4">"SwiftShare has transformed how our team shares large files. The speed is incredible compared to other services we've used."</p> | |
| <div class="flex text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-md"> | |
| <div class="flex items-center mb-4"> | |
| <div class="flex -space-x-2 mr-3"> | |
| <img src="https://randomuser.me/api/portraits/men/56.jpg" class="w-10 h-10 rounded-full border-2 border-white" alt="User"> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold text-gray-800">Michael Chen</h4> | |
| <p class="text-sm text-gray-500">Freelance Designer</p> | |
| </div> | |
| </div> | |
| <p class="text-gray-600 mb-4">"As a designer, I frequently send large PSD files. SwiftShare makes the process effortless and my clients love the simple download process."</p> | |
| <div class="flex text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-md"> | |
| <div class="flex items-center mb-4"> | |
| <div class="flex -space-x-2 mr-3"> | |
| <img src="https://randomuser.me/api/portraits/women/62.jpg" class="w-10 h-10 rounded-full border-2 border-white" alt="User"> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold text-gray-800">Emma Rodriguez</h4> | |
| <p class="text-sm text-gray-500">NGO Coordinator</p> | |
| </div> | |
| </div> | |
| <p class="text-gray-600 mb-4">"We use SwiftShare to distribute educational materials to remote areas. The reliability and ease of use is unmatched."</p> | |
| <div class="flex text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star-half-alt"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Recent Uploads Section --> | |
| <section id="recent-uploads" class="max-w-6xl mx-auto mb-16 hidden"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold text-gray-800 title-font">Recent Uploads</h2> | |
| <button class="text-blue-500 hover:text-blue-700 font-medium"> | |
| <i class="fas fa-trash-alt mr-1"></i> Clear All | |
| </button> | |
| </div> | |
| <div id="recent-files" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4"></div> | |
| <div class="mt-8 text-center"> | |
| <button class="px-6 py-3 bg-white border border-gray-200 text-gray-800 font-medium rounded-lg hover:bg-gray-50 transition shadow-sm hover:shadow-md"> | |
| <i class="fas fa-history mr-2"></i> View Upload History | |
| </button> | |
| </div> | |
| </section> | |
| </main> | |
| <!-- Footer --> | |
| <footer class="bg-gray-900 text-gray-400 py-16"> | |
| <div class="container mx-auto px-4"> | |
| <div class="grid grid-cols-1 md:grid-cols-5 gap-12"> | |
| <div class="md:col-span-2"> | |
| <div class="flex items-center space-x-3 mb-4"> | |
| <i class="fas fa-paperclip text-blue-500 text-2xl"></i> | |
| <h3 class="text-xl font-bold text-white title-font">SwiftShare</h3> | |
| </div> | |
| <p class="mb-6">The fastest and most secure way to share files with anyone, anywhere.</p> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-twitter"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-facebook"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-instagram"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-linkedin"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-github"></i></a> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="text-white font-semibold mb-4">Product</h4> | |
| <ul class="space-y-3"> | |
| <li><a href="#" class="hover:text-white transition">Features</a></li> | |
| <li><a href="#" class="hover:text-white transition">Pricing</a></li> | |
| <li><a href="#" class="hover:text-white transition">API</a></li> | |
| <li><a href="#" class="hover:text-white transition">Integrations</a></li> | |
| <li><a href="#" class="hover:text-white transition">Changelog</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-white font-semibold mb-4">Company</h4> | |
| <ul class="space-y-3"> | |
| <li><a href="#" class="hover:text-white transition">About</a></li> | |
| <li><a href="#" class="hover:text-white transition">Careers</a></li> | |
| <li><a href="#" class="hover:text-white transition">Blog</a></li> | |
| <li><a href="#" class="hover:text-white transition">Press</a></li> | |
| <li><a href="#" class="hover:text-white transition">Contact</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-white font-semibold mb-4">Resources</h4> | |
| <ul class="space-y-3"> | |
| <li><a href="#" class="hover:text-white transition">Help Center</a></li> | |
| <li><a href="#" class="hover:text-white transition">Community</a></li> | |
| <li><a href="#" class="hover:text-white transition">Tutorials</a></li> | |
| <li><a href="#" class="hover:text-white transition">Webinars</a></li> | |
| <li><a href="#" class="hover:text-white transition">Download</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center"> | |
| <p>© 2023 SwiftShare. All rights reserved.</p> | |
| <div class="flex space-x-6 mt-4 md:mt-0"> | |
| <a href="#" class="hover:text-white transition">Privacy Policy</a> | |
| <a href="#" class="hover:text-white transition">Terms of Service</a> | |
| <a href="#" class="hover:text-white transition">Cookies</a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <!-- Toast Notification --> | |
| <div id="toast" class="fixed top-4 right-4 bg-green-500 text-white px-6 py-3 rounded-lg shadow-lg hidden toast z-50"> | |
| <div class="flex items-center space-x-3"> | |
| <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0"> | |
| <path d="M9 16.17L4.83 12L3.41 13.41L9 19L21 7L19.59 5.59L9 16.17Z" fill="white"/> | |
| </svg> | |
| <span id="toast-message" class="font-medium">File uploaded successfully!</span> | |
| </div> | |
| </div> | |
| <!-- QR Code Modal (Hidden by default) --> | |
| <div id="qr-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> | |
| <div class="bg-white rounded-2xl p-8 max-w-sm w-full mx-4"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h3 class="text-xl font-semibold text-gray-800">Scan to Download</h3> | |
| <button id="close-qr" class="text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="bg-gray-100 p-6 rounded-lg flex justify-center mb-6"> | |
| <!-- Placeholder for QR code - in a real app this would be generated --> | |
| <div class="w-40 h-40 bg-gray-300 flex items-center justify-center text-gray-600"> | |
| <i class="fas fa-qrcode text-4xl"></i> | |
| </div> | |
| </div> | |
| <div class="text-center"> | |
| <p class="text-gray-600 mb-4">Scan this QR code with your device's camera to download the file instantly.</p> | |
| <button class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition"> | |
| <i class="fas fa-download mr-2"></i>Direct Download | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const dropZone = document.getElementById('drop-zone'); | |
| const uploadContent = document.getElementById('upload-content'); | |
| const uploadProgress = document.getElementById('upload-progress'); | |
| const shareSection = document.getElementById('share-section'); | |
| const selectFilesBtn = document.getElementById('select-files-btn'); | |
| const fileInput = document.getElementById('file-input'); | |
| const fileList = document.getElementById('file-list'); | |
| const cancelUploadBtn = document.getElementById('cancel-upload-btn'); | |
| const addMoreBtn = document.getElementById('add-more-btn'); | |
| const recentUploads = document.getElementById('recent-uploads'); | |
| const recentFiles = document.getElementById('recent-files'); | |
| const toast = document.getElementById('toast'); | |
| const toastMessage = document.getElementById('toast-message'); | |
| const shareLink = document.getElementById('share-link'); | |
| const copyLinkBtn = document.getElementById('copy-link-btn'); | |
| const qrModal = document.getElementById('qr-modal'); | |
| const closeQr = document.getElementById('close-qr'); | |
| const qrButtons = document.querySelectorAll('[data-qr]'); | |
| let uploadsInProgress = []; | |
| // Prevent default drag behaviors | |
| ['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => { | |
| dropZone.addEventListener(eventName, preventDefaults, false); | |
| document.body.addEventListener(eventName, preventDefaults, false); | |
| }); | |
| // Highlight drop zone when item is dragged over it | |
| ['dragenter', 'dragover'].forEach(eventName => { | |
| dropZone.addEventListener(eventName, highlight, false); | |
| }); | |
| ['dragleave', 'drop'].forEach(eventName => { | |
| dropZone.addEventListener(eventName, unhighlight, false); | |
| }); | |
| // Handle dropped files | |
| dropZone.addEventListener('drop', handleDrop, false); | |
| // Handle selected files | |
| selectFilesBtn.addEventListener('click', () => fileInput.click()); | |
| fileInput.addEventListener('change', handleFiles); | |
| // Cancel upload | |
| cancelUploadBtn.addEventListener('click', cancelUpload); | |
| // Add more files | |
| addMoreBtn.addEventListener('click', () => fileInput.click()); | |
| // Copy share link | |
| copyLinkBtn.addEventListener('click', copyShareLink); | |
| // QR Code modal | |
| qrButtons.forEach(btn => { | |
| btn.addEventListener('click', showQrModal); | |
| }); | |
| closeQr.addEventListener('click', () => { | |
| qrModal.classList.add('hidden'); | |
| }); | |
| function preventDefaults(e) { | |
| e.preventDefault(); | |
| e.stopPropagation(); | |
| } | |
| function highlight() { | |
| dropZone.classList.add('drop-zone--over'); | |
| } | |
| function unhighlight() { | |
| dropZone.classList.remove('drop-zone--over'); | |
| } | |
| function handleDrop(e) { | |
| const dt = e.dataTransfer; | |
| const files = dt.files; | |
| handleFiles({ target: { files } }); | |
| } | |
| function handleFiles(e) { | |
| const files = e.target.files; | |
| if (files.length === 0) return; | |
| uploadContent.classList.add('hidden'); | |
| uploadProgress.classList.remove('hidden'); | |
| shareSection.classList.add('hidden'); | |
| fileList.innerHTML = ''; | |
| // Simulate share link generation | |
| setTimeout(() => { | |
| shareLink.textContent = `https://swiftshare.com/s/${generateRandomId()}`; | |
| }, 500); | |
| [...files].forEach(file => { | |
| if (file.size > 100 * 1024 * 1024) { | |
| showToast('File too large (max 100MB for guests)', 'error'); | |
| return; | |
| } | |
| const fileId = `file-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`; | |
| const fileItem = createFileItem(file, fileId); | |
| fileList.appendChild(fileItem); | |
| // Simulate upload progress | |
| const upload = { | |
| id: fileId, | |
| file: file, | |
| progress: 0, | |
| interval: null | |
| }; | |
| upload.interval = setInterval(() => { | |
| if (upload.progress >= 100) { | |
| clearInterval(upload.interval); | |
| // Show success state | |
| document.getElementById(`progress-${fileId}`).classList.remove('bg-blue-500'); | |
| document.getElementById(`progress-${fileId}`).classList.add('bg-green-500'); | |
| document.getElementById(`status-${fileId}`).innerHTML = '<i class="fas fa-check-circle text-green-500"></i> Uploaded'; | |
| // Add to recent uploads | |
| addToRecentUploads(file, fileId); | |
| showToast(`${file.name} uploaded successfully!`, 'success'); | |
| // Show share section when all uploads complete | |
| const allUploadsComplete = uploadsInProgress.every(u => u.progress >= 100); | |
| if (allUploadsComplete) { | |
| setTimeout(() => { | |
| shareSection.classList.remove('hidden'); | |
| }, 500); | |
| } | |
| } else { | |
| upload.progress += Math.random() * 10 + 5; | |
| if (upload.progress > 100) upload.progress = 100; | |
| document.getElementById(`progress-${fileId}`).style.width = `${upload.progress}%`; | |
| } | |
| }, 300 + Math.random() * 300); | |
| uploadsInProgress.push(upload); | |
| }); | |
| fileInput.value = ''; | |
| } | |
| function createFileItem(file, fileId) { | |
| const fileItem = document.createElement('div'); | |
| fileItem.className = 'file-item bg-gray-50 rounded-lg p-4 flex justify-between items-center'; | |
| const fileInfo = document.createElement('div'); | |
| fileInfo.className = 'flex items-center space-x-3'; | |
| // File icon based on type | |
| let iconClass = 'fas fa-file'; | |
| let iconColor = 'text-blue-500'; | |
| if (file.type.startsWith('image/')) { | |
| iconClass = 'fas fa-file-image'; | |
| iconColor = 'text-green-500'; | |
| } else if (file.type.startsWith('video/')) { | |
| iconClass = 'fas fa-file-video'; | |
| iconColor = 'text-red-500'; | |
| } else if (file.type.startsWith('audio/')) { | |
| iconClass = 'fas fa-file-audio'; | |
| iconColor = 'text-purple-500'; | |
| } else if (file.type === 'application/pdf') { | |
| iconClass = 'fas fa-file-pdf'; | |
| iconColor = 'text-red-500'; | |
| } else if (file.type.startsWith('application/msword') || file.type.includes('wordprocessingml')) { | |
| iconClass = 'fas fa-file-word'; | |
| iconColor = 'text-blue-600'; | |
| } else if (file.type.startsWith('application/vnd.ms-excel') || file.type.includes('spreadsheetml')) { | |
| iconClass = 'fas fa-file-excel'; | |
| iconColor = 'text-green-600'; | |
| } else if (file.type.startsWith('application/vnd.ms-powerpoint') || file.type.includes('presentationml')) { | |
| iconClass = 'fas fa-file-powerpoint'; | |
| iconColor = 'text-orange-500'; | |
| } else if (file.type.includes('zip') || file.type.includes('compressed')) { | |
| iconClass = 'fas fa-file-archive'; | |
| iconColor = 'text-yellow-500'; | |
| } | |
| fileInfo.innerHTML = ` | |
| <div class="bg-white p-2 rounded-lg shadow-sm"> | |
| <i class="${iconClass} ${iconColor}"></i> | |
| </div> | |
| <div class="min-w-0"> | |
| <p class="font-medium text-gray-800 truncate max-w-[180px]">${file.name}</p> | |
| <p class="text-xs text-gray-500">${formatFileSize(file.size)}</p> | |
| </div> | |
| `; | |
| const uploadStatus = document.createElement('div'); | |
| uploadStatus.className = 'text-right text-sm'; | |
| uploadStatus.id = `status-${fileId}`; | |
| uploadStatus.innerHTML = '<span class="text-blue-500">Uploading...</span>'; | |
| fileItem.appendChild(fileInfo); | |
| fileItem.appendChild(uploadStatus); | |
| const progressContainer = document.createElement('div'); | |
| progressContainer.className = 'w-full mt-2 bg-gray-200 rounded-full'; | |
| const progressBar = document.createElement('div'); | |
| progressBar.className = 'progress-bar bg-blue-500 rounded-full'; | |
| progressBar.id = `progress-${fileId}`; | |
| progressBar.style.width = '0%'; | |
| progressContainer.appendChild(progressBar); | |
| const container = document.createElement('div'); | |
| container.className = 'w-full'; | |
| container.appendChild(fileItem); | |
| container.appendChild(progressContainer); | |
| return container; | |
| } | |
| function addToRecentUploads(file, fileId) { | |
| recentUploads.classList.remove('hidden'); | |
| const fileItem = document.createElement('div'); | |
| fileItem.className = 'bg-white rounded-xl shadow-sm hover:shadow-md transition-shadow p-4'; | |
| let iconClass = 'fas fa-file'; | |
| let iconColor = 'text-blue-500'; | |
| let bgColor = 'bg-blue-100'; | |
| if (file.type.startsWith('image/')) { | |
| iconClass = 'fas fa-file-image'; | |
| iconColor = 'text-green-500'; | |
| bgColor = 'bg-green-100'; | |
| } else if (file.type.startsWith('video/')) { | |
| iconClass = 'fas fa-file-video'; | |
| iconColor = 'text-red-500'; | |
| bgColor = 'bg-red-100'; | |
| } else if (file.type.startsWith('audio/')) { | |
| iconClass = 'fas fa-file-audio'; | |
| iconColor = 'text-purple-500'; | |
| bgColor = 'bg-purple-100'; | |
| } else if (file.type === 'application/pdf') { | |
| iconClass = 'fas fa-file-pdf'; | |
| iconColor = 'text-red-500'; | |
| bgColor = 'bg-red-100'; | |
| } else if (file.type.startsWith('application/msword') || file.type.includes('wordprocessingml')) { | |
| iconClass = 'fas fa-file-word'; | |
| iconColor = 'text-blue-600'; | |
| bgColor = 'bg-blue-100'; | |
| } else if (file.type.startsWith('application/vnd.ms-excel') || file.type.includes('spreadsheetml')) { | |
| iconClass = 'fas fa-file-excel'; | |
| iconColor = 'text-green-600'; | |
| bgColor = 'bg-green-100'; | |
| } else if (file.type.startsWith('application/vnd.ms-powerpoint') || file.type.includes('presentationml')) { | |
| iconClass = 'fas fa-file-powerpoint'; | |
| iconColor = 'text-orange-500'; | |
| bgColor = 'bg-orange-100'; | |
| } | |
| fileItem.innerHTML = ` | |
| <div class="flex items-center space-x-3 mb-3"> | |
| <div class="${bgColor} p-3 rounded-lg"> | |
| <i class="${iconClass} ${iconColor}"></i> | |
| </div> | |
| <div class="flex-1 min-w-0"> | |
| <p class="font-medium text-gray-800 truncate">${file.name}</p> | |
| <p class="text-xs text-gray-500">${formatFileSize(file.size)} • ${getFileType(file.type)}</p> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <button class="px-3 py-1 bg-blue-500 text-white text-sm rounded-lg hover:bg-blue-600 transition shadow-sm flex items-center"> | |
| <i class="fas fa-link mr-1"></i> Copy | |
| </button> | |
| <span class="text-xs text-gray-500">Just now</span> | |
| </div> | |
| `; | |
| recentFiles.prepend(fileItem); | |
| // Add copy functionality to the button | |
| const copyBtn = fileItem.querySelector('button'); | |
| copyBtn.addEventListener('click', () => { | |
| navigator.clipboard.writeText(`https://swiftshare.com/s/${fileId}`); | |
| copyBtn.innerHTML = '<i class="fas fa-check mr-1"></i> Copied!'; | |
| copyBtn.classList.remove('bg-blue-500'); | |
| copyBtn.classList.add('bg-green-500'); | |
| setTimeout(() => { | |
| copyBtn.innerHTML = '<i class="fas fa-link mr-1"></i> Copy'; | |
| copyBtn.classList.remove('bg-green-500'); | |
| copyBtn.classList.add('bg-blue-500'); | |
| }, 2000); | |
| }); | |
| } | |
| function cancelUpload() { | |
| uploadsInProgress.forEach(upload => { | |
| clearInterval(upload.interval); | |
| document.getElementById(`progress-${upload.id}`).classList.remove('bg-blue-500'); | |
| document.getElementById(`progress-${upload.id}`).classList.add('bg-gray-400'); | |
| document.getElementById(`status-${upload.id}`).innerHTML = '<span class="text-gray-500"><i class="fas fa-times-circle mr-1"></i>Cancelled</span>'; | |
| }); | |
| uploadsInProgress = []; | |
| setTimeout(() => { | |
| uploadProgress.classList.add('hidden'); | |
| uploadContent.classList.remove('hidden'); | |
| }, 1000); | |
| } | |
| function copyShareLink() { | |
| navigator.clipboard.writeText(shareLink.textContent); | |
| copyLinkBtn.innerHTML = '<i class="fas fa-check"></i>'; | |
| setTimeout(() => { | |
| copyLinkBtn.innerHTML = '<i class="far fa-copy"></i>'; | |
| }, 2000); | |
| showToast('Link copied to clipboard!', 'success'); | |
| } | |
| function showQrModal() { | |
| qrModal.classList.remove('hidden'); | |
| } | |
| function showToast(message, type = 'success') { | |
| toastMessage.textContent = message; | |
| if (type === 'error') { | |
| toast.classList.remove('bg-green-500'); | |
| toast.classList.add('bg-red-500'); | |
| } else { | |
| toast.classList.remove('bg-red-500'); | |
| toast.classList.add('bg-green-500'); | |
| } | |
| toast.classList.remove('hidden'); | |
| setTimeout(() => { | |
| toast.classList.add('hidden'); | |
| }, 3000); | |
| } | |
| function formatFileSize(bytes) { | |
| if (bytes === 0) return '0 Bytes'; | |
| const k = 1024; | |
| const sizes = ['Bytes', 'KB', 'MB', 'GB']; | |
| const i = Math.floor(Math.log(bytes) / Math.log(k)); | |
| return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i]; | |
| } | |
| function getFileType(mimeType) { | |
| if (mimeType.startsWith('image/')) return 'Image'; | |
| if (mimeType.startsWith('video/')) return 'Video'; | |
| if (mimeType.startsWith('audio/')) return 'Audio'; | |
| if (mimeType.includes('word')) return 'Word'; | |
| if (mimeType.includes('excel')) return 'Excel'; | |
| if (mimeType.includes('presentation')) return 'PowerPoint'; | |
| if (mimeType.includes('pdf')) return 'PDF'; | |
| if (mimeType.includes('zip')) return 'ZIP'; | |
| if (mimeType.includes('text')) return 'Text'; | |
| return 'File'; | |
| } | |
| function generateRandomId() { | |
| return Math.random().toString(36).substr(2, 9) + '-' + Math.random().toString(36).substr(2, 5); | |
| } | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=z0m80z/try1" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body> | |
| </html> |