Advertisement
vandasche

Untitled

Apr 8th, 2020
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import {
  3. Modal,
  4. Button,
  5. Row,
  6. Col,
  7. Container,
  8. Form,
  9. DropdownButton,
  10. Dropdown,
  11. } from 'react-bootstrap';
  12.  
  13. export default class Signup extends Component {
  14. state = {
  15. modal: true,
  16. };
  17. handleCloseModal = () => {
  18. this.setState({ modal: false });
  19. };
  20. handleOpenModal = () => {
  21. this.setState({ modal: true });
  22. };
  23.  
  24. render() {
  25. return (
  26. <div>
  27. {/* <Button color='primary' onClick={this.handleOpenModal}>
  28. Launch
  29. </Button> */}
  30. <Modal
  31. size='lg'
  32. aria-labelledby='contained-modal-title-vcenter'
  33. centered
  34. show={this.state.modal}
  35. onHide={this.handleCloseModal}
  36. >
  37. <Modal.Header closeButton></Modal.Header>
  38. <Modal.Body>
  39. <Form>
  40. <h1 style={{ textAlign: 'center' }}>SIGN IN</h1>
  41. <Form.Group controlId='formBasicName'>
  42. <Form.Label>Fullname</Form.Label>
  43. <Form.Control type='email' placeholder='Enter Fullname' />
  44. </Form.Group>
  45. <Form.Group controlId='formBasicUname'>
  46. <Form.Label>Username</Form.Label>
  47. <Form.Control type='text' placeholder='Enter Username' />
  48. </Form.Group>
  49. <Form.Group controlId='formBasicEmail'>
  50. <Form.Label>Email</Form.Label>
  51. <Form.Control type='email' placeholder='Enter Email' />
  52. </Form.Group>
  53. <Form.Group controlId='formBasicPassword'>
  54. <Form.Label>Password</Form.Label>
  55. <Form.Control type='password' placeholder='Enter Password' />
  56. </Form.Group>
  57. <Form.Group>
  58. <Form.Label>List as</Form.Label>
  59. <DropdownButton
  60. id='dropdown-basic-button'
  61. title='Select your status'
  62. >
  63. <Dropdown.Item href='#/action-1'>User</Dropdown.Item>
  64. <Dropdown.Item href='#/action-2'>Owner</Dropdown.Item>
  65. </DropdownButton>
  66. </Form.Group>{' '}
  67. <Form.Group>
  68. <Form.Label>Gender</Form.Label>
  69. <DropdownButton
  70. id='dropdown-basic-button'
  71. title='Select your gender'
  72. >
  73. <Dropdown.Item href='#/action-1'>Male</Dropdown.Item>
  74. <Dropdown.Item href='#/action-2'>Female</Dropdown.Item>
  75. </DropdownButton>
  76. </Form.Group>
  77. <Form.Group controlId='exampleForm.ControlTextarea1'>
  78. <Form.Label>Address</Form.Label>
  79. <Form.Control as='textarea' rows='3' />
  80. </Form.Group>
  81. <div style={{ display: 'flex', justifyContent: 'center' }}>
  82. <Button
  83. variant='primary'
  84. style={{ display: 'flex', justifyContent: 'center' }}
  85. onClick={this.handleCloseModal}
  86. >
  87. SIGN IN
  88. </Button>
  89. </div>
  90. </Form>
  91. </Modal.Body>
  92. </Modal>
  93. </div>
  94. );
  95. }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement