add an also page
This commit is contained in:
parent
fe04397b7f
commit
739bde9638
@ -1,8 +1,12 @@
|
|||||||
<nav class="m l left">
|
<nav class="m l left">
|
||||||
<a>
|
<a href="/about">
|
||||||
<i>Question_Mark</i>
|
<i>Question_Mark</i>
|
||||||
<span>About</span>
|
<span>About</span>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="/about/see-also">
|
||||||
|
<i>Read_more</i>
|
||||||
|
<span>Other resources</span>
|
||||||
|
</a>
|
||||||
<!-- TODO
|
<!-- TODO
|
||||||
<a>
|
<a>
|
||||||
<i>Quiz</i>
|
<i>Quiz</i>
|
||||||
|
9
src/routes/about/layout.test.js
Normal file
9
src/routes/about/layout.test.js
Normal 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();
|
||||||
|
});
|
17
src/routes/about/see-also/+page.svelte
Normal file
17
src/routes/about/see-also/+page.svelte
Normal 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>
|
Loading…
Reference in New Issue
Block a user