mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-23 18:56:29 +02:00
52 lines
1.6 KiB
JavaScript
52 lines
1.6 KiB
JavaScript
import React from 'react';
|
|
|
|
import DetailsLayout from '../../layouts/DetailsLayout';
|
|
import BrowserFrame from '../../placeholders/BrowserFrame';
|
|
import Rectangle from '../../placeholders/Rectangle';
|
|
import SampleCode from '../../SampleCode';
|
|
|
|
const Details = () => {
|
|
return (
|
|
<DetailsLayout title="Previous and next buttons">
|
|
<BrowserFrame
|
|
content={
|
|
<div className="h-100 flex flex-column items-center justify-center">
|
|
<div className="w-50">
|
|
<div className="flex items-center justify-between pa2 w-100 h2">
|
|
<a className="b--black-30 ba br2 flex flex-row pa2 items-center w-30">
|
|
<div className="mr2"><</div>
|
|
<Rectangle />
|
|
</a>
|
|
<a className="b--black-30 ba br2 flex flex-row pa2 items-center w-30">
|
|
<Rectangle />
|
|
<div className="ml2">></div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
source={
|
|
<SampleCode
|
|
lang="html"
|
|
code={`
|
|
<div style="
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
">
|
|
<!-- Previous link sticks to the left -->
|
|
<a>..</a>
|
|
|
|
<!-- Next link sticks to the right -->
|
|
<a>..</a>
|
|
</div>
|
|
`}
|
|
/>
|
|
}
|
|
/>
|
|
</DetailsLayout>
|
|
);
|
|
};
|
|
|
|
export default Details;
|