"Dark modal login box bootstrap 5.1.3"
Bootstrap 4.1.1 Snippet by BrCodeSnippets

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> <!-- Modal --> <!-- by https://hostcwb.com.br/tutoriais/ --> <div id="login_modal" class="modal fade" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-fullscreen-sm-down"> <div class="modal-content bg-dark bg-gradient opacity-75"> <div class="modal-body"> <div class="row"> <div class="col-12 m-auto"> <div class="text-center"> <i class="d-block bi bi-person-circle text-white big-icon mb-3"></i> </div> <form class="row g-3"> <div class="col-12"> <input type="text" class="form-control" name="" value="" placeholder="E-mail"> </div> <div class="col-12"> <input type="text" class="form-control" name="" value="" placeholder="password"> </div> <div class="col-12"> <button type="button" name="button" class="btn btn-dark float-end shadow-sm bg-gradient fw-bolder px-5">Enter</button> </div> </form> </div> </div> </div> <div class="modal-footer justify-content-between text-white p-0 px-3"> <span> <a href="#">Reset password</a></span> <span>Not a member yet? <a href="#">Sign Up</a>.</span> </div> </div> </div> </div>
.big-icon { font-size: 10em; }
window.addEventListener("load", function(event) { let myModalElement = document.getElementById('login_modal'); let myModal = new bootstrap.Modal(myModalElement, { keyboard: false }); myModal.show(); console.log("Todos os recursos terminaram o carregamento!"); });

Related: See More


Questions / Comments: