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
import styled from "styled-components" | |
const Image = styled.div` | |
width: 64px; | |
height: 64px; | |
margin: 0 auto 20px; | |
border-radius: 50px; | |
background: #fafbfc no-repeat center / contain; | |
` |
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
export default function Card() { | |
return ( | |
<Wrapper> | |
<Inner> | |
<Image | |
style={{ backgroundImage: "url(https://picsum.photos/30/30)" }} | |
/> | |
<Content> | |
<Title>Заголовок</Title> | |
<Subtitle>Подзаголовок</Subtitle> |