steenmachine68's picture
upload pptx
6ff67af verified
Raw History Blame Contribute Delete
3.82 kB
<!DOCTYPE html>
<html lang="en" class="h-full">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SlideShare 2.0 - Upload PPTX Files</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="components/navbar.js"></script>
<script src="components/upload-card.js"></script>
<script src="components/footer.js"></script>
</head>
<body class="bg-gray-50 min-h-full flex flex-col">
<custom-navbar></custom-navbar>
<main class="flex-grow container mx-auto px-4 py-12">
<div class="max-w-4xl mx-auto">
<h1 class="text-4xl font-bold text-gray-800 mb-2">Upload Your Presentation</h1>
<p class="text-gray-600 mb-8">Share your PowerPoint files with the world or keep them private in your cloud</p>
<custom-upload-card></custom-upload-card>
<div class="mt-12">
<h2 class="text-2xl font-semibold text-gray-800 mb-4">Recent Uploads</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<div class="bg-white rounded-lg shadow p-4 hover:shadow-md transition-shadow">
<div class="bg-blue-50 rounded-lg h-40 flex items-center justify-center mb-3">
<i data-feather="file" class="w-12 h-12 text-blue-500"></i>
</div>
<h3 class="font-medium text-gray-800">Quarterly Report.pptx</h3>
<p class="text-sm text-gray-500">Uploaded 2 days ago</p>
</div>
<div class="bg-white rounded-lg shadow p-4 hover:shadow-md transition-shadow">
<div class="bg-purple-50 rounded-lg h-40 flex items-center justify-center mb-3">
<i data-feather="file" class="w-12 h-12 text-purple-500"></i>
</div>
<h3 class="font-medium text-gray-800">Product Launch.pptx</h3>
<p class="text-sm text-gray-500">Uploaded 1 week ago</p>
</div>
<div class="bg-white rounded-lg shadow p-4 hover:shadow-md transition-shadow">
<div class="bg-green-50 rounded-lg h-40 flex items-center justify-center mb-3">
<i data-feather="file" class="w-12 h-12 text-green-500"></i>
</div>
<h3 class="font-medium text-gray-800">Marketing Strategy.pptx</h3>
<p class="text-sm text-gray-500">Uploaded 3 weeks ago</p>
</div>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script>
feather.replace();
// Handle file upload
document.addEventListener('DOMContentLoaded', () => {
const fileInput = document.getElementById('file-upload');
const fileLabel = document.getElementById('file-label');
fileInput.addEventListener('change', (e) => {
if (e.target.files.length > 0) {
fileLabel.textContent = e.target.files[0].name;
document.getElementById('upload-button').classList.remove('opacity-50', 'cursor-not-allowed');
document.getElementById('upload-button').classList.add('hover:bg-blue-600');
}
});
});
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>