1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-30 00:59:47 +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,79 @@
import React from 'react';
import DetailsLayout from '../../layouts/DetailsLayout';
import Block from '../../placeholders/Block';
import BrowserFrame from '../../placeholders/BrowserFrame';
import Rectangle from '../../placeholders/Rectangle';
const Details = () => {
return (
<DetailsLayout title="Holy grail">
<div className="ph4 pv5">
<BrowserFrame
content={
<div className="h-100 flex flex-column">
<div className="flex-shrink-0 bb b--black-30 pa3">
<div className="w-50"><Rectangle /></div>
</div>
<div className="flex-grow-1 flex flex-row">
<div className="b--black-30 br pa3 w-25">
<Block numberOfBlocks={10} />
</div>
<div className="pa3 flex-auto">
<Block numberOfBlocks={20} />
</div>
<div className="b--black-30 bl pa3 w-20">
<Block numberOfBlocks={5} />
</div>
</div>
<div className="flex-shrink-0 bt b--black-30 pa3">
<div className="w-40"><Rectangle /></div>
</div>
</div>
}
source={`
<div style="
display: flex;
flex-direction: column;
">
<header>
...
</header>
<main style="
/* Take the remaining height */
flex-grow: 1;
/* Layout the left sidebar, main content and right sidebar */
display: flex;
flex-direction: row;
">
<!-- Left sidebar -->
<aside style="
width: 25%;
">...</aside>
<!-- Main content -->
<article style="
/* Take the remaining width */
flex-grow: 1;
">
...
</article>
<!-- Right sidebar -->
<nav style="
width: 20%;
">...</nav>
</main>
<footer>
...
</footer>
</div>
`}
/>
</div>
</DetailsLayout>
);
};
export default Details;