Fix minimal details

This commit is contained in:
prototypa
2022-09-04 00:56:24 -04:00
parent 570cf904c4
commit 1cf25d6b43
44 changed files with 757 additions and 641 deletions

View File

@ -1,28 +1,20 @@
---
import { SITE } from "~/config.mjs"
import "~/assets/styles/base.css";
import MetaTags from "~/components/core/MetaTags.astro";
import BasicScripts from "~/components/core/BasicScripts.astro";
import Analytics from '@julian_cataldo/astro-analytics/Analytics.astro';
const { meta = {} } = Astro.props;
const { googleAnalyticsId = false } = SITE;
---
<!DOCTYPE html>
<html lang="en" class="motion-safe:scroll-smooth 2xl:text-[24px]">
<head>
<MetaTags {...meta} />
</head>
<head>
<MetaTags {...meta} />
{googleAnalyticsId &&
<Analytics id={googleAnalyticsId} />}
</head>
<body class="antialiased text-gray-900 dark:text-slate-300 tracking-tight bg-white dark:bg-slate-900">
<slot />
<BasicScripts />
</body>
</html>
<body class="antialiased text-gray-900 dark:text-slate-300 tracking-tight bg-white dark:bg-slate-900">
<slot />
<BasicScripts />
</body>
</html>

View File

@ -7,10 +7,12 @@ const { meta } = Astro.props;
<Layout meta={meta}>
<section class="px-8 sm:px-6 py-12 sm:py-16 lg:py-20 mx-auto max-w-3xl">
<header>
<h1 class="text-center text-4xl md:text-5xl font-bold leading-tighter tracking-tighter mb-8 md:mb-16">
<h1
class="text-center text-4xl md:text-5xl font-bold leading-tighter tracking-tighter mb-8 md:mb-16 font-heading"
>
<slot name="title" />
</h1>
</header>
<slot />
</section>
</Layout>
</Layout>

View File

@ -1,6 +1,5 @@
---
import Layout from "~/layouts/BaseLayout.astro";
import Header from "~/components/widgets/Header.astro";
import Footer from "~/components/widgets/Footer.astro";
@ -13,4 +12,4 @@ const { meta } = Astro.props;
<slot />
</main>
<Footer />
</Layout>
</Layout>