app.blade.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <!doctype html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  7. <title>@yield('title', '巴利书库')</title>
  8. @stack('styles')
  9. <link href="https://cdn.jsdelivr.net/npm/@tabler/core@latest/dist/css/tabler.min.css" rel="stylesheet" />
  10. <link href="https://cdn.jsdelivr.net/npm/@tabler/icons@latest/icons-sprite.svg" rel="stylesheet" />
  11. <script
  12. src="https://cdn.jsdelivr.net/npm/@tabler/core@1.3.2/dist/js/tabler.min.js">
  13. </script>
  14. <style>
  15. .book-card {
  16. transition: transform 0.2s;
  17. }
  18. .book-card:hover {
  19. transform: translateY(-2px);
  20. }
  21. .book-cover {
  22. height: 200px;
  23. object-fit: cover;
  24. }
  25. @media (max-width: 768px) {
  26. .book-cover {
  27. height: 150px;
  28. }
  29. }
  30. .hero-section {
  31. height: 250px;
  32. width: 100%;
  33. background-image: url('{{ URL::asset("assets/images/hero-2.jpg") }}');
  34. background-size: cover;
  35. background-position: center;
  36. background-repeat: no-repeat;
  37. position: relative;
  38. display: flex;
  39. align-items: center;
  40. justify-content: center;
  41. }
  42. .hero-overlay {
  43. position: absolute;
  44. top: 0;
  45. left: 0;
  46. right: 0;
  47. bottom: 0;
  48. background: rgba(0, 0, 0, 0.2);
  49. }
  50. .hero-content {
  51. position: relative;
  52. z-index: 2;
  53. text-align: center;
  54. color: white;
  55. max-width: 600px;
  56. padding: 0 1rem;
  57. }
  58. .hero-title {
  59. font-size: 2.5rem;
  60. font-weight: bold;
  61. margin-bottom: 1rem;
  62. text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  63. }
  64. .hero-subtitle {
  65. font-size: 1.2rem;
  66. margin-bottom: 2rem;
  67. text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  68. }
  69. .search-box {
  70. background: white;
  71. border-radius: 0.5rem;
  72. padding: 0.5rem;
  73. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  74. max-width: 500px;
  75. margin: 0 auto;
  76. }
  77. .feature-card {
  78. transition: transform 0.3s ease, box-shadow 0.3s ease;
  79. height: 100%;
  80. }
  81. .feature-card:hover {
  82. transform: translateY(-5px);
  83. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  84. }
  85. .stats-section {
  86. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  87. color: white;
  88. }
  89. .stat-item {
  90. text-align: center;
  91. padding: 2rem 1rem;
  92. }
  93. .stat-number {
  94. font-size: 2.5rem;
  95. font-weight: bold;
  96. display: block;
  97. }
  98. .stat-label {
  99. font-size: 1rem;
  100. opacity: 0.9;
  101. margin-top: 0.5rem;
  102. }
  103. @media (max-width: 768px) {
  104. .hero-title {
  105. font-size: 2rem;
  106. }
  107. .hero-subtitle {
  108. font-size: 1rem;
  109. }
  110. .hero-section {
  111. height: 250px;
  112. }
  113. .stat-number {
  114. font-size: 2rem;
  115. }
  116. }
  117. @media (max-width: 576px) {
  118. .hero-title {
  119. font-size: 1.5rem;
  120. }
  121. .hero-subtitle {
  122. font-size: 0.9rem;
  123. }
  124. }
  125. </style>
  126. </head>
  127. <body>
  128. <div class="page">
  129. <!-- Hero Section -->
  130. <section class="hero-section">
  131. <div class="hero-overlay">
  132. <div style="height:30px;width:100%;display: flex;justify-content: center;">
  133. <div style="color:white;flex:1;">
  134. </div>
  135. <div style="color:white;">
  136. <x-language-switcher />
  137. </div>
  138. </div>
  139. </div>
  140. <div class="hero-content">
  141. <h1 class="hero-title">巴利书库</h1>
  142. <p class="hero-subtitle">探索wikipali,开启智慧之门</p>
  143. <div class="search-box">
  144. <div class="input-group">
  145. <input type="text" class="form-control form-control-lg" placeholder="搜索图书、作者或主题...">
  146. <button class="btn btn-primary btn-lg" type="button">
  147. <i class="ti ti-search"></i>
  148. </button>
  149. </div>
  150. </div>
  151. </div>
  152. </section>
  153. <div class="page-wrapper">
  154. @yield('content')
  155. </div>
  156. </div>
  157. <!-- Tabler JS and Bootstrap -->
  158. <script src="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta21/dist/js/tabler.min.js"></script>
  159. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  160. @stack('scripts')
  161. </body>
  162. </html>