File size: 2,516 Bytes
801b8b3 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PyBrowse - Secure Python Browser</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="https://accounts.google.com/gsi/client" async defer></script>
</head>
<body class="bg-gray-100 min-h-screen flex flex-col">
<custom-navbar></custom-navbar>
<main class="flex-grow flex items-center justify-center p-4">
<div class="w-full max-w-md bg-white rounded-xl shadow-lg p-8 text-center">
<div class="mb-6">
<i data-feather="globe" class="w-16 h-16 mx-auto text-indigo-600"></i>
<h1 class="text-3xl font-bold mt-4 text-gray-800">Welcome to PyBrowse</h1>
<p class="text-gray-600 mt-2">A secure, minimalist Chromium browser built with Python</p>
</div>
<div id="g_id_onload"
data-client_id="YOUR_GOOGLE_CLIENT_ID.apps.googleusercontent.com"
data-context="signin"
data-ux_mode="popup"
data-callback="handleCredentialResponse"
data-auto_prompt="false">
</div>
<div class="g_id_signin"
data-type="standard"
data-shape="rectangular"
data-theme="outline"
data-text="signin_with"
data-size="large"
data-logo_alignment="left"
data-width="300">
</div>
<p class="text-sm text-gray-500 mt-4">By signing in, you agree to our Terms of Service</p>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
function handleCredentialResponse(response) {
// Handle the Google Sign-In response
console.log("ID Token: " + response.credential);
// Here you would typically verify the token with your backend
window.location.href = "/browser.html";
}
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html> |