mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-22 18:26:39 +02:00
82 lines
2.8 KiB
TypeScript
82 lines
2.8 KiB
TypeScript
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';
|
|
|
|
const Details: React.FC<{}> = () => {
|
|
return (
|
|
<PatternLayout pattern={Pattern.StampBorder}>
|
|
<Head>
|
|
<meta name="description" content="Create stamp border with CSS" />
|
|
<meta name="og:description" content="Create stamp border with CSS" />
|
|
<meta name="twitter:description" content="Create stamp border with CSS" />
|
|
<meta name="keywords" content="css radial gradient, css stamp border" />
|
|
</Head>
|
|
<BrowserFrame
|
|
html={`
|
|
<div class="container">
|
|
<!-- Inner -->
|
|
<div class="container__inner">
|
|
<!-- Content -->
|
|
...
|
|
</div>
|
|
</div>
|
|
`}
|
|
css={`
|
|
.container {
|
|
/* Background */
|
|
background-color: #ccc;
|
|
background-image: radial-gradient(#fff 50%, transparent 50%);
|
|
background-position: -5px -5px;
|
|
background-repeat: repeat;
|
|
background-size: 10px 10px;
|
|
|
|
/* Spacing */
|
|
padding: 5px;
|
|
}
|
|
|
|
.container__inner {
|
|
/* Background */
|
|
background-color: #ccc;
|
|
}
|
|
`}
|
|
>
|
|
<div
|
|
style={{
|
|
alignItems: 'center',
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
height: '100%',
|
|
justifyContent: 'center',
|
|
}}
|
|
>
|
|
<div
|
|
style={{
|
|
backgroundColor: '#ccc',
|
|
backgroundImage: 'radial-gradient(#fff 50%, transparent 50%)',
|
|
backgroundPosition: '-5px -5px',
|
|
backgroundRepeat: 'repeat',
|
|
backgroundSize: '10px 10px',
|
|
height: '200px',
|
|
padding: '5px',
|
|
width: '200px',
|
|
}}
|
|
>
|
|
<div
|
|
style={{
|
|
backgroundColor: '#ccc',
|
|
height: '100%',
|
|
width: '100%',
|
|
}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</BrowserFrame>
|
|
</PatternLayout>
|
|
);
|
|
};
|
|
|
|
export default Details;
|