diff --git a/public/styles/common.css b/public/styles/common.css index 56d7bec..b3ee068 100644 --- a/public/styles/common.css +++ b/public/styles/common.css @@ -232,16 +232,3 @@ pre { font-size: 0.9em; } } - -.clone-banner { - display: flex; - justify-content: center; - align-items: center; - font-family: 'Apercu Mono', monospace; -} - -.clone-banner code { - font-size: 0.95em; - user-select: all; - white-space: nowrap; -} diff --git a/public/styles/git.css b/public/styles/git.css new file mode 100644 index 0000000..d264280 --- /dev/null +++ b/public/styles/git.css @@ -0,0 +1,25 @@ +.clone-line { + font-family: 'Apercu Mono', monospace; + font-size: 1.3em; + font-weight: 400; + margin: 0.5em 0 1em 0; + text-align: left; + user-select: all; +} + +.clone-line code { + color: inherit; + text-decoration: none; + white-space: nowrap; +} + +.clone-line a { + color: inherit; + text-decoration: none; + border-bottom: 1px solid transparent; + transition: border-color 0.3s ease; +} + +.clone-line a:hover { + border-color: currentColor; +} diff --git a/src/pages/gist.astro b/src/pages/gist.astro new file mode 100644 index 0000000..9d3d4fa --- /dev/null +++ b/src/pages/gist.astro @@ -0,0 +1,24 @@ +--- +import BaseLayout from "../layouts/BaseLayout.astro"; +import { getCollection } from "astro:content"; + +const title = "Gists"; +const gists = await getCollection("gists"); +gists.sort((a, b) => a.slug.localeCompare(b.slug)); +--- + + + + + + +
+ +
+
diff --git a/src/pages/git/[slug].astro b/src/pages/git/[slug].astro index f844138..35acbc1 100644 --- a/src/pages/git/[slug].astro +++ b/src/pages/git/[slug].astro @@ -1,6 +1,6 @@ --- import { getEntry } from "astro:content"; -import PostLayout from "../../layouts/PostLayout.astro"; +import GitLayout from "../../layouts/GitLayout.astro"; export async function getStaticPaths() { const res = await fetch("https://git.barrettruth.com/api/repositories"); @@ -28,12 +28,11 @@ try { } catch {} --- - + {cloneCommand && ( -
-
{cloneCommand}
+
+ > {cloneCommand}
)} - - +