75 lines
3.1 KiB
Handlebars
75 lines
3.1 KiB
Handlebars
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Consent Page</title>
|
||
|
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
||
|
<style>
|
||
|
.video-bg {
|
||
|
position: fixed;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
min-width: 100%;
|
||
|
min-height: 100%;
|
||
|
z-index: -1;
|
||
|
}
|
||
|
.overlay {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
background: rgba(0, 0, 0, 0.5);
|
||
|
z-index: -1;
|
||
|
}
|
||
|
@media (max-width: 640px) {
|
||
|
.video-bg, .overlay {
|
||
|
display: none;
|
||
|
}
|
||
|
.consent-prompt {
|
||
|
margin-left: 0;
|
||
|
width: 100%;
|
||
|
max-width: none;
|
||
|
position: static;
|
||
|
height: 100vh;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
justify-content: center;
|
||
|
}
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body class="relative flex items-center justify-start min-h-screen">
|
||
|
<video autoplay muted loop class="video-bg">
|
||
|
<source src="/assets/login.webm" type="video/webm">
|
||
|
Your browser does not support the video tag.
|
||
|
</video>
|
||
|
<div class="overlay"></div>
|
||
|
<div class="relative bg-gray-800 p-8 rounded-lg shadow-lg w-full max-w-md ml-16 consent-prompt">
|
||
|
<div class="flex items-center justify-center mb-4">
|
||
|
<img src="{{client.clientLogo}}" alt="Client Logo" class="w-16 h-16 rounded-full">
|
||
|
</div>
|
||
|
<h2 class="text-2xl font-bold mb-2 text-white text-center">{{client.clientName}} wants to access your account</h2>
|
||
|
<p class="text-gray-400 mb-6 text-center">This application will be able to:</p>
|
||
|
<ul class="list-disc list-inside text-gray-400 mb-6">
|
||
|
{{#each scopes}}
|
||
|
<li>{{this}}</li>
|
||
|
{{/each}}
|
||
|
</ul>
|
||
|
<div class="flex space-x-4">
|
||
|
<form action="/interaction/{{uid}}/consent" method="POST" class="w-1/2">
|
||
|
<button type="submit" class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500">Allow</button>
|
||
|
</form>
|
||
|
<form action="/interaction/{{uid}}/deny" method="POST" class="w-1/2">
|
||
|
<button type="submit" class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500">Deny</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
<div class="mt-6 text-sm text-center text-gray-400">
|
||
|
<img src="{{user.avatar}}" alt="User Avatar" class="w-10 h-10 rounded-full mx-auto mb-2">
|
||
|
<span>{{user.displayName}}</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|