mirror of
				https://github.com/phuoc-ng/csslayout.git
				synced 2025-10-26 19:21:30 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			66 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import * as React from 'react';
 | |
| 
 | |
| import Frame from '../../placeholders/Frame';
 | |
| import Line from '../../placeholders/Line';
 | |
| import Rectangle from '../../placeholders/Rectangle';
 | |
| 
 | |
| const Cover: React.FC<{}> = () => {
 | |
|     return (
 | |
|         <Frame>
 | |
|             <div
 | |
|                 style={{
 | |
|                     alignItems: 'center',
 | |
|                     display: 'flex',
 | |
|                     flexDirection: 'column',
 | |
|                     height: '100%',
 | |
|                     justifyContent: 'center',
 | |
|                     padding: '8px',
 | |
|                 }}
 | |
|             >
 | |
|                 <table
 | |
|                     style={{
 | |
|                         border: '1px solid rgba(0, 0, 0, 0.3)',
 | |
|                         borderCollapse: 'collapse',
 | |
|                         width: '100%',
 | |
|                     }}
 | |
|                 >
 | |
|                     <thead style={{ backgroundColor: 'rgba(0, 0, 0, 0.1)' }}>
 | |
|                         <tr>
 | |
|                             {Array(3)
 | |
|                                 .fill(0)
 | |
|                                 .map((_, index) => {
 | |
|                                     return (
 | |
|                                         <th key={index} style={{ padding: '6px 4px' }}>
 | |
|                                             <Rectangle />
 | |
|                                         </th>
 | |
|                                     );
 | |
|                                 })}
 | |
|                         </tr>
 | |
|                     </thead>
 | |
|                     <tbody>
 | |
|                         {Array(3)
 | |
|                             .fill(0)
 | |
|                             .map((_, row) => {
 | |
|                                 return (
 | |
|                                     <tr key={row} style={{ borderTop: '1px solid rgba(0, 0, 0, 0.3)' }}>
 | |
|                                         {Array(3)
 | |
|                                             .fill(0)
 | |
|                                             .map((__, col) => {
 | |
|                                                 return (
 | |
|                                                     <td key={col} style={{ padding: '6px 4px' }}>
 | |
|                                                         <Line />
 | |
|                                                     </td>
 | |
|                                                 );
 | |
|                                             })}
 | |
|                                     </tr>
 | |
|                                 );
 | |
|                             })}
 | |
|                     </tbody>
 | |
|                 </table>
 | |
|             </div>
 | |
|         </Frame>
 | |
|     );
 | |
| };
 | |
| 
 | |
| export default Cover;
 |