EvilSpark

Untitled

Apr 5th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2. import dark_vangaurd from '../../dark_vangaurd.jpeg';
  3.  
  4. var Card = () => (
  5.   <div className="d-flex min-height-100">
  6.     <div
  7.       className="m-0 text-left text-muted table-bordered min-height-100"
  8.       style={{
  9.         width: '35%',
  10.         background: '#EEEEEE',
  11.       }}
  12.     >
  13.       <p className="p-3 table-bordered">Item Details</p>
  14.     </div>
  15.     <div
  16.       className="m-0 text-left text-muted table-bordered grow-1 min-height-100"
  17.       style={{
  18.         background: '#EEEEEE',
  19.       }}
  20.     >
  21.       <p className="p-3 table-bordered">Item Properties</p>
  22.       <div className="m-5 d-flex" >
  23.         <div className="card-image p-0">
  24.           <img src={dark_vangaurd} alt='dark vangaurd' />
  25.         </div>
  26.         <div className="card-info" style={{width: '400px', position:'relative'}}>
  27.           <div className='min-width-100 d-flex justify-content-between align-items-center table-bordered' style={{background: '#E1E1E1'}}>
  28.               <p className='m-0 p-3'>MANA COST</p>
  29.               <p className="bg-dark p-3 pl-5 pr-5 m-0 text-white table-bordered">4</p>
  30.  
  31.           </div>
  32.           <div className='min-width-100 d-flex justify-content-between align-items-center pt-2 pb-2' style={{background: '#FFF',}}>
  33.             <p className='m-0 p-3'>Attack</p>
  34.             <p className="p-3 pl-5 pr-5 m-0 text-white table-bordered" style={{background: '#B2B2B2'}}>3</p>
  35.           </div>
  36.           <div className='min-width-100 d-flex justify-content-between align-items-center pb-2' style={{background: '#fff'}}>
  37.             <p className='m-0 p-3'>Defence</p>
  38.             <p className="p-3 pl-5 pr-5 m-0 text-white table-bordered" style={{background: '#B2B2B2'}}>6</p>
  39.           </div>
  40.           <div className='min-width-100 d-flex justify-content-between align-items-center table-bordered text-muted' style={{background: '#E1E1E1'}}>
  41.             <p className='m-0 p-3'>Exploring the outer limits</p>
  42.           </div>
  43.           <div className='min-width-100 d-flex justify-content-between align-items-center table-bordered' style={{background: '#3967b8', color:'#FFF', position:'absolute', bottom:'0'}}>
  44.             <p className='m-0 p-3 font-weight-bold'>Rarity:</p>
  45.             <p className='m-0 p-3 font-weight-bold'>Epic</p>
  46.           </div>
  47.  
  48.         </div>
  49.       </div>
  50.     </div>
  51.   </div>
  52. );
  53.  
  54. export default Card;
Add Comment
Please, Sign In to add comment