/** * 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 Details: React.FC<{}> = () => { return (
...
`} css={` .container { /* Border */ border: 1px solid rgba(0, 0, 0, 0.3); /* Used to position the arrow */ position: relative; } .container__arrow { /* Size */ height: 16px; width: 16px; background-color: #FFF; position: absolute; } .container__arrow--tl { /* Position at the top left corner */ left: 32px; top: 0px; /* Border */ border-left: 1px solid rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(0, 0, 0, 0.3); transform: translate(50%, -50%) rotate(45deg); } .container__arrow--tc { /* Position at the top center */ left: 50%; top: 0px; /* Border */ border-left: 1px solid rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%) rotate(45deg); } .container__arrow--tr { /* Position at the top right corner */ right: 32px; top: 0px; /* Border */ border-left: 1px solid rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%) rotate(45deg); } .container__arrow--rt { /* Position at the right top corner */ right: 0; top: 32px; /* Border */ border-right: 1px solid rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(0, 0, 0, 0.3); transform: translate(50%, 50%) rotate(45deg); } .container__arrow--rc { /* Position at the right center */ right: 0; top: 50%; /* Border */ border-right: 1px solid rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(0, 0, 0, 0.3); transform: translate(50%, -50%) rotate(45deg); } .container__arrow--rb { /* Position at the right bottom corner */ bottom: 32px; right: 0; /* Border */ border-right: 1px solid rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(0, 0, 0, 0.3); transform: translate(50%, -50%) rotate(45deg); } .container__arrow--bl { /* Position at the bottom left corner */ bottom: -16px; left: 32px; /* Border */ border-bottom: 1px solid rgba(0, 0, 0, 0.3); border-right: 1px solid rgba(0, 0, 0, 0.3); transform: translate(50%, -50%) rotate(45deg); } .container__arrow--bc { /* Position at the bottom center */ bottom: -16px; left: 50%; /* Border */ border-bottom: 1px solid rgba(0, 0, 0, 0.3); border-right: 1px solid rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%) rotate(45deg); } .container__arrow--br { /* Position at the bottom right corner */ bottom: -16px; right: 32px; /* Border */ border-bottom: 1px solid rgba(0, 0, 0, 0.3); border-right: 1px solid rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%) rotate(45deg); } .container__arrow--lt { /* Position at the left top corner */ left: 0; top: 32px; /* Border */ border-bottom: 1px solid rgba(0, 0, 0, 0.3); border-left: 1px solid rgba(0, 0, 0, 0.3); transform: translate(-50%, 50%) rotate(45deg); } .container__arrow--lc { /* Position at the left center */ left: 0; top: 50%; /* Border */ border-bottom: 1px solid rgba(0, 0, 0, 0.3); border-left: 1px solid rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%) rotate(45deg); } .container__arrow--lb { /* Position at the left bottom corner */ bottom: 32px; left: 0; /* Border */ border-bottom: 1px solid rgba(0, 0, 0, 0.3); border-left: 1px solid rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%) rotate(45deg); } `} >
); }; export default Details;