From 834bf69a69a8601cca75b32d567c5a56c78d75da Mon Sep 17 00:00:00 2001 From: Dillon Curry Date: Mon, 29 Jan 2024 17:07:30 -0500 Subject: [PATCH] Add view transitions --- learning/utilities/__tests__/getDigits.test.ts | 4 ++-- src/components/Page.astro | 3 ++- src/layouts/Layout.astro | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/learning/utilities/__tests__/getDigits.test.ts b/learning/utilities/__tests__/getDigits.test.ts index 8b901d3..90e2553 100644 --- a/learning/utilities/__tests__/getDigits.test.ts +++ b/learning/utilities/__tests__/getDigits.test.ts @@ -2,8 +2,8 @@ import { expect, test } from "bun:test"; import { getDigits } from "../getDigits"; test("positive number", () => { - const value = getDigits(100); - expect(value).toEqual([1, 0, 0]); + const value = getDigits(222); + expect(value).toEqual([2, 2, 2]); }); test("negative number", () => { diff --git a/src/components/Page.astro b/src/components/Page.astro index bd27caa..c533fb4 100644 --- a/src/components/Page.astro +++ b/src/components/Page.astro @@ -1,8 +1,9 @@ --- import Link from "./Link.astro"; +import { fade } from 'astro:transitions'; --- -
+
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 8573b79..507a553 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,6 +1,7 @@ --- import Page from "../components/Page.astro"; import Header from "../components/Header.astro"; +import { ViewTransitions } from 'astro:transitions'; interface Props { title: string; } @@ -17,6 +18,7 @@ const { title } = Astro.props; {title} - dilloncurry.com +