This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components): ✨ created card component
- Loading branch information
Showing
4 changed files
with
62 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import styled from '@emotion/styled'; | ||
import { useTheme } from 'emotion-theming'; | ||
import { ArrowRight } from 'react-feather'; | ||
import { shadowAround } from '../../styles'; | ||
|
||
const Card = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
padding: 16px; | ||
margin: 10px 0; | ||
border-radius: 4px; | ||
border: 1px solid transparent; | ||
transition: ${(props) => props.theme.transitions.hover}; | ||
`; | ||
|
||
export default ({ ...props }) => { | ||
return <Card css={shadowAround} {...props} />; | ||
}; |
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