2020-09-13 08:21:52 +03:00
|
|
|
import * as React from "react";
|
2020-09-12 20:17:23 +03:00
|
|
|
import * as Constants from "~/common/constants";
|
|
|
|
|
2020-11-30 08:24:22 +03:00
|
|
|
import { css } from "@emotion/react";
|
2020-09-10 17:55:40 +03:00
|
|
|
|
2020-09-13 08:21:52 +03:00
|
|
|
const STYLES_ISSUE_CARD = css`
|
2020-09-12 20:17:23 +03:00
|
|
|
width: 33.33%;
|
|
|
|
height: calc(100vh / 4);
|
|
|
|
margin: -1px 0 0 -1px;
|
|
|
|
transition: 200ms ease box-shadow;
|
2021-07-07 22:58:14 +03:00
|
|
|
border: 1px solid ${Constants.system.grayLight2};
|
2020-09-12 20:17:23 +03:00
|
|
|
:hover {
|
|
|
|
transition: 200ms ease box-shadow;
|
|
|
|
box-shadow: 0px 10px 40px 20px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
`;
|
2020-09-13 08:21:52 +03:00
|
|
|
|
|
|
|
const STYLES_ISSUE_CARD_TEXT = css`
|
2020-09-12 20:17:23 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: left;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding: 12px;
|
|
|
|
`;
|
2020-09-13 08:21:52 +03:00
|
|
|
|
|
|
|
const STYLES_ISSUE_CARD_TITLE = css`
|
2020-09-12 20:17:23 +03:00
|
|
|
padding: 12px;
|
|
|
|
font-size: ${Constants.typescale.lvl1};
|
|
|
|
text-align: left;
|
|
|
|
width: 100%;
|
2020-09-13 08:21:52 +03:00
|
|
|
|
2020-09-12 20:17:23 +03:00
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
padding: 0px;
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
`;
|
2020-09-13 08:21:52 +03:00
|
|
|
|
|
|
|
const STYLES_ISSUE_CARD_EXPLAINER = css`
|
2020-09-12 20:17:23 +03:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
width: 100%;
|
|
|
|
padding: 12px;
|
2020-09-13 08:21:52 +03:00
|
|
|
|
2020-09-12 20:17:23 +03:00
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
padding: 0px;
|
|
|
|
}
|
|
|
|
`;
|
2020-09-13 08:21:52 +03:00
|
|
|
|
|
|
|
const STYLES_ISSUE_CARD_PARAGRAPH = css`
|
2020-09-12 20:17:23 +03:00
|
|
|
font-size: ${Constants.typescale.lvl0};
|
|
|
|
text-align: left;
|
|
|
|
text-decoration: none;
|
2021-07-07 22:58:14 +03:00
|
|
|
color: ${Constants.system.black};
|
2020-09-12 20:17:23 +03:00
|
|
|
transition: 200ms ease all;
|
|
|
|
:hover,
|
|
|
|
:active {
|
2021-07-07 22:58:14 +03:00
|
|
|
color: ${Constants.system.black};
|
2020-09-12 20:17:23 +03:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
2020-09-13 08:21:52 +03:00
|
|
|
|
2020-09-12 20:17:23 +03:00
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
font-size: 0.78rem;
|
|
|
|
}
|
|
|
|
`;
|
2020-09-13 08:21:52 +03:00
|
|
|
|
|
|
|
export default class Issue extends React.Component {
|
2020-09-10 17:55:40 +03:00
|
|
|
render() {
|
|
|
|
return (
|
2020-09-13 08:21:52 +03:00
|
|
|
<div css={STYLES_ISSUE_CARD}>
|
2020-11-04 20:55:48 +03:00
|
|
|
<a css={STYLES_ISSUE_CARD_PARAGRAPH} href={this.props.url} target="_blank">
|
2020-09-13 08:21:52 +03:00
|
|
|
<div css={STYLES_ISSUE_CARD_TEXT}>
|
2020-09-14 03:27:10 +03:00
|
|
|
<div css={STYLES_ISSUE_CARD_TITLE}>{this.props.title}</div>
|
2020-09-13 08:21:52 +03:00
|
|
|
<div css={STYLES_ISSUE_CARD_EXPLAINER}>
|
2020-09-12 20:17:23 +03:00
|
|
|
<div>View Issue</div>
|
|
|
|
<div>-></div>
|
2020-09-10 17:55:40 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-12 20:17:23 +03:00
|
|
|
</a>
|
|
|
|
</div>
|
2020-09-10 17:55:40 +03:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|