diff --git a/src/components/Button/Button.module.scss b/src/components/Button/Button.module.scss index 10d5972..6767e47 100644 --- a/src/components/Button/Button.module.scss +++ b/src/components/Button/Button.module.scss @@ -18,6 +18,11 @@ outline: 2px dashed currentColor; outline-offset: 0.25em; } + + &[disabled] { + background: silver; + pointer-events: none; + } } .content { diff --git a/src/components/Grid/Grid.module.scss b/src/components/Grid/Grid.module.scss index fa5e3fa..dab345d 100644 --- a/src/components/Grid/Grid.module.scss +++ b/src/components/Grid/Grid.module.scss @@ -5,7 +5,7 @@ @include grid.gutter('', functions.spacing(2)); @include grid.flex; @include grid.valign(middle); -@include grid.widths('', 2); +@include grid.widths('', 3); @include mixins.mq(breakpoints.$tablet-landscape) { @include grid.widths('tablet-landscape', 3); diff --git a/src/layouts/Home/index.jsx b/src/layouts/Home/index.jsx index 5edb8b3..9e7d033 100644 --- a/src/layouts/Home/index.jsx +++ b/src/layouts/Home/index.jsx @@ -9,15 +9,16 @@ import cardVariants from '~components/Card/Card.module.scss' import PageContainer from '~components/PageContainer' import Section from '~components/Section' import config from '~config' +import image from '~images/avatar.jpg' import styles from './index.module.scss' const { fullName, shortName, logo, socialLinks, url } = config const sections = [ - // { heading: 'Portfolio', href: '/portfolio', variant: 'primary' }, - { heading: 'College work', href: '/college', variant: 'secondary' } - // { heading: 'Commisions', href: '/commisions', variant: 'tertiary' } + { heading: 'Portfolio', href: '/portfolio', variant: 'primary', image }, + { heading: 'College work', href: '/college', variant: 'secondary', image }, + { heading: 'Commisions', href: '/commisions', variant: 'tertiary', image } ] const HomeLayout = ({ meta }) => ( @@ -55,7 +56,7 @@ const HomeLayout = ({ meta }) => (
- {sections.map(({ heading, href, variant, src }) => ( + {sections.map(({ heading, href, variant, image }) => ( ( {heading}} - image={{ src, priority: true, ratio: '4:3' }} + image={{ src: image, priority: true, ratio: '4:3' }} className={cardVariants[variant]} /> diff --git a/src/pages/commisions.jsx b/src/pages/commisions.jsx new file mode 100644 index 0000000..15677b0 --- /dev/null +++ b/src/pages/commisions.jsx @@ -0,0 +1,70 @@ +import { Button, Card, Grid, Prose, VisuallyHidden } from '@newhighsco/chipset' +import { object, string } from 'prop-types' +import React from 'react' +import urlJoin from 'url-join' + +import cardVariants from '~components/Card/Card.module.scss' +import PageContainer from '~components/PageContainer' +import Section from '~components/Section' +import config from '~config' +import image from '~images/avatar.jpg' + +const { url } = config + +const options = [ + { name: 'Sketches', description: 'Description', image, disabled: true }, + { name: 'Thigh Up', description: 'Description', href: '/', image }, + { name: 'Glam Sheet', description: 'Description', href: '/', image } +] + +const CommisionsPage = ({ meta, variant = 'tertiary' }) => ( + + +

Comissions

+
+
+ + {options.map(({ name, description, href, image, disabled }, index) => ( + + + + + {disabled ? 'Not accepting requests' : 'Contact'} + + } + image={{ src: image, ratio: '16:9' }} + className={cardVariants[variant]} + /> + + + +

{name}

+

{description}

+
+
+
+
+ ))} +
+
+
+) + +export const getStaticProps = async () => ({ + props: { + meta: { canonical: urlJoin(url, '/commisions') } + } +}) + +CommisionsPage.propTypes = { + variant: string, + meta: object +} + +export default CommisionsPage diff --git a/src/pages/portfolio.jsx b/src/pages/portfolio.jsx new file mode 100644 index 0000000..df0fb26 --- /dev/null +++ b/src/pages/portfolio.jsx @@ -0,0 +1,28 @@ +import { Prose } from '@newhighsco/chipset' +import { object } from 'prop-types' +import React from 'react' +import urlJoin from 'url-join' + +import PageContainer from '~components/PageContainer' +import config from '~config' + +const { url } = config + +const PortfolioPage = ({ meta }) => ( + + +

Portfolio

+

Coming soon

+
+
+) + +export const getStaticProps = async () => ({ + props: { meta: { canonical: urlJoin(url, '/portfolio') } } +}) + +PortfolioPage.propTypes = { + meta: object +} + +export default PortfolioPage