diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-27 15:58:14 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-27 16:13:18 +0100 |
| commit | de11222e4cecfdfd4d45f3ec1220ebc1bcb9c8c1 (patch) | |
| tree | 630b5d3f33969873c48890f149e7f1f66435a7ed /src/components | |
| parent | d5d8a461f0ee8abdd5f19a6f5a7a288b1f025724 (diff) | |
chore: update logo
Adjust previous colors to fit the new website and add a dark version
to better fit with the dark theme.
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Branding/Branding.tsx | 2 | ||||
| -rw-r--r-- | src/components/Branding/Logo/Logo.module.scss | 23 | ||||
| -rw-r--r-- | src/components/Branding/Logo/Logo.tsx | 32 |
3 files changed, 56 insertions, 1 deletions
diff --git a/src/components/Branding/Branding.tsx b/src/components/Branding/Branding.tsx index 5e2cf6a..01948e9 100644 --- a/src/components/Branding/Branding.tsx +++ b/src/components/Branding/Branding.tsx @@ -3,11 +3,11 @@ import Link from 'next/link'; import { ReactElement } from 'react'; import { t } from '@lingui/macro'; import photo from '@assets/images/armand-philippot.jpg'; -import Logo from '@assets/images/armand-philippot-logo.svg'; import { config } from '@config/website'; import styles from './Branding.module.scss'; import Head from 'next/head'; import { Person, WithContext } from 'schema-dts'; +import Logo from './Logo/Logo'; type BrandingReturn = ({ isHome }: { isHome: boolean }) => ReactElement; diff --git a/src/components/Branding/Logo/Logo.module.scss b/src/components/Branding/Logo/Logo.module.scss new file mode 100644 index 0000000..3d62bf9 --- /dev/null +++ b/src/components/Branding/Logo/Logo.module.scss @@ -0,0 +1,23 @@ +.wrapper { + position: relative; +} + +.bg-left { + fill: var(--color-primary-light); +} + +.bg-right { + fill: var(--color-primary-dark); +} + +.letter { + fill: var(--color-fg-inverted); + stroke: var(--color-primary-darker); + stroke-width: 5; +} + +.letter-shadow { + fill: var(--color-shadow-darker); + stroke: var(--color-shadow-darker); + stroke-width: 5; +} diff --git a/src/components/Branding/Logo/Logo.tsx b/src/components/Branding/Logo/Logo.tsx new file mode 100644 index 0000000..0623042 --- /dev/null +++ b/src/components/Branding/Logo/Logo.tsx @@ -0,0 +1,32 @@ +import styles from './Logo.module.scss'; + +const Logo = () => { + return ( + <svg + viewBox="0 0 512 512" + xmlns="http://www.w3.org/2000/svg" + className={styles.wrapper} + > + <path className={styles['bg-left']} d="M 0,0 H 506 L 0,506 Z" /> + <path className={styles['bg-right']} d="M 512,512 H 6 L 512,6 Z" /> + <path + className={styles['letter-shadow']} + d="m 66.049088,353.26557 h 57.233082 l 15.4763,-40.00476 h 56.64908 l 15.76831,40.00476 h 57.2331 L 196.28357,165.21398 h -58.10911 z m 80.009522,-79.42552 21.02441,-55.18904 21.02439,55.18904 z" + /> + <path + className={styles['letter']} + d="m 59.569539,346.78602 h 57.233081 l 15.4763,-40.00476 H 188.928 l 15.76831,40.00476 h 57.2331 L 189.80402,158.73443 h -58.10911 z m 80.009521,-79.42552 21.02441,-55.18904 21.02439,55.18904 z" + /> + <path + className={styles['letter-shadow']} + d="m 288.84935,353.26557 h 54.89704 v -50.51696 h 40.88078 c 42.04881,0 68.91332,-28.61654 68.91332,-68.32931 0,-38.5447 -21.60841,-69.20532 -67.74528,-69.20532 h -96.94586 z m 54.89704,-92.56578 v -53.437 h 29.78458 c 16.35231,0 23.94446,10.51221 23.94446,27.15651 0,15.47629 -8.46817,26.28049 -25.40449,26.28049 z" + /> + <path + className={styles['letter']} + d="m 282.3698,346.78602 h 54.89704 v -50.51696 h 40.88078 c 42.04881,0 68.91332,-28.61654 68.91332,-68.3293 0,-38.54471 -21.60841,-69.20533 -67.74528,-69.20533 H 282.3698 Z m 54.89704,-92.56578 v -53.437 h 29.78458 c 16.35231,0 23.94446,10.51221 23.94446,27.15652 0,15.47628 -8.46817,26.28048 -25.40449,26.28048 z" + /> + </svg> + ); +}; + +export default Logo; |
