🎨 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>
<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>
<?php echo view(app('sage.view'), app('sage.data'))->render();

View File

@@ -1,8 +1,21 @@
<a class="sr-only focus:not-sr-only" href="#main">
{{ __('Skip to content') }}
</a>
<!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>
@include('sections.header')
<body @php(body_class())>
@php(wp_body_open())
<div id="app">
<a class="sr-only focus:not-sr-only" href="#main">
{{ __('Skip to content') }}
</a>
@include('sections.header')
<main id="main" class="main">
@yield('content')
@@ -14,4 +27,10 @@
</aside>
@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 */
const config = {
content: ['./index.php', './app/**/*.php', './resources/**/*.{php,vue,js}'],
content: ['./app/**/*.php', './resources/**/*.{php,vue,js}'],
theme: {
extend: {
colors: {}, // Extend Tailwind's default colors