| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428 |
- <!doctype html>
- <html lang="zh">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
- <meta http-equiv="X-UA-Compatible" content="ie=edge" />
- <title>@yield('title', '巴利书库')</title>
- @stack('styles')
- <link href="https://cdn.jsdelivr.net/npm/@tabler/core@latest/dist/css/tabler.min.css" rel="stylesheet" />
- <link href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css" rel="stylesheet" />
- <script src="https://cdn.jsdelivr.net/npm/@tabler/core@1.3.2/dist/js/tabler.min.js"></script>
- <style>
- .book-card {
- transition: transform 0.2s;
- }
- .book-card:hover {
- transform: translateY(-2px);
- }
- .book-cover {
- height: 200px;
- object-fit: cover;
- }
- @media (max-width: 768px) {
- .book-cover {
- height: 150px;
- }
- }
- .hero-section {
- height: 250px;
- width: 100%;
- background-image: url('{{ URL::asset("assets/images/hero-2.jpg") }}');
- background-size: cover;
- background-position: center;
- background-repeat: no-repeat;
- position: relative;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .hero-overlay {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.2);
- }
- .hero-content {
- position: relative;
- z-index: 2;
- text-align: center;
- color: white;
- max-width: 600px;
- padding: 0 1rem;
- }
- .hero-title {
- font-size: 2.5rem;
- font-weight: bold;
- margin-bottom: 1rem;
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
- }
- .hero-subtitle {
- font-size: 1.2rem;
- margin-bottom: 2rem;
- text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
- }
- .search-box {
- background: white;
- border-radius: 0.5rem;
- padding: 0.5rem;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- max-width: 500px;
- margin: 0 auto;
- }
- .feature-card {
- transition: transform 0.3s ease, box-shadow 0.3s ease;
- height: 100%;
- }
- .feature-card:hover {
- transform: translateY(-5px);
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
- }
- .stats-section {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- }
- .stat-item {
- text-align: center;
- padding: 2rem 1rem;
- }
- .stat-number {
- font-size: 2.5rem;
- font-weight: bold;
- display: block;
- }
- .stat-label {
- font-size: 1rem;
- opacity: 0.9;
- margin-top: 0.5rem;
- }
- /* Navigation Styles */
- .top-nav {
- height: 50px;
- width: 100%;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- padding: 0 2rem;
- position: relative;
- z-index: 10;
- }
- .nav-menu {
- display: flex;
- align-items: center;
- gap: 1.5rem;
- list-style: none;
- margin: 0;
- padding: 0;
- }
- .nav-item a {
- color: white;
- text-decoration: none;
- font-size: 0.95rem;
- font-weight: 500;
- transition: opacity 0.2s;
- white-space: nowrap;
- }
- .nav-item a:hover {
- opacity: 0.8;
- }
- /* Hamburger Menu */
- .hamburger-btn {
- display: none;
- background: rgba(255, 255, 255, 0.2);
- border: 2px solid white;
- border-radius: 0.375rem;
- color: white;
- font-size: 1.5rem;
- cursor: pointer;
- padding: 0.5rem 0.75rem;
- z-index: 1001;
- transition: background 0.2s;
- width: 44px;
- height: 44px;
- align-items: center;
- justify-content: center;
- }
- .hamburger-btn:hover {
- background: rgba(255, 255, 255, 0.3);
- }
- /* CSS Hamburger Icon */
- .hamburger-icon {
- display: flex;
- flex-direction: column;
- gap: 4px;
- width: 24px;
- }
- .hamburger-icon span {
- display: block;
- height: 2px;
- background: white;
- border-radius: 2px;
- transition: all 0.3s;
- }
- .hamburger-btn.active .hamburger-icon span:nth-child(1) {
- transform: translateY(6px) rotate(45deg);
- }
- .hamburger-btn.active .hamburger-icon span:nth-child(2) {
- opacity: 0;
- }
- .hamburger-btn.active .hamburger-icon span:nth-child(3) {
- transform: translateY(-6px) rotate(-45deg);
- }
- .mobile-menu {
- display: none;
- position: fixed;
- top: 0;
- right: -100%;
- width: 280px;
- height: 100vh;
- background: rgba(0, 0, 0, 0.95);
- backdrop-filter: blur(10px);
- transition: right 0.3s ease;
- z-index: 1000;
- padding-top: 60px;
- }
- .mobile-menu.active {
- right: 0;
- }
- .mobile-nav-menu {
- list-style: none;
- padding: 0;
- margin: 0;
- }
- .mobile-nav-item {
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
- }
- .mobile-nav-item a {
- display: block;
- color: white;
- text-decoration: none;
- padding: 1rem 2rem;
- font-size: 1rem;
- transition: background 0.2s;
- }
- .mobile-nav-item a:hover {
- background: rgba(255, 255, 255, 0.1);
- }
- .mobile-overlay {
- display: none;
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.5);
- z-index: 999;
- }
- .mobile-overlay.active {
- display: block;
- }
- /* Responsive */
- @media (max-width: 768px) {
- .hero-title {
- font-size: 2rem;
- }
- .hero-subtitle {
- font-size: 1rem;
- }
- .hero-section {
- height: 250px;
- }
- .stat-number {
- font-size: 2rem;
- }
- .top-nav {
- padding: 0 1rem;
- }
- .nav-menu {
- display: none;
- }
- .hamburger-btn {
- display: flex;
- }
- .mobile-menu {
- display: block;
- }
- }
- @media (max-width: 576px) {
- .hero-title {
- font-size: 1.5rem;
- }
- .hero-subtitle {
- font-size: 0.9rem;
- }
- .top-nav {
- padding: 0 0.5rem;
- }
- }
- </style>
- </head>
- <body>
- <div class="page">
- <!-- Mobile Overlay -->
- <div class="mobile-overlay" id="mobileOverlay"></div>
- <!-- Mobile Menu -->
- <div class="mobile-menu" id="mobileMenu">
- <ul class="mobile-nav-menu">
- <li class="mobile-nav-item">
- <a href="{{ route('library.home') }}">首页</a>
- </li>
- <li class="mobile-nav-item">
- <a href="{{ route('library.wiki') }}">百科</a>
- </li>
- <li class="mobile-nav-item">
- <a href="{{ route('library.download') }}">下载</a>
- </li>
- <li class="mobile-nav-item">
- @auth
- <a href="#">我的账户</a>
- @else
- <a href="#">注册/登录</a>
- @endauth
- </li>
- <li class="mobile-nav-item" style="padding: 1rem 2rem;">
- <x-language-switcher />
- </li>
- </ul>
- </div>
- <!-- Hero Section -->
- <section class="hero-section">
- <div class="hero-overlay">
- <div class="top-nav">
- <!-- Desktop Menu -->
- <ul class="nav-menu">
- <li class="nav-item">
- <a href="{{ route('library.home') }}">首页</a>
- </li>
- <li class="nav-item">
- <a href="{{ route('library.wiki') }}">百科</a>
- </li>
- <li class="nav-item">
- <a href="{{ route('library.download') }}">下载</a>
- </li>
- <li class="nav-item">
- @auth
- <a href="#">我的账户</a>
- @else
- <a href="#">注册/登录</a>
- @endauth
- </li>
- <li class="nav-item">
- <x-language-switcher />
- </li>
- </ul>
- <!-- Hamburger Button -->
- <button class="hamburger-btn" id="hamburgerBtn">
- <div class="hamburger-icon">
- <span></span>
- <span></span>
- <span></span>
- </div>
- </button>
- </div>
- </div>
- <div class="hero-content">
- <h1 class="hero-title">巴利书库</h1>
- <p class="hero-subtitle">探索wikipali,开启智慧之门</p>
- <div class="search-box">
- <div class="input-group">
- <input type="text" class="form-control form-control-lg" placeholder="搜索图书、作者或主题...">
- <button class="btn btn-primary btn-lg" type="button">
- <i class="ti ti-search"></i>
- </button>
- </div>
- </div>
- </div>
- </section>
- <div class="page-wrapper">
- @yield('content')
- </div>
- </div>
- <!-- Tabler JS and Bootstrap -->
- <script src="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta21/dist/js/tabler.min.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
- <script>
- // Hamburger Menu Toggle
- const hamburgerBtn = document.getElementById('hamburgerBtn');
- const mobileMenu = document.getElementById('mobileMenu');
- const mobileOverlay = document.getElementById('mobileOverlay');
- function toggleMenu() {
- mobileMenu.classList.toggle('active');
- mobileOverlay.classList.toggle('active');
- hamburgerBtn.classList.toggle('active');
- }
- hamburgerBtn.addEventListener('click', toggleMenu);
- mobileOverlay.addEventListener('click', toggleMenu);
- // Close menu when clicking on a link
- document.querySelectorAll('.mobile-nav-item a').forEach(link => {
- link.addEventListener('click', () => {
- toggleMenu();
- });
- });
- </script>
- @stack('scripts')
- </body>
- </html>
|