UNPKG

bootstrap-modal-form

Version:

Bootstrap modal forms are displayed-on-action pop-up forms that are used for gathering data from website visitors, to register or log users.

72 lines (66 loc) 3.63 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta http-equiv="x-ua-compatible" content="ie=edge" /> <title>Material Design for Bootstrap</title> <!-- MDB icon --> <link rel="icon" href="img/mdb-favicon.ico" type="image/x-icon" /> <!-- Font Awesome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" /> <!-- Google Fonts Roboto --> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" /> <!-- MDB --> <link rel="stylesheet" href="css/mdb.min.css" /> </head> <body> <!-- Start your project here--> <div class="container d-flex justify-content-center mt-5"> <!-- Button trigger modal --> <button type="button" class="btn btn-primary" data-mdb-toggle="modal" data-mdb-target="#staticBackdrop3"> Launch modal subscription form </button> <!-- Modal --> <div class="modal fade" id="staticBackdrop3" tabindex="-1" aria-labelledby="exampleModalLabel3" aria-hidden="true"> <div class="modal-dialog d-flex justify-content-center"> <div class="modal-content w-75"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel3">Subscribe</h5> <button type="button" class="btn-close" data-mdb-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body p-4"> <form> <!-- Name input --> <div class="form-outline mb-4"> <input type="text" id="name3" class="form-control" /> <label class="form-label" for="name3">Name</label> </div> <!-- Email input --> <div class="form-outline mb-4"> <input type="email" id="email3" class="form-control" /> <label class="form-label" for="email3">Email address</label> </div> <!-- Checkbox --> <div class="form-check d-flex justify-content-center mb-4"> <input class="form-check-input me-2" type="checkbox" value="" id="checkbox3" checked /> <label class="form-check-label" for="checkbox3"> I have read and agree to the terms </label> </div> <!-- Submit button --> <button type="submit" class="btn btn-primary btn-block">Send</button> </form> </div> </div> </div> </div> <!-- Modal --> </div> <!-- End your project here--> <!-- MDB --> <script type="text/javascript" src="js/mdb.min.js"></script> <!-- Custom scripts --> <script type="text/javascript"></script> </body> </html>