🎨 Move default theme markup to the app layout (#3167)

This commit is contained in:
Brandon
2024-01-05 11:08:58 -06:00
committed by GitHub
3 changed files with 34 additions and 34 deletions

View File

@@ -1,20 +1 @@
<!doctype html> <?php echo view(app('sage.view'), app('sage.data'))->render();
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
</html>

View File

@@ -1,3 +1,16 @@
<!doctype html>
<html @php(language_attributes())>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@php(do_action('get_header'))
@php(wp_head())
</head>
<body @php(body_class())>
@php(wp_body_open())
<div id="app">
<a class="sr-only focus:not-sr-only" href="#main"> <a class="sr-only focus:not-sr-only" href="#main">
{{ __('Skip to content') }} {{ __('Skip to content') }}
</a> </a>
@@ -15,3 +28,9 @@
@endif @endif
@include('sections.footer') @include('sections.footer')
</div>
@php(do_action('get_footer'))
@php(wp_footer())
</body>
</html>

View File

@@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} config */ /** @type {import('tailwindcss').Config} config */
const config = { const config = {
content: ['./index.php', './app/**/*.php', './resources/**/*.{php,vue,js}'], content: ['./app/**/*.php', './resources/**/*.{php,vue,js}'],
theme: { theme: {
extend: { extend: {
colors: {}, // Extend Tailwind's default colors colors: {}, // Extend Tailwind's default colors