From 139b3a252c9f90de603be1a98e3186b359353541 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 22 Dec 2021 12:36:40 +0100 Subject: chore: replace svg imports with components It allows me to control the colors of each SVG paths. --- src/components/Icons/Blog/Blog.module.scss | 23 +++++++++++ src/components/Icons/Blog/Blog.tsx | 62 ++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 src/components/Icons/Blog/Blog.module.scss create mode 100644 src/components/Icons/Blog/Blog.tsx (limited to 'src/components/Icons/Blog') diff --git a/src/components/Icons/Blog/Blog.module.scss b/src/components/Icons/Blog/Blog.module.scss new file mode 100644 index 0000000..d5c2639 --- /dev/null +++ b/src/components/Icons/Blog/Blog.module.scss @@ -0,0 +1,23 @@ +@use "@styles/abstracts/functions" as fun; + +.icon { + display: block; + margin: auto; + width: var(--icon-size, #{fun.convert-px(40)}); +} + +.lines { + fill: var(--color-fg); + stroke-width: 4; +} + +.picture { + fill: var(--color-primary-lighter); + stroke: var(--color-border); +} + +.background { + fill: var(--color-bg); + stroke: var(--color-border); + stroke-width: 4; +} diff --git a/src/components/Icons/Blog/Blog.tsx b/src/components/Icons/Blog/Blog.tsx new file mode 100644 index 0000000..bd32111 --- /dev/null +++ b/src/components/Icons/Blog/Blog.tsx @@ -0,0 +1,62 @@ +import styles from './Blog.module.scss'; + +const BlogIcon = () => { + return ( + + + + + + + + + + + + + + + ); +}; + +export default BlogIcon; -- cgit v1.2.3