Squad.tsx 1.4 KB

1234567891011121314151617181920212223242526272829
  1. import React from 'react';
  2. import Member from './Member';
  3. import logo from '../../logo.svg';
  4. import Mech from '../../Mech';
  5. function Squad() {
  6. const it1: Mech = {id: 1, name: 'HelloType', kind: 'K1', health: 3};
  7. const it2: Mech = {id: 2, name: 'Giant Mech', kind: 'K1', health: 3};
  8. const it3: Mech = {id: 3, name: 'Techno-prop', kind: 'K1', health: 4};
  9. return (
  10. <article className='custom-squad'>
  11. <h2>Custom squad</h2>
  12. <div className='mech-members'>
  13. <Member mech={it1}/>
  14. <Member mech={it2}/>
  15. <Member mech={it3}/>
  16. </div>
  17. <div className='squad-description'>
  18. <label htmlFor='squad-description-field-id'>Squad description</label>
  19. <textarea id='squad-description-field-id'>
  20. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  21. </textarea>
  22. </div>
  23. </article>
  24. )
  25. }
  26. export default Squad;