Skip to content

Commit 7910ace

Browse files
committed
Fix footer div overlap
1 parent 593b3f2 commit 7910ace

File tree

17 files changed

+33
-7
lines changed

17 files changed

+33
-7
lines changed

docs/toc.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2024-2025 the Bisterix Studio authors. All rights reserved. MIT license.
2+
13
import PARLEY_VERSIONS from "../versions.json" with { type: "json" };
24

35
type RawTableOfContents = Record<

www/components/homepage/CodeExampleBox.tsx

Whitespace-only changes.

www/data/docs.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2024-2025 the Bisterix Studio authors. All rights reserved. MIT license.
2+
13
import toc from "../../docs/toc.ts";
24

35
export interface TableOfContentsEntry {

www/dev.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env -S deno run -A --watch=static/,routes/
22

3+
// Copyright 2024-2025 the Bisterix Studio authors. All rights reserved. MIT license.
4+
35
import { Builder } from "fresh/dev";
46
import { app } from "./main.ts";
57
import { tailwind } from "@fresh/plugin-tailwind";

www/islands/TableOfContents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { useSignal } from "@preact/signals";
12
import { useEffect, useRef } from "preact/hooks";
23
import type { MarkdownHeading } from "../utils/markdown.ts";
3-
import { useSignal } from "@preact/signals";
44

55
export interface TableOfContentsProps {
66
headings: MarkdownHeading[];

www/islands/ThemeToggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { IS_BROWSER } from "fresh/runtime";
21
import { useSignal } from "@preact/signals";
2+
import { IS_BROWSER } from "fresh/runtime";
33

44
export default function ThemeToggle() {
55
const theme = useSignal(

www/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2024-2025 the Bisterix Studio authors. All rights reserved. MIT license.
2+
13
import { App, fsRoutes, staticFiles, trailingSlashes } from "fresh";
24

35
export const app = new App({ root: import.meta.url })

www/routes/_layout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { PageProps } from "fresh";
2-
import Footer from "../components/Footer.tsx";
32
import StarrySky from "../islands/StarrySky.tsx";
43

54
export default function Layout({ Component }: PageProps) {
@@ -9,7 +8,6 @@ export default function Layout({ Component }: PageProps) {
98
<div class="bg-none bg-transparent bg-no-repeat bg-right text-foreground-primary">
109
<div class="flex flex-col min-h-screen mx-auto max-w-screen-2xl">
1110
<Component />
12-
<Footer class="mt-auto" />
1311
</div>
1412
</div>
1513
</div>

www/routes/_middleware.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2024-2025 the Bisterix Studio authors. All rights reserved. MIT license.
2+
13
import type { FreshContext } from "fresh";
24

35
export async function handler(

www/routes/docs/[...slug].tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { TableOfContents } from "../../islands/TableOfContents.tsx";
1515
import VersionSelect from "../../islands/VersionSelect.tsx";
1616
import { frontMatter, renderMarkdown } from "../../utils/markdown.ts";
1717
import { define } from "../../utils/state.ts";
18+
import Footer from "../../components/Footer.tsx";
1819

1920
interface Data {
2021
page: Page;
@@ -230,6 +231,7 @@ export default define.page<typeof handler>(function DocsPage(props) {
230231
</div>
231232
</div>
232233
</div>
234+
<Footer />
233235
</main>
234236
</div>
235237
</Partial>

0 commit comments

Comments
 (0)