Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // app.blade.php layout - file location - Resources/views/layouts/
- <!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('title', config('app.name', 'Laravel'))</title> <!-- Update this line -->
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
- <!-- 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'])
- <style>
- /* Ensure the body and html take the full height */
- html, body {
- height: 100%;
- margin: 0; /* Remove default margin */
- }
- /* Flexbox layout for the entire page */
- .min-h-screen {
- display: flex;
- flex-direction: column; /* Vertical alignment */
- min-height: 100vh; /* Ensure the container fills the viewport */
- }
- main {
- flex: 1; /* Allow main to grow and fill space */
- }
- </style>
- </head>
- <body class="font-sans antialiased">
- <div class="min-h-screen bg-gray-100 dark:bg-gray-900">
- @include('layouts.navigation')
- <!-- Page Heading -->
- @isset($header)
- <header class="bg-white dark:bg-gray-800 shadow">
- <div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
- {{ $header }}
- </div>
- </header>
- @endisset
- <!-- Page Content -->
- <main>
- @yield('content') <!-- Ensure this line is present -->
- </main>
- <!-- Include the footer here -->
- @include('layouts.footer') <!-- Footer will appear at the bottom -->
- </div>
- <script>
- var recaptchaSiteKey = "{{ env('RECAPTCHA_SITE_KEY') }}";
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment