moved everything out of the source
directory
This commit is contained in:
parent
8f13b81918
commit
294387d8d5
151 changed files with 21 additions and 60 deletions
29
src/components/Card.tsx
Normal file
29
src/components/Card.tsx
Normal file
|
@ -0,0 +1,29 @@
|
|||
import styled, { css } from "styled-components"
|
||||
|
||||
import theming from "../styles/theming"
|
||||
|
||||
export const cardCSS = css`
|
||||
margin: auto;
|
||||
background-color: ${(props) =>
|
||||
theming.theme(props.theme.currentTheme, {
|
||||
light: "white",
|
||||
dark: theming.dark.backgroundColor2,
|
||||
})};
|
||||
padding: 2rem;
|
||||
border-radius: 6px;
|
||||
box-shadow: ${(props) =>
|
||||
theming.theme(props.theme.currentTheme, {
|
||||
light: "0 4px 10px rgb(0 0 0 / 5%), 0 0 1px rgb(0 0 0 / 10%);",
|
||||
dark: "0 4px 10px rgb(0 0 0 / 30%), 0 0 1px rgb(0 0 0 / 30%);",
|
||||
})};
|
||||
|
||||
@media screen and (max-width: ${theming.size.screen_size1}) {
|
||||
padding: 1rem;
|
||||
}
|
||||
`
|
||||
|
||||
const Card = styled.div`
|
||||
${cardCSS}
|
||||
`
|
||||
|
||||
export default Card
|
Loading…
Add table
Add a link
Reference in a new issue