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

Reorganize folders

This commit is contained in:
Phuoc Nguyen
2019-11-23 12:16:32 +07:00
parent 27d819400c
commit 614494b933
72 changed files with 38 additions and 38 deletions

View File

@@ -0,0 +1,20 @@
import React from 'react';
import Circle from '../../placeholders/Circle';
import Frame from '../../placeholders/Frame';
import Rectangle from '../../placeholders/Rectangle';
const Cover = () => {
return (
<Frame>
<div className="h-100 flex flex-column items-center justify-center pa2">
<div className="w-100 flex flex-row items-center ba b--black-30 br2 pa1">
<div className="mr1"><Circle /></div>
<Rectangle />
</div>
</div>
</Frame>
);
};
export default Cover;

View File

@@ -0,0 +1,48 @@
import React from 'react';
import DetailsLayout from '../../layouts/DetailsLayout';
import BrowserFrame from '../../placeholders/BrowserFrame';
import Circle from '../../placeholders/Circle';
import Rectangle from '../../placeholders/Rectangle';
import SampleCode from '../../SampleCode';
const Details = () => {
return (
<DetailsLayout title="Button with icon">
<BrowserFrame
content={
<div className="h-100 flex flex-column items-center justify-center">
<div className="w5">
<button className="w-100 h3 flex flex-row items-center ba b--black-30 br2 ph2">
<div className="mr2"><Circle size={32} /></div>
<Rectangle />
</button>
</div>
</div>
}
source={
<SampleCode
lang="html"
code={`
<button style="
/* Content is centered */
align-items: center;
display: flex;
flex-direction: row;
justify-content: center;
">
<!-- Icon -->
...
<!-- Label -->
...
</div>
`}
/>
}
/>
</DetailsLayout>
);
};
export default Details;