-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: moved to using a LandingLayout for the landing page to isolate…
… different facets of me
- Loading branch information
1 parent
0951482
commit ebb9f0d
Showing
2 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
import { ViewTransitions } from "astro:transitions"; | ||
import BaseHead from "@components/BaseHead.astro"; | ||
interface Props { | ||
title: string; | ||
} | ||
const {title} = Astro.props; | ||
--- | ||
|
||
<!doctype html> | ||
<html lang="en" class="antialiased break-words"> | ||
<head> | ||
<BaseHead {title} /> | ||
<script> | ||
if (localStorage.theme === "dark") { | ||
document.documentElement.classList.add("dark"); | ||
} | ||
</script> | ||
<ViewTransitions /> | ||
</head> | ||
<body> | ||
<slot /> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
--- | ||
import Layout from "@layouts/Layout.astro"; | ||
import LandingLayout from "@layouts/LandingLayout.astro"; | ||
const baseUrl = import.meta.env.BASE_URL; | ||
--- | ||
|
||
<Layout title="Welcome to JD."> | ||
<LandingLayout title="Who is Justin Dennison?"> | ||
<main> | ||
<h1>Welcome to <span class="text-gradient">JD's</span> page.</h1> | ||
</main> | ||
<ul> | ||
<li><a href={`${baseUrl}/posts`}>Blog Posts</a></li> | ||
</ul> | ||
</Layout> | ||
</LandingLayout> |