tidy up, add section header component with links + make breadcrumb component

This commit is contained in:
elise
2024-07-15 15:18:04 +02:00
parent e7fb07005c
commit ebb0ee41ff
14 changed files with 90 additions and 48 deletions

View File

@ -1,3 +1,4 @@
import { SectionHeader } from "../general/SectionHeader";
import { NewsItem } from "./NewsItem";
import styles from "./newsList.module.scss";
import { NewsFragment } from "@/lib/news";
@ -18,12 +19,7 @@ export const NewsList = ({
return (
<section className={styles.newsWrapper}>
{heading && (
<h2 className="circlehead">
<span className="circle"></span>
<span className="circle"></span>
<span className="circle"></span>
{heading}
</h2>
<SectionHeader heading={heading} link="/aktuelt" linkText="Se flere artikler" />
)}
<ul className={`${styles.newsList} ${featured && styles.featured}`}>
{filteredNews.map((singleNews) => (