First Commit
This commit is contained in:
Executable
+157
@@ -0,0 +1,157 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>{{ config('app.name', 'GPrompt') }}</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body { font-family: 'Roboto', sans-serif; background-color: #f8f9fc; }
|
||||
#wrapper { display: flex; width: 100%; align-items: stretch; }
|
||||
#sidebar { min-width: 250px; max-width: 250px; min-height: 100vh; transition: all 0.3s; background: #2c3e50; color: #fff; }
|
||||
#sidebar.active { margin-left: -250px; }
|
||||
#sidebar .sidebar-brand { padding: 1.5rem 1rem; font-size: 1.25rem; font-weight: 700; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
|
||||
#sidebar ul.components { padding: 1rem 0; }
|
||||
#sidebar ul li a { padding: 0.75rem 1.5rem; font-size: 0.95rem; display: block; color: rgba(255,255,255,0.8); text-decoration: none; transition: 0.2s; }
|
||||
#sidebar ul li a:hover, #sidebar ul li a.active { color: #fff; background: rgba(255,255,255,0.05); }
|
||||
#sidebar ul li a i { margin-right: 0.75rem; }
|
||||
#content { width: 100%; min-height: 100vh; display: flex; flex-direction: column; }
|
||||
.navbar { box-shadow: 0 0.15rem 1.75rem 0 rgba(58,59,69,0.15); }
|
||||
.breadcrumb { background-color: transparent; padding: 0; margin-bottom: 0; }
|
||||
.card { box-shadow: 0 0.15rem 1.75rem 0 rgba(58,59,69,0.15); border: none; }
|
||||
.card-header { background-color: #f8f9fc; border-bottom: 1px solid #e3e6f0; }
|
||||
.btn-primary { background-color: #4e73df; border-color: #4e73df; }
|
||||
.btn-primary:hover { background-color: #2e59d9; border-color: #2653d3; }
|
||||
.sidebar-toggle { cursor: pointer; border: none; background: transparent; font-size: 1.2rem; color: #5a5c69; }
|
||||
@media (max-width: 768px) {
|
||||
#sidebar { margin-left: -250px; position: fixed; z-index: 1050; }
|
||||
#sidebar.active { margin-left: 0; }
|
||||
#sidebarCollapse span { display: none; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
@include('layouts.sidebar')
|
||||
|
||||
<div id="content">
|
||||
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top">
|
||||
<div class="container-fluid">
|
||||
<button id="sidebarToggle" class="btn btn-link sidebar-toggle me-2" type="button" aria-label="Toggle sidebar">
|
||||
<i class="bi bi-list fs-4"></i>
|
||||
</button>
|
||||
<ul class="navbar-nav ms-auto">
|
||||
@auth
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-bs-toggle="dropdown">
|
||||
<span class="me-2 d-none d-lg-inline text-gray-600 small">{{ Auth::user()->name }}</span>
|
||||
<i class="bi bi-person-circle fs-5"></i>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="userDropdown">
|
||||
<li><a class="dropdown-item" href="{{ route('dashboard') }}"><i class="bi bi-speedometer2 me-2"></i>Dashboard</a></li>
|
||||
<li><a class="dropdown-item" href="{{ route('profile.index') }}"><i class="bi bi-person me-2"></i>Perfil</a></li>
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
<li>
|
||||
<form method="POST" action="{{ route('logout') }}">
|
||||
@csrf
|
||||
<button type="submit" class="dropdown-item"><i class="bi bi-box-arrow-right me-2"></i>Sair</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@endauth
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container-fluid">
|
||||
@isset($breadcrumbs)
|
||||
<nav aria-label="breadcrumb" class="mb-3">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{{ route('welcome') }}"><i class="bi bi-house-door"></i> Início</a></li>
|
||||
@foreach($breadcrumbs as $label => $url)
|
||||
<li class="breadcrumb-item"><a href="{{ $url }}">{{ $label }}</a></li>
|
||||
@endforeach
|
||||
@isset($title)
|
||||
<li class="breadcrumb-item active" aria-current="page">{{ $title }}</li>
|
||||
@endisset
|
||||
</ol>
|
||||
</nav>
|
||||
@endisset
|
||||
|
||||
@hasSection('header')
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">@yield('header')</h1>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<main>
|
||||
@if(session('success'))
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
{{ session('success') }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Fechar"></button>
|
||||
</div>
|
||||
@endif
|
||||
@if(session('error'))
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
{{ session('error') }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Fechar"></button>
|
||||
</div>
|
||||
@endif
|
||||
@yield('content')
|
||||
</main>
|
||||
</div>
|
||||
|
||||
@include('components.app-footer')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.cookie-consent-banner')
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
@yield('scripts')
|
||||
<script>
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
initSidebar();
|
||||
});
|
||||
} else {
|
||||
initSidebar();
|
||||
}
|
||||
|
||||
function initSidebar() {
|
||||
const sidebar = document.getElementById('sidebar');
|
||||
const sidebarCollapse = document.getElementById('sidebarCollapse');
|
||||
const sidebarToggle = document.getElementById('sidebarToggle');
|
||||
const sidebarToggleIcon = document.getElementById('sidebarToggleIcon');
|
||||
|
||||
function toggleSidebar() {
|
||||
sidebar.classList.toggle('active');
|
||||
|
||||
if (sidebar.classList.contains('active')) {
|
||||
if (sidebarToggleIcon) {
|
||||
sidebarToggleIcon.classList.remove('bi-chevron-left');
|
||||
sidebarToggleIcon.classList.add('bi-chevron-right');
|
||||
}
|
||||
} else {
|
||||
if (sidebarToggleIcon) {
|
||||
sidebarToggleIcon.classList.remove('bi-chevron-right');
|
||||
sidebarToggleIcon.classList.add('bi-chevron-left');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sidebar && sidebarCollapse) {
|
||||
sidebarCollapse.addEventListener('click', toggleSidebar);
|
||||
}
|
||||
|
||||
if (sidebar && sidebarToggle) {
|
||||
sidebarToggle.addEventListener('click', toggleSidebar);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+34
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<title>{{ config('app.name', 'Laravel') }}</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
|
||||
|
||||
<!-- Scripts -->
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
</head>
|
||||
<body class="font-sans text-gray-900 antialiased">
|
||||
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100">
|
||||
<div>
|
||||
<a href="/">
|
||||
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-lg">
|
||||
{{ $slot }}
|
||||
</div>
|
||||
|
||||
@include('components.app-footer')
|
||||
</div>
|
||||
|
||||
@include('components.cookie-consent-banner')
|
||||
</body>
|
||||
</html>
|
||||
Executable
+41
@@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>@yield('header', config('app.name', 'GPrompt'))</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body { font-family: 'Roboto', sans-serif; background-color: #f8f9fc; }
|
||||
.legal-content { line-height: 1.8; }
|
||||
.legal-content h1, .legal-content h2, .legal-content h3 { margin-top: 1.5rem; }
|
||||
.legal-content p { margin-bottom: 1rem; }
|
||||
.legal-content ul, .legal-content ol { margin-bottom: 1rem; padding-left: 2rem; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container py-4">
|
||||
@isset($breadcrumbs)
|
||||
<nav aria-label="breadcrumb" class="mb-3">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{{ route('welcome') }}"><i class="bi bi-house-door"></i> Início</a></li>
|
||||
@foreach($breadcrumbs as $label => $url)
|
||||
<li class="breadcrumb-item"><a href="{{ $url }}">{{ $label }}</a></li>
|
||||
@endforeach
|
||||
</ol>
|
||||
</nav>
|
||||
@endisset
|
||||
|
||||
@yield('content')
|
||||
</div>
|
||||
|
||||
@include('components.app-footer')
|
||||
|
||||
@include('components.cookie-consent-banner')
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+100
@@ -0,0 +1,100 @@
|
||||
<nav x-data="{ open: false }" class="bg-white border-b border-gray-100">
|
||||
<!-- Primary Navigation Menu -->
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="flex justify-between h-16">
|
||||
<div class="flex">
|
||||
<!-- Logo -->
|
||||
<div class="shrink-0 flex items-center">
|
||||
<a href="{{ route('dashboard') }}">
|
||||
<x-application-logo class="block h-9 w-auto fill-current text-gray-800" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Navigation Links -->
|
||||
<div class="hidden space-x-8 sm:-my-px sm:ms-10 sm:flex">
|
||||
<x-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
|
||||
{{ __('Dashboard') }}
|
||||
</x-nav-link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Settings Dropdown -->
|
||||
<div class="hidden sm:flex sm:items-center sm:ms-6">
|
||||
<x-dropdown align="right" width="48">
|
||||
<x-slot name="trigger">
|
||||
<button class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none transition ease-in-out duration-150">
|
||||
<div>{{ Auth::user()->name }}</div>
|
||||
|
||||
<div class="ms-1">
|
||||
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
|
||||
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</div>
|
||||
</button>
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="content">
|
||||
<x-dropdown-link :href="route('profile.edit')">
|
||||
{{ __('Profile') }}
|
||||
</x-dropdown-link>
|
||||
|
||||
<!-- Authentication -->
|
||||
<form method="POST" action="{{ route('logout') }}">
|
||||
@csrf
|
||||
|
||||
<x-dropdown-link :href="route('logout')"
|
||||
onclick="event.preventDefault();
|
||||
this.closest('form').submit();">
|
||||
{{ __('Log Out') }}
|
||||
</x-dropdown-link>
|
||||
</form>
|
||||
</x-slot>
|
||||
</x-dropdown>
|
||||
</div>
|
||||
|
||||
<!-- Hamburger -->
|
||||
<div class="-me-2 flex items-center sm:hidden">
|
||||
<button @click="open = ! open" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out">
|
||||
<svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
|
||||
<path :class="{'hidden': open, 'inline-flex': ! open }" class="inline-flex" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
||||
<path :class="{'hidden': ! open, 'inline-flex': open }" class="hidden" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Responsive Navigation Menu -->
|
||||
<div :class="{'block': open, 'hidden': ! open}" class="hidden sm:hidden">
|
||||
<div class="pt-2 pb-3 space-y-1">
|
||||
<x-responsive-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
|
||||
{{ __('Dashboard') }}
|
||||
</x-responsive-nav-link>
|
||||
</div>
|
||||
|
||||
<!-- Responsive Settings Options -->
|
||||
<div class="pt-4 pb-1 border-t border-gray-200">
|
||||
<div class="px-4">
|
||||
<div class="font-medium text-base text-gray-800">{{ Auth::user()->name }}</div>
|
||||
<div class="font-medium text-sm text-gray-500">{{ Auth::user()->email }}</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-3 space-y-1">
|
||||
<x-responsive-nav-link :href="route('profile.edit')">
|
||||
{{ __('Profile') }}
|
||||
</x-responsive-nav-link>
|
||||
|
||||
<!-- Authentication -->
|
||||
<form method="POST" action="{{ route('logout') }}">
|
||||
@csrf
|
||||
|
||||
<x-responsive-nav-link :href="route('logout')"
|
||||
onclick="event.preventDefault();
|
||||
this.closest('form').submit();">
|
||||
{{ __('Log Out') }}
|
||||
</x-responsive-nav-link>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
Executable
+72
@@ -0,0 +1,72 @@
|
||||
<nav id="sidebar">
|
||||
<div class="sidebar-brand d-flex justify-content-between align-items-center">
|
||||
<span><i class="bi bi-cpu me-2"></i>GPrompt</span>
|
||||
<button id="sidebarCollapse" class="sidebar-toggle border-0 bg-transparent text-white">
|
||||
<i class="bi bi-chevron-left" id="sidebarToggleIcon"></i>
|
||||
</button>
|
||||
</div>
|
||||
<ul class="list-unstyled components mt-3">
|
||||
<li>
|
||||
<a href="{{ route('dashboard') }}" class="{{ request()->routeIs('dashboard') ? 'active' : '' }}">
|
||||
<i class="bi bi-speedometer2 me-2"></i> Dashboard
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('profile.index') }}" class="{{ request()->routeIs('profile.*') ? 'active' : '' }}">
|
||||
<i class="bi bi-person me-2"></i> Perfil
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('prompt-projects.index') }}" class="{{ request()->routeIs('prompt-projects.*') ? 'active' : '' }}">
|
||||
<i class="bi bi-folder2-open me-2"></i> Projetos de Prompt
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('prompt-templates.index') }}" class="{{ request()->routeIs('prompt-templates.*') ? 'active' : '' }}">
|
||||
<i class="bi bi-file-earmark-code me-2"></i> Templates
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('prompt-generations.index') }}" class="{{ request()->routeIs('prompt-generations.*') ? 'active' : '' }}">
|
||||
<i class="bi bi-clock-history me-2"></i> Histórico
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('chat.index') }}" class="{{ request()->routeIs('chat.*') ? 'active' : '' }}">
|
||||
<i class="bi bi-chat-dots me-2"></i> Chat com IA
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('ai-agent.index') }}" class="{{ request()->routeIs('ai-agent.*') ? 'active' : '' }}">
|
||||
<i class="bi bi-robot me-2"></i> Agente de IA para Landing Page e Perguntas
|
||||
</a>
|
||||
</li>
|
||||
@auth
|
||||
@if(Auth::user()->role === 'superadmin')
|
||||
<li>
|
||||
<a href="{{ route('ai-providers.index') }}" class="{{ request()->routeIs('ai-providers.*') ? 'active' : '' }}">
|
||||
<i class="bi bi-cloud me-2"></i> Provedores IA
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('users.index') }}" class="{{ request()->routeIs('users.*') ? 'active' : '' }}">
|
||||
<i class="bi bi-people me-2"></i> Usuários
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@endauth
|
||||
<li>
|
||||
<a href="{{ route('tutorial.index') }}" class="{{ request()->routeIs('tutorial.*') ? 'active' : '' }}">
|
||||
<i class="bi bi-book me-2"></i> Curso de Engenharia de Prompts
|
||||
</a>
|
||||
</li>
|
||||
<li class="mt-4">
|
||||
<form method="POST" action="{{ route('logout') }}">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-link text-decoration-none w-100 text-start ps-4">
|
||||
<i class="bi bi-box-arrow-right me-2"></i> Logout
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user