Skip to content

Commit

Permalink
Template scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
mattobee committed Apr 30, 2024
1 parent 18c78d2 commit 1978eb4
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore artifacts:
public
dist
coverage
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
18 changes: 17 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"astro": "^4.7.0"
"astro": "^4.7.0",
"prettier": "3.2.5"
}
}
52 changes: 52 additions & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<footer id="global-footer" role="contentinfo">
<div class="container readable">
<ul role="list" class="social flex gap">
<li>
<a
class="button"
itemprop="sameAs"
rel="me"
href="https://github.com/eventua11y/a11y.courses"
title="GitHub">
<i class="fab fa-github"></i>
</a>
</li>
<li>
<a
class="button"
itemprop="sameAs"
rel="me"
href="https://mastodon.social/@a11ycourses"
title="Mastodon">
<i class="fab fa-mastodon"></i>
</a>
</li>
</ul>
<p class="text-muted">
<small>&copy {new Date().getFullYear()}
<a href="https://mattobee.com/">Matt Obee</a>
</small>
</p>
<p class="text-muted">
<small>This page conforms to
<abbr title="Web Content Accessibility Guidelines">WCAG</abbr>
2.2 at Level
<abbr title="Double-A">AA</abbr>.</small>
</p>
<p class="text-muted">
<small>Powered by
<a href="https://astro.build/">Astro</a>,
<a href="https://www.sanity.io/">Sanity</a>,
and
<a href="https://www.netlify.com/">Netlify</a>. Basic accessibility tests by
<a href="https://github.com/pa11y/pa11y">pa11y</a>/<a href="https://github.com/dequelabs/axe-core">axe-core</a>.</small>
</p>
<p class="text-muted">
<small>
Privacy-first analytics by
<a href="https://usefathom.com/ref/VZYIPT">Fathom</a>.
</small>
</p>
</div>
</footer>
<!-- End #global-footer -->
14 changes: 14 additions & 0 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
import { Image } from "astro:assets";
---

<header id="global-header" class="masthead" role="banner">
<div class="inner">
<div class="masthead__logo">
<a href="/" rel="home">
<Image class="logo" src={logo} alt="a11y.courses" />
</a>
</div>
</div>
</header>
<!-- End #global-header -->
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
22 changes: 22 additions & 0 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
import Footer from "../components/Footer.astro";
const { title } = Astro.props.frontmatter || Astro.props;
---

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="generator" content="Astro" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{title ? `${title} - a11y.courses` : "a11y.courses"}</title>
<script
src="https://kit.fontawesome.com/ad02fca329.js"
crossorigin="anonymous"></script>
</head>
<body>
<h1>{title}</h1>
<slot />
<Footer />
</body>
</html>
6 changes: 6 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
import BaseLayout from '../layouts/BaseLayout.astro';
---
<BaseLayout>
<p>Hello, world</p>
</BaseLayout>

0 comments on commit 1978eb4

Please sign in to comment.