Skip to content

Instantly share code, notes, and snippets.

@Nauthiz-Jera
Last active July 29, 2021 18:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nauthiz-Jera/42d6905d4eff9901e4677a1cc7010f6a to your computer and use it in GitHub Desktop.
Save Nauthiz-Jera/42d6905d4eff9901e4677a1cc7010f6a to your computer and use it in GitHub Desktop.
import styled from 'styled-components';
import Card from 'blocks/Card/card';
function withElements(props) {
const modifiers = Object.keys(props).filter(propName =>
propName.startsWith('_'),
)
return [props.className, ...modifiers].join(' ')
}
import { COLOR_PALETTE, MARGIN, FONT_WEIGHT } from 'constants/styles';
import ReadMore from 'shared/ReadMore/read-more';
const FundedCard = styled(Card.main)`margin: 0 ${MARGIN.THREE_QUARTERS};`;
FundedCard.container = styled(Card.container)`
position: relative;
box-shadow: unset;
border: 1px solid ${COLOR_PALETTE.BORDER_GREY};
border-radius: 3px;
height: 416px;
`;
FundedCard.imageSection = styled.div`
height: 168px;
width: 100%;
position: relative;
border-radius: 3px;
`;
FundedCard.image = styled(Card.image)`
height: 100%;
border-radius: 0px;
`;
FundedCard.header = styled(Card.header)`
position: absolute;
top: 0px;
align-items: center;
height: 32px;
width: 100%;
`;
FundedCard.headerDate = styled(Card.text)`color: ${COLOR_PALETTE.WHITE};`;
FundedCard.headerTitle = styled(Card.text)`color: ${COLOR_PALETTE.WHITE};`;
FundedCard.companyInfo = styled(Card.companyInfo)``;
FundedCard.sectionContainer = styled(Card.sectionContainer)`
/* margin-bottom: 1.5rem; */
min-height: 70px;
`;
FundedCard.leftSection = styled(Card.leftSection)``;
FundedCard.title = styled(Card.title)``;
FundedCard.location = styled(Card.location)`
display: flex;
justify-content: flex-start;
align-items: flex-start;
`;
FundedCard.rightSection = styled(Card.rightSection)`
display: flex;
align-items: flex-end;
justify-content: flex-start;
`;
FundedCard.description = styled(Card.description)`
min-height: 72px;
max-height: 72px;
margin-top: 8px;
margin-bottom: 0px;
padding: 0px;
`;
FundedCard.readMore = styled(ReadMore)``;
FundedCard.raisedSection = styled(Card.raisedSection)`
align-content: flex-start;
align-items: flex-start;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
margin-top: 16px;
/* justify-content: flex-start; */
`;
FundedCard.raisedRow = styled.div`
display: flex;
`;
FundedCard.raisedText = styled(Card.title)`
font-weight: ${FONT_WEIGHT.BOLD};
color: ${COLOR_PALETTE.PURPLE};
`;
FundedCard.raisedTextSlim = styled(Card.title)`
font-weight: ${FONT_WEIGHT.NORMAL};
color: ${COLOR_PALETTE.PURPLE};
`;
FundedCard.daysTakenRow = styled.div``;
FundedCard.daysTaken = styled(Card.text)``;
FundedCard.tag = styled(Card.tag)``;
FundedCard.text = styled(Card.text)`color: ${COLOR_PALETTE.LIGHT_GRAY};`;
export default FundedCard;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment