diff --git a/src/components/QuadrantLink/QuadrantLink.module.css b/src/components/QuadrantLink/QuadrantLink.module.css
new file mode 100644
index 0000000..6c58f0c
--- /dev/null
+++ b/src/components/QuadrantLink/QuadrantLink.module.css
@@ -0,0 +1,20 @@
+.link {
+ text-transform: uppercase;
+ font-size: 12px;
+ white-space: nowrap;
+}
+
+.icon {
+ fill: var(--highlight);
+ display: inline-block;
+ vertical-align: middle;
+ margin: -2px 6px 0 0;
+ width: 16px;
+ height: 16px;
+}
+
+.link:hover {
+ .label {
+ text-decoration: underline;
+ }
+}
diff --git a/src/components/QuadrantLink/QuadrantLink.tsx b/src/components/QuadrantLink/QuadrantLink.tsx
new file mode 100644
index 0000000..f0bc842
--- /dev/null
+++ b/src/components/QuadrantLink/QuadrantLink.tsx
@@ -0,0 +1,25 @@
+import Link from "next/link";
+
+import styles from "./QuadrantLink.module.css";
+
+import Pie from "@/components/Icons/Pie";
+import { Quadrant } from "@/lib/types";
+import { cn } from "@/lib/utils";
+
+interface QuadrantLinkProps {
+ quadrant: Quadrant;
+ label?: string;
+ className?: string;
+}
+export function QuadrantLink({
+ quadrant,
+ label = "Zoom in",
+ className,
+}: QuadrantLinkProps) {
+ return (
+
+
{quadrant.description}
diff --git a/src/pages/[quadrant]/[id].module.css b/src/pages/[quadrant]/[id].module.css index c919be9..28bd52d 100644 --- a/src/pages/[quadrant]/[id].module.css +++ b/src/pages/[quadrant]/[id].module.css @@ -1,13 +1,15 @@ -.layout { -} - -.sidebar { -} - .content { margin-bottom: 60px; } +.ringAndQuadrant { + display: flex; + align-items: center; + justify-content: space-between; + padding-bottom: 20px; + border-bottom: 1px solid var(--border); +} + @media (min-width: 1024px) { .layout { display: flex; diff --git a/src/pages/[quadrant]/[id].tsx b/src/pages/[quadrant]/[id].tsx index ea1d495..d806b8d 100644 --- a/src/pages/[quadrant]/[id].tsx +++ b/src/pages/[quadrant]/[id].tsx @@ -7,6 +7,7 @@ import styles from "./[id].module.css"; import { RingBadge } from "@/components/Badge/Badge"; import { ItemDetail } from "@/components/ItemDetail/ItemDetail"; import { ItemList } from "@/components/ItemList/ItemList"; +import { QuadrantLink } from "@/components/QuadrantLink/QuadrantLink"; import { getItem, getItems, @@ -42,6 +43,11 @@ const ItemPage: CustomPage = () => {