feat: add QuadrantLink

This commit is contained in:
Mathias Schopmans
2024-02-26 13:43:40 +01:00
committed by Mathias Schopmans
parent 8fe400f7a2
commit 0c38e49b34
8 changed files with 66 additions and 20 deletions

View File

@@ -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;

View File

@@ -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 = () => {
</section>
<aside className={styles.sidebar}>
<h3>{quadrant.title}</h3>
<div className={styles.ringAndQuadrant}>
<RingBadge ring={item.ring} />
<QuadrantLink quadrant={quadrant} label="Quadrant Overview" />
</div>
<ItemList items={relatedItems} activeId={item.id} />
</aside>
</div>