Skip to content

Instantly share code, notes, and snippets.

@warderer
Created July 4, 2024 02:11
Show Gist options
  • Select an option

  • Save warderer/10c5c2c8d826a85d81702738327aff67 to your computer and use it in GitHub Desktop.

Select an option

Save warderer/10c5c2c8d826a85d81702738327aff67 to your computer and use it in GitHub Desktop.
[Signup Form Base] Ejemplo de #form Signup con Bootstrap para curso de #react
import logo from '@/assets/react.svg'
import '@/styles/form.css'
const Signup = () => {
return (
<main className='form-signin w-100 m-auto'>
<form>
<img className='mb-4' src={logo} alt='' width='72' height='57' />
<h1 className='h3 mb-3 fw-normal'>Please sign up</h1>
<div className='form-floating'>
<input
type='text'
className='form-control'
id='first_name'
name='first_name'
placeholder='John'
/>
<label htmlFor='first_name'>First Name</label>
</div>
<div className='form-floating'>
<input
type='text'
className='form-control'
id='last_name'
name='last_name'
placeholder='Doe'
/>
<label htmlFor='last_name'>Last Name</label>
</div>
<div className='form-floating'>
<select
className='form-select'
id='gender'
name='gender'
>
<option value=''>Choose...</option>
<option value='M'>Male</option>
<option value='F'>Female</option>
</select>
<label htmlFor='gender'>Gender</label>
</div>
<div className='form-floating'>
<input
type='email'
className='form-control'
id='email'
name='email'
placeholder='name@example.com'
/>
<label htmlFor='email'>Email address</label>
</div>
<div className='form-floating'>
<input
type='password'
className='form-control'
id='password'
name='password'
placeholder='Password'
/>
<label htmlFor='password'>Password</label>
</div>
<button className='w-100 btn btn-lg btn-primary' type='submit'>Sign up</button>
<p className='mt-5 mb-3 text-muted'>© 2017–2024</p>
</form>
</main>
)
}
export default Signup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment