summaryrefslogtreecommitdiffstats
path: root/src/components/Branding/Branding.tsx
blob: 94213148b1b8e61baaf6238204ce7b233599d361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import Image from 'next/image';
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';

type BrandingReturn = ({ isHome }: { isHome: boolean }) => ReactElement;

const Branding: BrandingReturn = ({ isHome = false }) => {
  const TitleTag = isHome ? 'h1' : 'p';

  return (
    <div className={styles.wrapper}>
      <div className={styles.logo}>
        <div className={styles.logo__front}>
          <Image
            src={photo}
            alt={t({
              message: `${config.name} picture`,
              comment: 'Branding logo.',
            })}
            layout="responsive"
          />
        </div>
        <div className={styles.logo__back}>
          <Logo />
        </div>
      </div>
      <TitleTag className={styles.name}>
        <Link href="/">
          <a className={styles.link}>{config.name}</a>
        </Link>
      </TitleTag>
      <p className={styles.job}>{config.baseline}</p>
    </div>
  );
};

export default Branding;
}, ], 'triple-quoted-string': { pattern: /"""[\s\S]*?"""/, greedy: !0, alias: 'string', }, 'string-literal': null, hashbang: { pattern: /^#!\/.+/, greedy: !0, alias: 'comment' }, attribute: { pattern: /#!?[ \t\u3000]*\w+/, alias: 'keyword' }, 'class-name': [ { pattern: /(\bclass\s+)\w+/, lookbehind: !0 }, /\b[A-Z][a-z\d_]*\b/, ], constant: /\b[A-Z][A-Z\d_]*\b/, null: { pattern: /\bnull\b/, alias: 'keyword' }, keyword: /\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/, boolean: /\b(?:false|true)\b/, number: /\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i, function: /\b[a-z_]\w*(?=\s*[({])/i, operator: /<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/, punctuation: /[\[\](){}.,;]/, }), (Prism.languages.wren['string-literal'] = { pattern: /(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/, lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/, lookbehind: !0, inside: { expression: { pattern: /^(%\()[\s\S]+(?=\)$)/, lookbehind: !0, inside: Prism.languages.wren, }, 'interpolation-punctuation': { pattern: /^%\(|\)$/, alias: 'punctuation', }, }, }, string: /[\s\S]+/, }, });