import * as React from 'react' ; import Head from 'next/head' ; import { Pattern } from '../../constants/Pattern' ; import { PatternLayout } from '../../layouts/PatternLayout' ; import BrowserFrame from '../../placeholders/BrowserFrame' ; import Circle from '../../placeholders/Circle' ; const Details = ( ) => { return ( < PatternLayout pattern = { Pattern . Teardrop } > < Head > < meta name = "description" content = "Create a teardrop with CSS" / > < meta name = "og:description" content = "Create a teardrop with CSS" / > < meta name = "twitter:description" content = "Create a teardrop with CSS" / > < meta name = "keywords" content = "css border radius, css teardrop, css water drop shape, css water droplet" / > < /Head> < BrowserFrame html = { `
<div class="container">
    <!-- Display the content vertically -->
    <div class="container__content">
        ...
    </div>
</div>
` } css = { `
                    .container {
                        /* Center the content */
                        align-items: center;
                        display: flex;
                        justify-content: center;

                        /* Border */
                        border: 2px solid rgba(0, 0, 0, 0.3);
                        border-radius: 0px 50% 50% 50%;

                        /* Angle at the top */
                        transform: rotate(45deg);

                        /* Size */
                        height: 64px;
                        width: 64px;
                    }

                    .container__content {
                        transform: rotate(-45deg);
                    }
                ` } > < div style = { { alignItems : 'center' , display : 'flex' , flexDirection : 'column' , height : '100%' , justifyContent : 'center' , padding : '8px' , } } > < div style = { { alignItems : 'center' , border : '2px solid rgba(0, 0, 0, 0.3)' , borderRadius : '0 50% 50% 50%' , display : 'flex' , height : '64px' , justifyContent : 'center' , transform : 'rotate(45deg)' , width : '64px' , } } > < div style = { { transform : 'rotate(-45deg)' } } > < Circle /> < /div> < /div> < /div> < /BrowserFrame> < /PatternLayout>); } ; export default Details ;