Skip to content

Commit

Permalink
change how app.css is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Nov 2, 2023
1 parent a849210 commit 0c45f94
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 31 deletions.
57 changes: 29 additions & 28 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
<!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() }}">
<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>
<title>{{ config('app.name', 'Seth Sharp Portfolio') }}</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" />
<!-- 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 antialiased">
<div class="min-h-screen bg-gray-100">
@include('layouts.navigation')
<!-- Scripts -->
<link rel="stylesheet" href="{{ secure_asset('resources/css/app.css') }}">
<script src="{{ secure_asset('resources/js/app.js') }}" defer></script>
</head>
<body class="font-sans antialiased">
<div class="min-h-screen bg-gray-100">
@include('layouts.navigation')

<!-- Page Heading -->
@if (isset($header))
<header class="bg-white shadow">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
{{ $header }}
</div>
</header>
@endif
<!-- Page Heading -->
@if (isset($header))
<header class="bg-white shadow">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
{{ $header }}
</div>
</header>
@endif

<!-- Page Content -->
<main>
{{ $slot }}
</main>
</div>
</body>
<!-- Page Content -->
<main>
{{ $slot }}
</main>
</div>
</body>
</html>
3 changes: 0 additions & 3 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import {defineConfig} from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
server: {
https: true
},
plugins: [
laravel({
input: [
Expand Down

0 comments on commit 0c45f94

Please sign in to comment.