add new page links and remove unused templates, add icon for external link
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import styles from "./icon.module.scss";
|
||||
|
||||
export default function Icon({ type }: { type?: "doc" | "arrow" }) {
|
||||
export default function Icon({
|
||||
type,
|
||||
}: {
|
||||
type?: "doc" | "arrow" | "externalLink";
|
||||
}) {
|
||||
return (
|
||||
<div className={styles.icon}>
|
||||
{type === "doc" && (
|
||||
@@ -12,6 +16,7 @@ export default function Icon({ type }: { type?: "doc" | "arrow" }) {
|
||||
</svg>
|
||||
)}
|
||||
{type === "arrow" && <div>→</div>}
|
||||
{type === "externalLink" && <div>↗</div>}
|
||||
{!type && (
|
||||
<div>
|
||||
<svg
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
height: var(--size-icon);
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
line-height: 1;
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
|
||||
Reference in New Issue
Block a user