Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#34 Add details section and Date component
- Loading branch information
Jose Nunes
committed
Aug 3, 2018
1 parent
eb22850
commit 03e5c28
Showing
8 changed files
with
71 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import Icon from '../Icon'; | ||
|
||
import colors from '../../../assets/colors'; | ||
import styles from './Date.module.css'; | ||
|
||
const Date = ({ date }) => ( | ||
<div className={styles.date}> | ||
<Icon icon="calendar" color={colors.text40} spin={false} /> | ||
<span className={styles.dateText}>{date}</span> | ||
</div> | ||
); | ||
|
||
Date.propTypes = { | ||
date: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default Date; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@import "../../../assets/styles/config.css"; | ||
|
||
.date { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
color: color(var(--text) tint(40%)); | ||
|
||
& .dateText { | ||
font-size: 1.75rem; | ||
font-weight: 600; | ||
margin-left: 1rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './Date'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters