BCards/src/BCards.Web/Views/AgeGate/Index.cshtml
Ricardo Carneiro b9714598b5
All checks were successful
BCards Multi-Tenant Deployment Pipeline / Run Tests (push) Successful in 10s
BCards Multi-Tenant Deployment Pipeline / PR Validation (push) Has been skipped
BCards Multi-Tenant Deployment Pipeline / Run Tests (pull_request) Successful in 5s
BCards Multi-Tenant Deployment Pipeline / PR Validation (pull_request) Successful in 1s
BCards Multi-Tenant Deployment Pipeline / Build and Push Image (push) Successful in 9m22s
BCards Multi-Tenant Deployment Pipeline / Build and Push Image (pull_request) Has been skipped
BCards Multi-Tenant Deployment Pipeline / Deploy bcards.site (pull_request) Has been skipped
BCards Multi-Tenant Deployment Pipeline / Deploy spicylinks.site (pull_request) Has been skipped
BCards Multi-Tenant Deployment Pipeline / Deploy luslinks.site (pull_request) Has been skipped
BCards Multi-Tenant Deployment Pipeline / Deploy to Release Swarm (ARM) (pull_request) Has been skipped
BCards Multi-Tenant Deployment Pipeline / Cleanup Old Resources (pull_request) Has been skipped
BCards Multi-Tenant Deployment Pipeline / Deploy bcards.site (push) Has been skipped
BCards Multi-Tenant Deployment Pipeline / Deploy spicylinks.site (push) Has been skipped
BCards Multi-Tenant Deployment Pipeline / Deploy luslinks.site (push) Has been skipped
BCards Multi-Tenant Deployment Pipeline / Deployment Summary (pull_request) Successful in 0s
BCards Multi-Tenant Deployment Pipeline / Deploy to Release Swarm (ARM) (push) Successful in 2m11s
BCards Multi-Tenant Deployment Pipeline / Cleanup Old Resources (push) Has been skipped
BCards Multi-Tenant Deployment Pipeline / Deployment Summary (push) Successful in 1s
feat: multitenant
2026-03-29 18:36:07 -03:00

74 lines
2.6 KiB
Plaintext

@inject Microsoft.Extensions.Options.IOptions<BCards.Web.Configuration.TenantSettings> TenantConfig
@{
var tenant = TenantConfig.Value;
ViewData["Title"] = "Verificação de Idade";
Layout = null;
}
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@tenant.SiteName — Verificação de Idade</title>
<link rel="stylesheet" href="~/lib/bootstrap/css/bootstrap.min.css" />
<style>
body {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.age-gate-card {
max-width: 440px;
width: 100%;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.15);
border-radius: 16px;
backdrop-filter: blur(10px);
color: #fff;
}
.btn-confirm {
background: linear-gradient(135deg, #e94560, #c23152);
border: none;
padding: 12px 32px;
font-size: 1.1rem;
border-radius: 8px;
color: #fff;
width: 100%;
}
.btn-confirm:hover { opacity: 0.9; color: #fff; }
.btn-deny { color: rgba(255,255,255,0.5); background: none; border: none; width: 100%; }
.btn-deny:hover { color: rgba(255,255,255,0.8); }
</style>
</head>
<body>
<div class="age-gate-card p-5 text-center mx-3">
<h1 class="fs-1 mb-2">🔞</h1>
<h2 class="fw-bold mb-1">@tenant.SiteName</h2>
<p class="text-white-50 mb-4">Este site contém conteúdo exclusivo para adultos.</p>
<p class="mb-4">
Você confirma que tem <strong>18 anos ou mais</strong> e concorda com os
<a href="/Legal/Terms" class="text-white-50">Termos de Uso</a>?
</p>
<form asp-controller="AgeGate" asp-action="Confirm" method="post">
@Html.AntiForgeryToken()
<input type="hidden" name="returnUrl" value="@ViewBag.ReturnUrl" />
<button type="submit" class="btn btn-confirm mb-3">
✅ Sim, tenho 18 anos ou mais
</button>
</form>
<form asp-controller="AgeGate" asp-action="Deny" method="post">
@Html.AntiForgeryToken()
<button type="submit" class="btn btn-deny">
Não, tenho menos de 18 anos
</button>
</form>
</div>
<script src="~/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
</html>