From 33db0be06bad73512e34bbf07ab84c26fba21d06 Mon Sep 17 00:00:00 2001 From: elisejakob Date: Fri, 10 May 2024 17:46:10 +0200 Subject: [PATCH] add icon list block and a fun happy placeholder piggy --- web/public/assets/icons/neufneuf.svg | 6 ++ web/src/components/blocks/IconListBlock.tsx | 75 +++++++++++++++++++ .../blocks/iconListBlock.module.scss | 60 +++++++++++++++ web/src/components/general/Body.tsx | 2 + 4 files changed, 143 insertions(+) create mode 100644 web/public/assets/icons/neufneuf.svg create mode 100644 web/src/components/blocks/IconListBlock.tsx create mode 100644 web/src/components/blocks/iconListBlock.module.scss diff --git a/web/public/assets/icons/neufneuf.svg b/web/public/assets/icons/neufneuf.svg new file mode 100644 index 0000000..c7c9761 --- /dev/null +++ b/web/public/assets/icons/neufneuf.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/web/src/components/blocks/IconListBlock.tsx b/web/src/components/blocks/IconListBlock.tsx new file mode 100644 index 0000000..20f3868 --- /dev/null +++ b/web/src/components/blocks/IconListBlock.tsx @@ -0,0 +1,75 @@ +import styles from "./iconListBlock.module.scss"; + +export const IconListBlock = ({ block }: any) => { + return ( +
+ +
+ ); +}; diff --git a/web/src/components/blocks/iconListBlock.module.scss b/web/src/components/blocks/iconListBlock.module.scss new file mode 100644 index 0000000..e95679a --- /dev/null +++ b/web/src/components/blocks/iconListBlock.module.scss @@ -0,0 +1,60 @@ +.iconListBlock { + margin: 5rem auto; + max-width: 68rem; +} + +.iconList { + list-style: none; + display: grid; + grid-template-columns: repeat(2, 1fr); + column-gap: var(--spacing-gap-column); + row-gap: var(--spacing-gap-row); +} + +.iconListItem { + display: flex; + align-items: flex-start; + gap: 1.6rem; + + &:nth-of-type(3n+1) { + .icon { + background: var(--color-goldenBeige); + } + } + + &:nth-of-type(3n+2) { + .icon { + background: var(--color-neufPink); + } + } + + &:nth-of-type(3n+3) { + .icon { + background: var(--color-goldenOrange); + } + } +} + +.text { + margin-bottom: 1rem; + + h2 { + font-size: var(--font-size-lead); + margin: .5rem 0; + } +} + +.icon { + flex: none; + width: 3.4rem; + height: 3.4rem; + background: var(--color-goldenBeige); + border-radius: 100%; + display: flex; + align-items: center; + justify-content: center; + + img { + width: 100%; + } +} \ No newline at end of file diff --git a/web/src/components/general/Body.tsx b/web/src/components/general/Body.tsx index ce689d6..9a7f8be 100644 --- a/web/src/components/general/Body.tsx +++ b/web/src/components/general/Body.tsx @@ -1,9 +1,11 @@ import { FeaturedBlock } from "../blocks/FeaturedBlock"; +import { IconListBlock } from "../blocks/IconListBlock"; import styles from "./body.module.scss"; export const Body = () => { return ( <> +