diff --git a/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleCard.tsx b/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleCard.tsx index 9e9dbc53ee..3a80444385 100644 --- a/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleCard.tsx +++ b/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleCard.tsx @@ -1,7 +1,12 @@ import cl from "clsx"; import Link from "next/link"; import { CSSProperties } from "react"; -import { BodyLong, Heading, Tag, VStack } from "@navikt/ds-react"; +import { + ChevronRightIcon, + FileFillIcon, + TagFillIcon, +} from "@navikt/aksel-icons"; +import { BodyLong, Detail, Heading, VStack } from "@navikt/ds-react"; import { useFormatedDate } from "@/hooks/useFormatedDate"; import { GpArticleT } from "@/layout/god-praksis-page/types"; import styles from "./articles.module.css"; @@ -45,7 +50,7 @@ export const ArticleCard = ({
- - - {undertema} - - - {innholdstype} - - {heading} - {/* TODO: Can do this serverside in initialProps (saves data sent to user) */} - {ingress && {trunc(ingress, 100)}} -
+ {date && ( + + {date} + + )} - {date &&
{date}
} + {ingress && ( + {trunc(ingress, 100)} + )} + +
+
+ + + {undertema} + + + + {innholdstype} + +
+ +
); diff --git a/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleGrid.tsx b/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleGrid.tsx index 8b09b3d0bb..352898aa94 100644 --- a/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleGrid.tsx +++ b/aksel.nav.no/website/components/layout/god-praksis-page/articles/ArticleGrid.tsx @@ -25,7 +25,7 @@ function ArticleGrid({ data, initialData, loaded }: ArticleGridT) { return (
{loaded && ( -
+
{initialData.map((article, idx) => (