From 65da7e1ddaea17cb1391ce2bde5f4345acd7b4ad Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 1 Apr 2022 11:53:23 +0200 Subject: chore: add a career icon component --- src/components/atoms/icons/career.module.scss | 53 ++++++++++++++++++++++ src/components/atoms/icons/career.stories.tsx | 13 ++++++ src/components/atoms/icons/career.test.tsx | 9 ++++ src/components/atoms/icons/career.tsx | 64 +++++++++++++++++++++++++++ 4 files changed, 139 insertions(+) create mode 100644 src/components/atoms/icons/career.module.scss create mode 100644 src/components/atoms/icons/career.stories.tsx create mode 100644 src/components/atoms/icons/career.test.tsx create mode 100644 src/components/atoms/icons/career.tsx (limited to 'src/components/atoms') diff --git a/src/components/atoms/icons/career.module.scss b/src/components/atoms/icons/career.module.scss new file mode 100644 index 0000000..c5d65eb --- /dev/null +++ b/src/components/atoms/icons/career.module.scss @@ -0,0 +1,53 @@ +@use "@styles/abstracts/functions" as fun; + +.icon { + display: block; + width: var(--icon-size, #{fun.convert-px(40)}); +} + +.lock { + fill: var(--color-bg); + stroke: var(--color-primary-darker); + stroke-width: 3; +} + +.lines { + fill: var(--color-fg); + stroke-width: 4; +} + +.seal-top { + fill: var(--color-primary-lighter); + stroke: var(--color-primary-darker); + stroke-width: 2; +} + +.seal-bottom { + fill: var(--color-primary-lighter); + stroke: var(--color-primary-darker); + stroke-width: 2; +} + +.diploma { + fill: var(--color-bg); + stroke: var(--color-primary-darker); + stroke-width: 4; +} + +.top { + fill: var(--color-primary-lighter); + stroke: var(--color-primary-darker); + stroke-width: 4; +} + +.handle { + fill: var(--color-primary-lighter); + stroke: var(--color-primary-darker); + stroke-width: 3; +} + +.bottom { + fill: var(--color-primary); + stroke: var(--color-primary-darker); + stroke-width: 4; +} diff --git a/src/components/atoms/icons/career.stories.tsx b/src/components/atoms/icons/career.stories.tsx new file mode 100644 index 0000000..2c1d93a --- /dev/null +++ b/src/components/atoms/icons/career.stories.tsx @@ -0,0 +1,13 @@ +import { ComponentMeta, ComponentStory } from '@storybook/react'; +import CareerIcon from './career'; + +export default { + title: 'Atoms/Icons', + component: CareerIcon, +} as ComponentMeta; + +const Template: ComponentStory = (args) => ( + +); + +export const Career = Template.bind({}); diff --git a/src/components/atoms/icons/career.test.tsx b/src/components/atoms/icons/career.test.tsx new file mode 100644 index 0000000..62ffc14 --- /dev/null +++ b/src/components/atoms/icons/career.test.tsx @@ -0,0 +1,9 @@ +import { render } from '@test-utils'; +import Career from './career'; + +describe('Career', () => { + it('renders a Career icon', () => { + const { container } = render(); + expect(container).toBeDefined(); + }); +}); diff --git a/src/components/atoms/icons/career.tsx b/src/components/atoms/icons/career.tsx new file mode 100644 index 0000000..aecab1e --- /dev/null +++ b/src/components/atoms/icons/career.tsx @@ -0,0 +1,64 @@ +import { FC } from 'react'; +import styles from './career.module.scss'; + +/** + * Career Component + * + * Render a career svg icon. + */ +const Career: FC = () => { + return ( + + + + + + + + + + + + + + ); +}; + +export default Career; -- cgit v1.2.3