enhanced print view

This commit is contained in:
2022-09-17 20:02:58 +02:00
parent 3c010efb59
commit 63d010d04a
28 changed files with 2169 additions and 1979 deletions

View File

@@ -1,8 +1,6 @@
import React from "react";
import * as styles from "./Author.module.scss";
import { useSiteMetadata } from "@/hooks";
import React from "react";
import * as styles from "./Author.module.scss";
const Author = () => {
const { author } = useSiteMetadata();
@@ -10,9 +8,11 @@ const Author = () => {
return (
<div className={styles.author}>
<p className={styles.bio}>
Written by: <a href="/pages/about">
Written by:{" "}
<a href="/pages/about">
<strong>{author.name}</strong>
</a>
<span className="showInPrintView"> {`@ ${window.location}`}</span>
</p>
</div>
);

View File

@@ -3,7 +3,8 @@
exports[`Author renders correctly 1`] = `
<div>
<p>
Written by:
Written by:
<a
href="/pages/about"
>
@@ -11,6 +12,12 @@ exports[`Author renders correctly 1`] = `
Rick van Lieshout
</strong>
</a>
<span
className="showInPrintView"
>
@ http://localhost/
</span>
</p>
</div>
`;