1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-21 21:26:15 +02:00

Rename to typescript extension

This commit is contained in:
Phuoc Nguyen
2019-11-24 23:09:38 +07:00
parent bf35bd3b92
commit 642e179699
104 changed files with 183 additions and 2 deletions

View File

@@ -0,0 +1,75 @@
import React from 'react';
import DetailsLayout from '../../layouts/DetailsLayout';
import BrowserFrame from '../../placeholders/BrowserFrame';
import Triangle from '../../placeholders/Triangle';
const Details = () => {
return (
<DetailsLayout title="Fixed at corner">
<div className="ph4 pv5">
<BrowserFrame
content={
<div className="relative h-100">
<div className="absolute top-0 left-0">
<Triangle size={64} corner="tl" />
</div>
<div className="absolute top-0 right-0">
<Triangle size={64} corner="tr" />
</div>
<div className="absolute bottom-0 right-0">
<Triangle size={64} corner="br" />
</div>
<div className="absolute bottom-0 left-0">
<Triangle size={64} corner="bl" />
</div>
</div>
}
source={`
<div style="
position: relative;
">
<!-- Top-left corner -->
<div style="
left: 0;
position: absolute;
top: 0;
">
...
</div>
<!-- Top-right corner -->
<div style="
position: absolute;
top: 0;
right: 0;
">
...
</div>
<!-- Bottom-right corner -->
<div style="
bottom: 0;
position: absolute;
right: 0;
">
...
</div>
<!-- Bottom-left corner -->
<div style="
bottom: 0;
left: 0;
position: absolute;
">
...
</div>
</div>
`}
/>
</div>
</DetailsLayout>
);
};
export default Details;