/** * A collection of popular layouts and patterns made with CSS (https://csslayout.io) * (c) 2019 - 2021 Nguyen Huu Phuoc */ import * as React from 'react'; import { Helmet } from 'react-helmet'; import RelatedPatterns from '../../components/RelatedPatterns'; import Pattern from '../../constants/Pattern'; import DetailsLayout from '../../layouts/DetailsLayout'; import BrowserFrame from '../../placeholders/BrowserFrame'; const Avatar: React.FC<{}> = ({ children }) => { return (
{children}
); }; const Details: React.FC<{}> = () => { return (
...
...
`} css={` .avatars { display: flex; } .avatars__item { /* Nagative margin make avatar overlap to previous one */ margin-left: -4px; } .avatars__image { /* Add a white curve between avatars */ box-shadow: 0 0 0 4px #FFF; /* Center the content */ align-items: center; display: flex; justify-content: center; /* Rounded border */ border-radius: 9999px; } `} >
+5
); }; export default Details;