Skip to content

Commit

Permalink
Merge branch 'start-setting-up-blog'
Browse files Browse the repository at this point in the history
  • Loading branch information
illourr committed Jan 29, 2024
2 parents f579681 + 834bf69 commit 2711edf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions learning/utilities/__tests__/getDigits.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Page.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
import Link from "./Link.astro";
import { fade } from 'astro:transitions';
---

<div class="Page">
<div class="Page" transition:animate={fade({ duration: '0.4s' })}>
<main class="prose prose-h1:font-semibold">
<slot />
</main>
Expand Down
2 changes: 2 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -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;
}
Expand All @@ -17,6 +18,7 @@ const { title } = Astro.props;
<link rel="icon" type="image/x-icon" href="/favicon.ico " />
<meta name="generator" content={Astro.generator} />
<title>{title} - dilloncurry.com</title>
<ViewTransitions />
</head>
<body>
<Header />
Expand Down

0 comments on commit 2711edf

Please sign in to comment.