init commit
This commit is contained in:
251
resources/views/layouts/app.blade.php
Normal file
251
resources/views/layouts/app.blade.php
Normal file
@@ -0,0 +1,251 @@
|
||||
{{--
|
||||
Main Application Layout
|
||||
Professional Resume Builder - Laravel Application
|
||||
|
||||
@author David Valera Melendez <david@valera-melendez.de>
|
||||
@created 2025-08-08
|
||||
@location Made in Germany 🇩🇪
|
||||
--}}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" data-bs-theme="light">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<meta name="description" content="{{ $description ?? 'Professional Resume Builder - Create stunning CVs with our enterprise-grade platform' }}">
|
||||
<meta name="author" content="David Valera Melendez">
|
||||
<meta name="keywords" content="resume, cv, builder, professional, career, job, employment">
|
||||
|
||||
<title>{{ $title ?? 'Professional Resume Builder' }} | David Valera Melendez</title>
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
|
||||
<link rel="apple-touch-icon" href="{{ asset('apple-touch-icon.png') }}">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Bootstrap Icons -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
||||
|
||||
<!-- Styles -->
|
||||
@vite(['resources/sass/app.scss'])
|
||||
@stack('styles')
|
||||
|
||||
<!-- Scripts -->
|
||||
<script>
|
||||
window.Laravel = {
|
||||
csrfToken: '{{ csrf_token() }}',
|
||||
user: @auth {{ Js::from(auth()->user()) }} @else null @endauth
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body class="d-flex flex-column min-vh-100">
|
||||
<!-- Skip to main content for accessibility -->
|
||||
<a href="#main-content" class="visually-hidden-focusable btn btn-primary position-absolute top-0 start-0 z-3">
|
||||
Skip to main content
|
||||
</a>
|
||||
|
||||
<!-- Navigation Header -->
|
||||
@auth
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary shadow-sm">
|
||||
<div class="container-fluid">
|
||||
<!-- Brand -->
|
||||
<a class="navbar-brand d-flex align-items-center" href="{{ route('dashboard') }}">
|
||||
<i class="bi bi-file-earmark-text-fill me-2 fs-4"></i>
|
||||
<span class="fw-bold">Resume Builder</span>
|
||||
</a>
|
||||
|
||||
<!-- Mobile Toggle -->
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<!-- Navigation Menu -->
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav me-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {{ request()->routeIs('dashboard') ? 'active' : '' }}" href="{{ route('dashboard') }}">
|
||||
<i class="bi bi-speedometer2 me-1"></i>
|
||||
Dashboard
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {{ request()->routeIs('resume-builder.*') ? 'active' : '' }}" href="{{ route('resume-builder.index') }}">
|
||||
<i class="bi bi-pencil-square me-1"></i>
|
||||
Resume Builder
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {{ request()->routeIs('templates.*') ? 'active' : '' }}" href="{{ route('templates.index') }}">
|
||||
<i class="bi bi-collection me-1"></i>
|
||||
Templates
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- User Menu -->
|
||||
<div class="dropdown">
|
||||
<a class="nav-link dropdown-toggle d-flex align-items-center" href="#" role="button" data-bs-toggle="dropdown">
|
||||
<img src="{{ auth()->user()->avatar_url }}" alt="Avatar" class="rounded-circle me-2" width="32" height="32">
|
||||
<span class="d-none d-md-inline">{{ auth()->user()->full_name }}</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li><h6 class="dropdown-header">{{ auth()->user()->full_name }}</h6></li>
|
||||
<li><small class="dropdown-item-text text-muted">{{ auth()->user()->email }}</small></li>
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
<li>
|
||||
<a class="dropdown-item" href="{{ route('profile.show') }}">
|
||||
<i class="bi bi-person me-2"></i>
|
||||
Profile Settings
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item" href="{{ route('account.settings') }}">
|
||||
<i class="bi bi-gear me-2"></i>
|
||||
Account Settings
|
||||
</a>
|
||||
</li>
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
<li>
|
||||
<form method="POST" action="{{ route('logout') }}" class="d-inline">
|
||||
@csrf
|
||||
<button type="submit" class="dropdown-item text-danger">
|
||||
<i class="bi bi-box-arrow-right me-2"></i>
|
||||
Sign Out
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@endauth
|
||||
|
||||
<!-- Main Content -->
|
||||
<main id="main-content" class="flex-grow-1">
|
||||
<!-- Alert Messages -->
|
||||
@if (session('success'))
|
||||
<div class="alert alert-success alert-dismissible fade show m-0 rounded-0" role="alert">
|
||||
<div class="container">
|
||||
<i class="bi bi-check-circle me-2"></i>
|
||||
{{ session('success') }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="alert alert-danger alert-dismissible fade show m-0 rounded-0" role="alert">
|
||||
<div class="container">
|
||||
<i class="bi bi-exclamation-triangle me-2"></i>
|
||||
{{ session('error') }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('warning'))
|
||||
<div class="alert alert-warning alert-dismissible fade show m-0 rounded-0" role="alert">
|
||||
<div class="container">
|
||||
<i class="bi bi-exclamation-circle me-2"></i>
|
||||
{{ session('warning') }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('info'))
|
||||
<div class="alert alert-info alert-dismissible fade show m-0 rounded-0" role="alert">
|
||||
<div class="container">
|
||||
<i class="bi bi-info-circle me-2"></i>
|
||||
{{ session('info') }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Page Content -->
|
||||
@yield('content')
|
||||
</main>
|
||||
|
||||
<!-- Footer -->
|
||||
@guest
|
||||
<footer class="bg-dark text-light py-4 mt-auto">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h5 class="fw-bold mb-3">Professional Resume Builder</h5>
|
||||
<p class="text-muted mb-0">
|
||||
Create outstanding resumes with our enterprise-grade platform.
|
||||
Trusted by professionals worldwide.
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<h6 class="fw-semibold">Platform</h6>
|
||||
<ul class="list-unstyled small">
|
||||
<li><a href="{{ route('features') }}" class="text-muted text-decoration-none">Features</a></li>
|
||||
<li><a href="{{ route('templates.index') }}" class="text-muted text-decoration-none">Templates</a></li>
|
||||
<li><a href="{{ route('pricing') }}" class="text-muted text-decoration-none">Pricing</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<h6 class="fw-semibold">Support</h6>
|
||||
<ul class="list-unstyled small">
|
||||
<li><a href="{{ route('help') }}" class="text-muted text-decoration-none">Help Center</a></li>
|
||||
<li><a href="{{ route('contact') }}" class="text-muted text-decoration-none">Contact</a></li>
|
||||
<li><a href="{{ route('privacy') }}" class="text-muted text-decoration-none">Privacy</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="my-4">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-6">
|
||||
<p class="text-muted small mb-0">
|
||||
© {{ date('Y') }} David Valera Melendez. Made in Germany 🇩🇪
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-6 text-md-end">
|
||||
<div class="d-flex justify-content-md-end gap-3">
|
||||
<span class="badge bg-primary">
|
||||
<i class="bi bi-shield-check me-1"></i>
|
||||
SSL Secured
|
||||
</span>
|
||||
<span class="badge bg-success">
|
||||
<i class="bi bi-check-circle me-1"></i>
|
||||
GDPR Compliant
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
@endguest
|
||||
|
||||
<!-- Scripts -->
|
||||
@vite(['resources/js/app.js'])
|
||||
@stack('scripts')
|
||||
|
||||
<!-- Auto-dismiss alerts -->
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Auto-dismiss success alerts after 5 seconds
|
||||
const successAlerts = document.querySelectorAll('.alert-success');
|
||||
successAlerts.forEach(alert => {
|
||||
setTimeout(() => {
|
||||
const bsAlert = new bootstrap.Alert(alert);
|
||||
bsAlert.close();
|
||||
}, 5000);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
205
resources/views/layouts/auth.blade.php
Normal file
205
resources/views/layouts/auth.blade.php
Normal file
@@ -0,0 +1,205 @@
|
||||
{{--
|
||||
Authentication Layout
|
||||
Professional Resume Builder - Auth Pages Layout
|
||||
|
||||
@author David Valera Melendez <david@valera-melendez.de>
|
||||
@created 2025-08-08
|
||||
@location Made in Germany 🇩🇪
|
||||
--}}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" data-bs-theme="light">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<meta name="description" content="{{ $description ?? 'Professional Resume Builder - Enterprise-grade authentication system' }}">
|
||||
<meta name="author" content="David Valera Melendez">
|
||||
|
||||
<title>{{ $title ?? 'Authentication' }} | Professional Resume Builder</title>
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Bootstrap Icons -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
||||
|
||||
<!-- Styles -->
|
||||
@vite(['resources/sass/app.scss'])
|
||||
@stack('styles')
|
||||
|
||||
<style>
|
||||
.auth-container {
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.auth-container::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.auth-card {
|
||||
backdrop-filter: blur(20px);
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
.auth-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.brand-icon {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.security-badge {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
@keyframes slideInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(30px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.auth-wrapper {
|
||||
animation: slideInUp 0.6s ease-out;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
border: none;
|
||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="auth-container d-flex align-items-center justify-content-center p-3">
|
||||
<!-- Skip to main content for accessibility -->
|
||||
<a href="#main-content" class="visually-hidden-focusable btn btn-primary position-absolute top-0 start-0 z-3">
|
||||
Skip to main content
|
||||
</a>
|
||||
|
||||
<div class="auth-wrapper w-100" style="max-width: 480px;">
|
||||
<!-- Brand Header -->
|
||||
<div class="text-center text-white mb-4">
|
||||
<div class="mb-3">
|
||||
<i class="bi bi-file-earmark-text-fill brand-icon rounded-circle p-3 fs-1"></i>
|
||||
</div>
|
||||
<h1 class="fw-bold mb-2" style="font-size: 2rem; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);">
|
||||
Resume Builder
|
||||
</h1>
|
||||
<p class="mb-0 opacity-75">Professional CV Creation Platform</p>
|
||||
</div>
|
||||
|
||||
<!-- Main Content Card -->
|
||||
<main id="main-content">
|
||||
@yield('content')
|
||||
</main>
|
||||
|
||||
<!-- Security Features -->
|
||||
<div class="d-flex justify-content-center gap-3 flex-wrap mt-4 text-white">
|
||||
<div class="security-badge rounded-pill px-3 py-2 small">
|
||||
<i class="bi bi-shield-check me-1"></i>
|
||||
SSL Encryption
|
||||
</div>
|
||||
<div class="security-badge rounded-pill px-3 py-2 small">
|
||||
<i class="bi bi-check-circle me-1"></i>
|
||||
GDPR Compliant
|
||||
</div>
|
||||
<div class="security-badge rounded-pill px-3 py-2 small">
|
||||
<i class="bi bi-eye-slash me-1"></i>
|
||||
Privacy Protected
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="text-center text-white mt-4">
|
||||
<p class="small mb-2 opacity-75">
|
||||
© {{ date('Y') }} David Valera Melendez. Made in Germany 🇩🇪
|
||||
</p>
|
||||
<div class="d-flex justify-content-center gap-3 small">
|
||||
<a href="{{ route('privacy') }}" class="text-white text-decoration-none opacity-75">Privacy Policy</a>
|
||||
<a href="{{ route('terms') }}" class="text-white text-decoration-none opacity-75">Terms of Service</a>
|
||||
<a href="{{ route('support') }}" class="text-white text-decoration-none opacity-75">Support</a>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<!-- Scripts -->
|
||||
@vite(['resources/js/app.js'])
|
||||
@stack('scripts')
|
||||
|
||||
<!-- Form validation and interactions -->
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Auto-focus first input
|
||||
const firstInput = document.querySelector('input:not([type="hidden"])');
|
||||
if (firstInput) {
|
||||
firstInput.focus();
|
||||
}
|
||||
|
||||
// Real-time validation feedback
|
||||
const forms = document.querySelectorAll('form');
|
||||
forms.forEach(form => {
|
||||
const inputs = form.querySelectorAll('input[required]');
|
||||
inputs.forEach(input => {
|
||||
input.addEventListener('blur', function() {
|
||||
validateInput(this);
|
||||
});
|
||||
|
||||
input.addEventListener('input', function() {
|
||||
if (this.classList.contains('is-invalid')) {
|
||||
validateInput(this);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function validateInput(input) {
|
||||
const isValid = input.checkValidity();
|
||||
input.classList.toggle('is-valid', isValid && input.value.length > 0);
|
||||
input.classList.toggle('is-invalid', !isValid && input.value.length > 0);
|
||||
}
|
||||
|
||||
// Enhanced loading states
|
||||
const submitButtons = document.querySelectorAll('button[type="submit"]');
|
||||
submitButtons.forEach(button => {
|
||||
button.closest('form').addEventListener('submit', function() {
|
||||
button.innerHTML = '<span class="spinner-border spinner-border-sm me-2"></span>Processing...';
|
||||
button.disabled = true;
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user