1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-30 17:19:51 +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,52 @@
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="Sticky footer">
<div className="ph4 pv5">
<div className="lh-copy mb3">
The footer always sticks to the bottom if the main content is short.
</div>
<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 pa3">
<Block numberOfBlocks={20} />
</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;
height: 100%;
">
<header style="flex-shrink: 0;">
...
</header>
<main style="flex-grow: 1;">
...
</main>
<footer style="flex-shrink: 0;">
...
</footer>
</div>
`}
/>
</div>
</DetailsLayout>
);
};
export default Details;