diff --git a/src/components/PersonCard.js b/src/components/PersonCard.js deleted file mode 100644 index 538ab819..00000000 --- a/src/components/PersonCard.js +++ /dev/null @@ -1,26 +0,0 @@ -const React = require('react') -const Image = require('./Image') - -const Link = ({href, children}) => ( - - {children} - -) - -module.exports = ({picture, name, url, profile}) => ( -
- -
- -
- -
- {name[0]} {name[1]} {name[2]} -
- -
- {profile.position} -
- -
-) diff --git a/src/components/PersonCard.jsx b/src/components/PersonCard.jsx new file mode 100644 index 00000000..60944ca4 --- /dev/null +++ b/src/components/PersonCard.jsx @@ -0,0 +1,113 @@ +import React from 'react' +import { Image } from './Image' + +module.exports = ({ picture, name, url, profile }) => ( +
+ + + +
+ +
+ +
+ {name[0]} {name[1]} {name[2]} +
+ +
+ {profile.position} +
+
+
+) diff --git a/src/style/components/PersonCard.scss b/src/style/components/PersonCard.scss deleted file mode 100644 index 1eb2ac23..00000000 --- a/src/style/components/PersonCard.scss +++ /dev/null @@ -1,95 +0,0 @@ -.PersonCard { - --person-card-width: 30%; - --person-card-height: 24em; - - display: flex; - flex-direction: column; - - margin: var(--single-margin) 0; - - width: var(--person-card-width); - min-width: 10em; - max-width: 30em; - - //border: 1px solid #ccc; - //border-radius: 3px; - - & > a { - display: block; - position: relative; - // height: 100%; - } -} - -.PersonCard-Picture { - border-radius: 3px; - - width: 100%; - height: var(--person-card-height); - - img { - width: 100%; - height: var(--person-card-height); - - object-fit: cover; - } -} - -.PersonCard-Title, .PersonCard-Body { - position: absolute; - width: 100%; - padding: 10px; - box-sizing: border-box; - color: white; - text-align: center; - text-shadow: 0 0 3px #000; - border-radius: 3px; -} - -.PersonCard-Title { - top: 0; -} - -.PersonCard-Body { - bottom: 0; -} - - -//Animation - -.PersonCard-Picture { - overflow: hidden; - - img { - transition: transform 150ms ease-out; - } -} - -.PersonCard { - &:hover { - img { - transform: scale(1.05); - } - } -} - - -// Tablet - -@media screen and (min-width: var(--tablet-min-width)) and (max-width: var(--tablet-max-width)) { - .PersonCard { - --person-card-height: 20em; - } - - @media screen and (orientation: portrait) { - } -} - - -// Mobile - -@media (max-width: var(--mobile-width)) { - .PersonCard { - --person-card-width: 100%; - } -} diff --git a/src/style/style.scss b/src/style/style.scss index f11c3236..10dca258 100644 --- a/src/style/style.scss +++ b/src/style/style.scss @@ -23,7 +23,6 @@ @import "components/ArticleCardList"; @import "components/ArticleTags"; @import "components/CollectiveImage"; -@import "components/PersonCard"; @import "components/PersonCardList"; @import "main";