mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-23 10:46:13 +02:00
116 lines
4.0 KiB
TypeScript
116 lines
4.0 KiB
TypeScript
import React from 'react';
|
|
|
|
import DetailsLayout from '../../layouts/DetailsLayout';
|
|
import BrowserFrame from '../../placeholders/BrowserFrame';
|
|
import Circle from '../../placeholders/Circle';
|
|
import Rectangle from '../../placeholders/Rectangle';
|
|
|
|
const Details = () => {
|
|
return (
|
|
<DetailsLayout title="Menu">
|
|
<div className="ph4 pv5">
|
|
<BrowserFrame
|
|
content={
|
|
<div className="h-100 flex flex-column items-center justify-center">
|
|
<div className="b--black-30 ba br2 flex flex-column w-40">
|
|
<div className="flex items-center h2 ph2 hover-bg-black-10">
|
|
<div className="w-40"><Rectangle /></div>
|
|
</div>
|
|
<div className="flex items-center h2 ph2 hover-bg-black-10">
|
|
<Circle />
|
|
<div className="w-50 ml1"><Rectangle /></div>
|
|
</div>
|
|
<div className="flex items-center justify-between h2 ph2 hover-bg-black-10">
|
|
<div className="w-30"><Rectangle /></div>
|
|
<div>Ctrl + X</div>
|
|
</div>
|
|
<div className="flex items-center justify-between h2 ph2 hover-bg-black-10">
|
|
<div className="w-70"><Rectangle /></div>
|
|
<div>Ctrl + C</div>
|
|
</div>
|
|
<div className="flex items-center justify-between h2 ph2 hover-bg-black-10">
|
|
<div className="w-20"><Rectangle /></div>
|
|
<Circle />
|
|
</div>
|
|
<div className="flex items-center justify-between h2 ph2 hover-bg-black-10">
|
|
<div className="flex items-center w-80">
|
|
<Circle />
|
|
<div className="w-50 ml1"><Rectangle /></div>
|
|
</div>
|
|
<Circle />
|
|
</div>
|
|
<div className="b--black-30 bb" style={{ height: '1px' }} />
|
|
<div className="flex items-center justify-between h2 ph2 hover-bg-black-10">
|
|
<div className="w-40"><Rectangle /></div>
|
|
<div>Ctrl + V</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
source={`
|
|
<div style="
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
/* Border */
|
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
border-radius: 4px;
|
|
">
|
|
<!-- Normal menu item -->
|
|
<div style="
|
|
/* Center the content horizontally */
|
|
align-items: center;
|
|
display: flex;
|
|
">
|
|
...
|
|
</div>
|
|
|
|
<!-- With hot key -->
|
|
<div style="
|
|
align-items: center;
|
|
display: flex;
|
|
/* Push the hot key to the right */
|
|
justify-content: space-between;
|
|
">
|
|
<!-- Label -->
|
|
...
|
|
<!-- Hot key -->
|
|
...
|
|
</div>
|
|
|
|
<!-- With image and hot key -->
|
|
<div style="
|
|
align-items: center;
|
|
display: flex;
|
|
/* Push the hot key to the right */
|
|
justify-content: space-between;
|
|
">
|
|
<div style="
|
|
align-items: center;
|
|
display: flex;
|
|
">
|
|
<!-- Image -->
|
|
...
|
|
<!-- Label -->
|
|
...
|
|
</div>
|
|
|
|
<!-- Hot key -->
|
|
...
|
|
</div>
|
|
|
|
<!-- Divider -->
|
|
<div style="
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
|
|
height: 1px;
|
|
" />
|
|
</div>
|
|
`}
|
|
/>
|
|
</div>
|
|
</DetailsLayout>
|
|
);
|
|
};
|
|
|
|
export default Details;
|