videopost-wizard-pro / index.html
marcomail's picture
la pubblicazione fallisce perchè non c'è autenticazione su facebook e instagram. A questo punto metti un bottone che mi permetta di fare prima l'autenticazione, e se necessario mi chieda tutto quello che mi debba chiedere per essere autenticato e poi poter pubblicare il video precedentemente scaricato
0b6a6b9 verified
Raw History Blame Contribute Delete
6.47 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VideoPost Wizard - Share Videos Everywhere</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/footer.js"></script>
<script src="components/social-card.js"></script>
</head>
<body class="bg-gray-50 min-h-screen flex flex-col">
<custom-navbar></custom-navbar>
<main class="flex-grow container mx-auto px-4 py-8">
<div class="max-w-4xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6">
<h1 class="text-3xl font-bold text-gray-800 mb-6">VideoPost Wizard</h1>
<p class="text-gray-600 mb-8">Paste a YouTube link below and we'll handle the rest!</p>
<div class="space-y-6">
<div class="space-y-2">
<label for="youtube-url" class="block text-sm font-medium text-gray-700">YouTube Video URL</label>
<div class="flex">
<input type="url" id="youtube-url" placeholder="https://www.youtube.com/watch?v=..."
class="flex-1 rounded-l-lg border-gray-300 focus:border-indigo-500 focus:ring-indigo-500">
<button id="fetch-btn" class="bg-indigo-600 text-white px-4 py-2 rounded-r-lg hover:bg-indigo-700 flex items-center">
<i data-feather="download" class="mr-2"></i> Fetch
</button>
</div>
</div>
<div class="bg-gray-100 p-4 rounded-lg hidden" id="video-preview-container">
<h3 class="text-lg font-medium text-gray-800 mb-3">Video Preview</h3>
<div class="aspect-w-16 aspect-h-9 mb-4">
<iframe id="video-preview" class="w-full h-64 rounded-lg" frameborder="0" allowfullscreen></iframe>
</div>
<div id="video-info" class="text-gray-700"></div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="space-y-4">
<div class="border-b pb-4">
<h2 class="text-xl font-semibold text-gray-800">Facebook Settings</h2>
</div>
<div class="space-y-4">
<div>
<label class="flex items-center">
<input type="checkbox" id="post-to-facebook" class="rounded text-indigo-600">
<span class="ml-2 text-gray-700">Post to Facebook</span>
</label>
</div>
<div>
<button id="fb-auth-btn" class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 flex items-center">
<i data-feather="facebook" class="mr-2"></i> Authenticate Facebook
</button>
<div id="fb-auth-status" class="mt-2 text-sm text-gray-600 hidden">
<i data-feather="check-circle" class="text-green-500 inline mr-1"></i>
<span>Authenticated</span>
</div>
</div>
</div>
</div>
<div class="space-y-4">
<div class="border-b pb-4">
<h2 class="text-xl font-semibold text-gray-800">Instagram Settings</h2>
</div>
<div class="space-y-4">
<div>
<label class="flex items-center">
<input type="checkbox" id="post-to-instagram" class="rounded text-indigo-600">
<span class="ml-2 text-gray-700">Post to Instagram</span>
</label>
</div>
<div>
<button id="ig-auth-btn" class="px-4 py-2 bg-gradient-to-r from-purple-500 to-pink-500 text-white rounded-md hover:opacity-90 flex items-center">
<i data-feather="instagram" class="mr-2"></i> Authenticate Instagram
</button>
<div id="ig-auth-status" class="mt-2 text-sm text-gray-600 hidden">
<i data-feather="check-circle" class="text-green-500 inline mr-1"></i>
<span>Authenticated</span>
</div>
</div>
</div>
</div>
</div>
<div>
<label for="post-caption" class="block text-sm font-medium text-gray-700">Caption</label>
<textarea id="post-caption" rows="4"
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm"
placeholder="Write something to accompany your video..."></textarea>
</div>
<div class="flex justify-end space-x-4">
<button id="cancel-btn" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50">
Cancel
</button>
<button id="post-btn" class="px-6 py-2 border border-transparent rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700">
<i data-feather="share-2" class="inline mr-2"></i> Post Now
</button>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>