All checks were successful
BCards Deployment Pipeline / Run Tests (push) Successful in 4s
BCards Deployment Pipeline / PR Validation (push) Has been skipped
BCards Deployment Pipeline / Build and Push Image (push) Successful in 15m22s
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Successful in 1m54s
BCards Deployment Pipeline / Deploy to Test (x86 - Local) (push) Has been skipped
BCards Deployment Pipeline / Cleanup Old Resources (push) Has been skipped
BCards Deployment Pipeline / Deployment Summary (push) Successful in 0s
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
360 lines
15 KiB
Plaintext
360 lines
15 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="pt-BR">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>@(ViewData["Title"] ?? "BCards - Crie sua bios / links Profissional")</title>
|
|
|
|
@if (ViewBag.SeoSettings != null)
|
|
{
|
|
var seo = ViewBag.SeoSettings as BCards.Web.Models.SeoSettings;
|
|
<meta name="description" content="@seo?.Description" />
|
|
<meta name="keywords" content="@string.Join(", ", seo?.Keywords ?? new List<string>())" />
|
|
<link rel="canonical" href="@seo?.CanonicalUrl" />
|
|
|
|
<!-- Open Graph -->
|
|
<meta property="og:title" content="@seo?.OgTitle" />
|
|
<meta property="og:description" content="@seo?.OgDescription" />
|
|
<meta property="og:image" content="@seo?.OgImage" />
|
|
<meta property="og:url" content="@seo?.CanonicalUrl" />
|
|
<meta property="og:type" content="profile" />
|
|
|
|
<!-- Twitter Card -->
|
|
<meta name="twitter:card" content="@seo?.TwitterCard" />
|
|
<meta name="twitter:title" content="@seo?.OgTitle" />
|
|
<meta name="twitter:description" content="@seo?.OgDescription" />
|
|
<meta name="twitter:image" content="@seo?.OgImage" />
|
|
}
|
|
else
|
|
{
|
|
<meta name="description" content="Crie sua página profissional com links organizados. A melhor alternativa para ter sua bio / links. Criada para profissionais e empresas no Brasil." />
|
|
<meta name="keywords" content="linktree, links, página profissional, perfil, redes sociais, cartão digital, bio, links, página simples" />
|
|
}
|
|
|
|
@await RenderSectionAsync("Head", required: false)
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<link rel="stylesheet" href="~/lib/bootstrap/css/bootstrap.min.css" />
|
|
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
|
<link rel="icon" type="image/x-icon" href="~/favicon.ico" />
|
|
|
|
@await RenderSectionAsync("Styles", required: false)
|
|
|
|
<!-- Estilos para menu ativo e barra de carregamento -->
|
|
<style>
|
|
/* Barra de carregamento moderna */
|
|
#loading-bar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 0%;
|
|
height: 3px;
|
|
background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
|
|
background-size: 200% 100%;
|
|
animation: loading-shimmer 1.5s infinite;
|
|
z-index: 9999;
|
|
transition: width 0.3s ease, opacity 0.3s ease;
|
|
opacity: 0;
|
|
}
|
|
|
|
#loading-bar.active {
|
|
opacity: 1;
|
|
}
|
|
|
|
@@keyframes loading-shimmer {
|
|
0% { background-position: -200% 0; }
|
|
100% { background-position: 200% 0; }
|
|
}
|
|
|
|
/* Destacar item ativo do menu */
|
|
.nav-link.active {
|
|
background-color: rgba(0, 123, 255, 0.1) !important;
|
|
border-radius: 6px !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
/* Para homepage (fundo azul) */
|
|
.bg-home-blue .nav-link.active {
|
|
background-color: rgba(255, 255, 255, 0.2) !important;
|
|
}
|
|
|
|
/* Smooth transition para links */
|
|
.nav-link {
|
|
transition: all 0.2s ease;
|
|
padding: 8px 12px !important;
|
|
margin: 0 2px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
background-color: rgba(0, 123, 255, 0.05);
|
|
}
|
|
|
|
.bg-home-blue .nav-link:hover {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Suavizar transições de página */
|
|
main {
|
|
opacity: 1;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
main.page-loading {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Estilos do Banner de Cookies */
|
|
#cookie-consent-banner {
|
|
display: none; /* Oculto por padrão */
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background-color: #212529;
|
|
color: #fff;
|
|
padding: 15px;
|
|
z-index: 1050;
|
|
box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- Barra de carregamento -->
|
|
<div id="loading-bar"></div>
|
|
|
|
<header>
|
|
<nav class="navbar navbar-expand-lg navbar-toggleable-sm navbar-light fixed-top @(ViewBag.IsHomePage == true ? "bg-home-blue" : "bg-dashboard")" id="mainNavbar">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand fw-bold @(ViewBag.IsHomePage == true ? "text-white" : "text-primary")"
|
|
asp-area="" asp-controller="Home" asp-action="Index">
|
|
BCards
|
|
</a>
|
|
|
|
<button class="navbar-toggler @(ViewBag.IsHomePage == true ? "navbar-dark" : "")"
|
|
type="button"
|
|
data-bs-toggle="collapse"
|
|
data-bs-target="#navbarSupportedContent"
|
|
aria-controls="navbarSupportedContent"
|
|
aria-expanded="false"
|
|
aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
|
<li class="nav-item">
|
|
<a class="nav-link @(ViewBag.IsHomePage == true ? "text-white" : "text-dark")"
|
|
asp-area="" asp-controller="Home" asp-action="Index">
|
|
Início
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link @(ViewBag.IsHomePage == true ? "text-white" : "text-dark")"
|
|
asp-area="" asp-controller="Home" asp-action="Pricing">
|
|
Planos
|
|
</a>
|
|
</li>
|
|
|
|
@* Menu de Moderação via ViewComponent *@
|
|
@await Component.InvokeAsync("ModerationMenu")
|
|
</ul>
|
|
|
|
<ul class="navbar-nav">
|
|
@if (User.Identity?.IsAuthenticated == true)
|
|
{
|
|
<li class="nav-item">
|
|
<a class="nav-link @(ViewBag.IsHomePage == true ? "text-white" : "text-dark")"
|
|
asp-area="" asp-controller="Admin" asp-action="Dashboard">
|
|
<i class="fas fa-user me-1"></i>Dashboard
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<form asp-area="" asp-controller="Auth" asp-action="Logout" method="post" id="logoutForm" class="d-inline">
|
|
@Html.AntiForgeryToken()
|
|
<a href="#" onclick="document.getElementById('logoutForm').submit(); return false;" class="nav-link @(ViewBag.IsHomePage == true ? "text-white" : "text-dark")">
|
|
<i class="fas fa-sign-out-alt me-1"></i>Sair
|
|
</a>
|
|
</form>
|
|
</li>
|
|
}
|
|
else
|
|
{
|
|
<li class="nav-item">
|
|
<a class="nav-link @(ViewBag.IsHomePage == true ? "text-white" : "text-dark")"
|
|
asp-area="" asp-controller="Auth" asp-action="Login">
|
|
<i class="fas fa-sign-in-alt me-1"></i>Entrar
|
|
</a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<div class="container-fluid">
|
|
<main role="main" class="pb-3">
|
|
@RenderBody()
|
|
</main>
|
|
</div>
|
|
|
|
<!-- Banner de Consentimento de Cookies -->
|
|
<div id="cookie-consent-banner">
|
|
<div class="container d-flex justify-content-between align-items-center">
|
|
<p class="mb-0 small">Nós usamos cookies para melhorar sua experiência. Ao continuar a navegar, você concorda com a nossa <a asp-controller="Legal" asp-action="Privacy" class="text-white">Política de Privacidade</a>.</p>
|
|
<button id="accept-cookies" class="btn btn-primary btn-sm ms-3">Aceitar</button>
|
|
</div>
|
|
</div>
|
|
|
|
</main>
|
|
</div>
|
|
|
|
<footer class="border-top footer text-muted bg-light">
|
|
<div class="container py-4">
|
|
<div class="row">
|
|
<div class="col-lg-4 mb-3 mb-lg-0">
|
|
<h5 class="fw-bold">BCards</h5>
|
|
<p class="small text-muted">© @DateTime.Now.Year - Todos os direitos reservados.</p>
|
|
</div>
|
|
<div class="col-6 col-lg-2 offset-lg-1 mb-3">
|
|
<h5 class="fw-bold">Legal</h5>
|
|
<ul class="list-unstyled">
|
|
<li><a asp-controller="Legal" asp-action="Privacy" class="text-muted text-decoration-none">Privacidade</a></li>
|
|
<li><a asp-controller="Legal" asp-action="Terms" class="text-muted text-decoration-none">Termos de Uso</a></li>
|
|
<li><a asp-controller="Legal" asp-action="CommunityGuidelines" class="text-muted text-decoration-none">Diretrizes</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-6 col-lg-2 mb-3">
|
|
<h5 class="fw-bold">Empresa</h5>
|
|
<ul class="list-unstyled">
|
|
<li><a href="#" class="text-muted text-decoration-none">Sobre nós</a></li>
|
|
<li><a href="mailto:suporte@bcards.site" class="text-muted text-decoration-none">Contato</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-lg-3">
|
|
<h5 class="fw-bold">Crie sua página</h5>
|
|
<p class="small text-muted">Sua presença online, simplificada. Crie sua página profissional em minutos.</p>
|
|
@if (User.Identity?.IsAuthenticated == true)
|
|
{
|
|
<a asp-controller="Admin" asp-action="Dashboard" class="btn btn-primary btn-sm">Comece Agora</a>
|
|
}
|
|
else
|
|
{
|
|
<a asp-controller="Auth" asp-action="Login" class="btn btn-primary btn-sm">Comece Agora</a>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<script src="~/lib/jquery/jquery.min.js"></script>
|
|
<script src="~/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
<script src="~/js/site.js" asp-append-version="true"></script>
|
|
<script src="~/js/cookie-consent.js" asp-append-version="true"></script>
|
|
<script src="~/js/email-handler.js" asp-append-version="true"></script>
|
|
|
|
<!-- Scripts para menu ativo e barra de carregamento -->
|
|
<script>
|
|
$(document).ready(function() {
|
|
// Destacar item ativo do menu baseado na URL atual
|
|
highlightActiveMenuItem();
|
|
|
|
// Interceptar cliques em links de navegação
|
|
setupLoadingBar();
|
|
});
|
|
|
|
function highlightActiveMenuItem() {
|
|
var currentPath = window.location.pathname.toLowerCase();
|
|
var currentController = '@ViewContext.RouteData.Values["Controller"]?.ToString()?.ToLower()';
|
|
var currentAction = '@ViewContext.RouteData.Values["Action"]?.ToString()?.ToLower()';
|
|
|
|
// Remover classes ativas existentes
|
|
$('.nav-link').removeClass('active');
|
|
|
|
// Lógica para destacar o item correto
|
|
$('.nav-link').each(function() {
|
|
var link = $(this);
|
|
var href = link.attr('href');
|
|
|
|
if (href) {
|
|
var linkPath = href.toLowerCase();
|
|
|
|
// Verificar correspondência exata primeiro
|
|
if (currentPath === linkPath ||
|
|
(currentPath === '/' && linkPath.includes('/home')) ||
|
|
(currentController === 'home' && currentAction === 'index' && linkPath.includes('/home')) ||
|
|
(currentController === 'home' && currentAction === 'pricing' && linkPath.includes('pricing')) ||
|
|
(currentController === 'admin' && linkPath.includes('dashboard')) ||
|
|
(currentController === 'moderation' && linkPath.includes('moderation')) ||
|
|
(currentController === 'auth' && linkPath.includes('login')) ||
|
|
(currentController === 'payment' && linkPath.includes('managesubscription'))) {
|
|
link.addClass('active');
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function setupLoadingBar() {
|
|
var loadingBar = $('#loading-bar');
|
|
|
|
// Interceptar todos os cliques em links que navegam para outras páginas
|
|
$('a[href]:not([href^="#"]):not([href^="javascript:"]):not([target="_blank"]):not(.no-loading)').click(function(e) {
|
|
var href = $(this).attr('href');
|
|
|
|
// Ignorar links externos, downloads, ou âncoras
|
|
if (href && !href.startsWith('http') && !href.startsWith('mailto:') && !href.startsWith('tel:')) {
|
|
showLoadingBar();
|
|
}
|
|
});
|
|
|
|
// Interceptar submissão de formulários
|
|
$('form:not(.no-loading)').submit(function() {
|
|
showLoadingBar();
|
|
});
|
|
|
|
// Ocultar barra quando página carrega
|
|
$(window).on('load', function() {
|
|
hideLoadingBar();
|
|
});
|
|
|
|
// Ocultar barra em caso de erro ou volta do histórico
|
|
$(window).on('pageshow', function() {
|
|
hideLoadingBar();
|
|
});
|
|
}
|
|
|
|
function showLoadingBar() {
|
|
var loadingBar = $('#loading-bar');
|
|
loadingBar.addClass('active').css('width', '0%');
|
|
|
|
// Animação progressiva
|
|
setTimeout(function() { loadingBar.css('width', '20%'); }, 100);
|
|
setTimeout(function() { loadingBar.css('width', '40%'); }, 300);
|
|
setTimeout(function() { loadingBar.css('width', '60%'); }, 600);
|
|
setTimeout(function() { loadingBar.css('width', '80%'); }, 1000);
|
|
|
|
// Adicionar efeito de loading ao conteúdo
|
|
$('main').addClass('page-loading');
|
|
}
|
|
|
|
function hideLoadingBar() {
|
|
var loadingBar = $('#loading-bar');
|
|
loadingBar.css('width', '100%');
|
|
|
|
setTimeout(function() {
|
|
loadingBar.removeClass('active').css('width', '0%');
|
|
$('main').removeClass('page-loading');
|
|
}, 200);
|
|
}
|
|
|
|
// Fallback para esconder loading se demorar muito (mais de 5 segundos)
|
|
setTimeout(function() {
|
|
hideLoadingBar();
|
|
}, 5000);
|
|
</script>
|
|
|
|
@await RenderSectionAsync("Scripts", required: false)
|
|
</body>
|
|
</html>
|