/** * 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'; import Rectangle from '../../placeholders/Rectangle'; const Details: React.FC<{}> = () => { return (
...
`} css={` .container { /* Center the content */ align-items: center; display: flex; justify-content: center; /* Background color */ background-color: #BBB; /* Size */ height: 32px; /* Use to position the corners */ position: relative; } .container__side { bottom: -8px; position: absolute; /* Displayed under the container */ z-index: -1; /* Background */ border: 16px solid #CCC; border-left-color: transparent; } .container__side--left { /* Position */ left: -24px; } .container__side--right { /* Position */ right: -24px; } .container__triangle { position: absolute; top: 100%; border: 8px solid transparent; border-bottom-width: 0; border-top-color: #AAA; } .container__triangle--left { border-right-width: 0; left: 0; } .container__triangle--right { border-left-width: 0; right: 0; } `} >
); }; export default Details;