add an also page

This commit is contained in:
Yanick Champoux 2023-05-05 12:00:50 -04:00
parent fe04397b7f
commit 739bde9638
3 changed files with 31 additions and 1 deletions

View File

@ -1,8 +1,12 @@
<nav class="m l left">
<a>
<a href="/about">
<i>Question_Mark</i>
<span>About</span>
</a>
<a href="/about/see-also">
<i>Read_more</i>
<span>Other resources</span>
</a>
<!-- TODO
<a>
<i>Quiz</i>

View File

@ -0,0 +1,9 @@
import { render, fireEvent, screen, getByText } from "@testing-library/svelte";
import "@testing-library/jest-dom";
import Layout from "./+layout.svelte";
test("we have a see-also page", () => {
const { getByText } = render(Layout);
expect(getByText("Other resources")).toBeInTheDocument();
});

View File

@ -0,0 +1,17 @@
<h2>Other Full Thrust resources out there</h2>
<ul>
<li>
<a href="http://shipyard.mechworld.de/" target="_new"
>Full Thrust Shipyard</a
>, by mechworld.
</li>
</ul>
<style>
ul {
font-size: var(--font-scale-11);
margin-top: 2em;
margin-left: 2em;
}
</style>