Last active
February 25, 2020 10:28
-
-
Save faruk09/601e4e4809e02e88dc6dfb1e6c1f2c8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap Simple Subscribe Newsletter Modal</title> | |
<link href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round" rel="stylesheet"> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
<style type="text/css"> | |
body { | |
font-family: 'Varela Round', sans-serif; | |
} | |
.modal-newsletter { | |
color: #999; | |
width: 625px; | |
font-size: 15px; | |
} | |
.modal-newsletter .modal-content { | |
padding: 30px; | |
border-radius: 0; | |
border: none; | |
} | |
.modal-newsletter .modal-header { | |
border-bottom: none; | |
position: relative; | |
border-radius: 0; | |
} | |
.modal-newsletter h4 { | |
color: #000; | |
font-size: 30px; | |
margin: 0; | |
font-weight: bold; | |
} | |
.modal-newsletter .close { | |
position: absolute; | |
top: -15px; | |
right: -15px; | |
text-shadow: none; | |
opacity: 0.3; | |
font-size: 24px; | |
} | |
.modal-newsletter .close:hover { | |
opacity: 0.8; | |
} | |
.modal-newsletter .icon-box { | |
color: #7265ea; | |
display: inline-block; | |
z-index: 9; | |
text-align: center; | |
position: relative; | |
margin-bottom: 10px; | |
} | |
.modal-newsletter .icon-box i { | |
font-size: 110px; | |
} | |
.modal-newsletter .form-control, .modal-newsletter .btn { | |
min-height: 46px; | |
border-radius: 0; | |
} | |
.modal-newsletter .form-control { | |
box-shadow: none; | |
border-color: #dbdbdb; | |
} | |
.modal-newsletter .form-control:focus { | |
border-color: #f95858; | |
box-shadow: 0 0 8px rgba(249, 88, 88, 0.4); | |
} | |
.modal-newsletter .btn { | |
color: #fff; | |
background: #f95858; | |
text-decoration: none; | |
transition: all 0.4s; | |
line-height: normal; | |
padding: 6px 20px; | |
min-width: 150px; | |
margin-left: 6px !important; | |
border: none; | |
} | |
.modal-newsletter .btn:hover, .modal-newsletter .btn:focus { | |
box-shadow: 0 0 8px rgba(249, 88, 88, 0.4); | |
background: #f72222; | |
outline: none; | |
} | |
.modal-newsletter .input-group { | |
margin-top: 30px; | |
} | |
.hint-text { | |
margin: 100px auto; | |
text-align: center; | |
} | |
</style> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$("#myModal").modal('show'); | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="myModal" class="modal fade"> | |
<div class="modal-dialog modal-newsletter"> | |
<div class="modal-content"> | |
<form action="/examples/actions/confirmation.php" method="post"> | |
<div class="modal-header"> | |
<h4>Subscribe to our newsletter</h4> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><span>×</span></button> | |
</div> | |
<div class="modal-body"> | |
<p>Signup for our weekly newsletter to get the latest news, updates and amazing offers delivered directly in your inbox.</p> | |
<div class="input-group"> | |
<input type="email" class="form-control" placeholder="Enter your email" required> | |
<span class="input-group-btn"> | |
<input type="submit" class="btn btn-primary" value="Subscribe"> | |
</span> | |
</div> | |
</div> | |
</form> | |
</div> | |
</div> | |
</div> | |
<p class="hint-text"><strong>Note:</strong> Please refresh the page or run the code to reload the modal.</p> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Auto Appair | |
---------------- | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap Subscribe Newsletter Form inside Modal</title> | |
<link href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round" rel="stylesheet"> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
<style type="text/css"> | |
body { | |
font-family: 'Varela Round', sans-serif; | |
} | |
.modal-newsletter { | |
color: #999; | |
font-size: 15px; | |
} | |
.modal-newsletter .modal-content { | |
padding: 40px; | |
border-radius: 0; | |
border: none; | |
} | |
.modal-newsletter .modal-header { | |
border-bottom: none; | |
position: relative; | |
text-align: center; | |
border-radius: 5px 5px 0 0; | |
} | |
.modal-newsletter h4 { | |
color: #000; | |
text-align: center; | |
font-size: 30px; | |
margin: 0 0 25px; | |
font-weight: bold; | |
text-transform: capitalize; | |
} | |
.modal-newsletter .close { | |
background: #c0c3c8; | |
position: absolute; | |
top: -15px; | |
right: -15px; | |
color: #fff; | |
text-shadow: none; | |
opacity: 0.5; | |
width: 22px; | |
height: 22px; | |
border-radius: 20px; | |
font-size: 16px; | |
} | |
.modal-newsletter .close span { | |
position: relative; | |
top: -1px; | |
} | |
.modal-newsletter .close:hover { | |
opacity: 0.8; | |
} | |
.modal-newsletter .icon-box { | |
color: #7265ea; | |
display: inline-block; | |
z-index: 9; | |
text-align: center; | |
position: relative; | |
margin-bottom: 10px; | |
} | |
.modal-newsletter .icon-box i { | |
font-size: 110px; | |
} | |
.modal-newsletter .form-control, .modal-newsletter .btn { | |
min-height: 46px; | |
border-radius: 3px; | |
} | |
.modal-newsletter .form-control { | |
box-shadow: none; | |
border-color: #dbdbdb; | |
} | |
.modal-newsletter .form-control:focus { | |
border-color: #7265ea; | |
box-shadow: 0 0 8px rgba(114, 101, 234, 0.5); | |
} | |
.modal-newsletter .btn { | |
color: #fff; | |
border-radius: 4px; | |
background: #7265ea; | |
text-decoration: none; | |
transition: all 0.4s; | |
line-height: normal; | |
padding: 6px 20px; | |
min-width: 150px; | |
border: none; | |
} | |
.modal-newsletter .btn:hover, .modal-newsletter .btn:focus { | |
background: #4e3de4; | |
outline: none; | |
} | |
.modal-newsletter .input-group { | |
margin: 30px 0 15px; | |
} | |
.hint-text { | |
margin: 100px auto; | |
text-align: center; | |
} | |
</style> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$("#myModal").modal('show'); | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="myModal" class="modal fade"> | |
<div class="modal-dialog modal-newsletter"> | |
<div class="modal-content"> | |
<form action="/examples/actions/confirmation.php" method="post"> | |
<div class="modal-header"> | |
<div class="icon-box"> | |
<i class="fa fa-envelope-open-o"></i> | |
</div> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><span>×</span></button> | |
</div> | |
<div class="modal-body text-center"> | |
<h4>Subscribe to our newsletter</h4> | |
<p>Join our subscribers list to get the latest news, updates and special offers delivered directly in your inbox.</p> | |
<div class="input-group"> | |
<input type="email" class="form-control" placeholder="Enter your email" required> | |
<span class="input-group-btn"> | |
<input type="submit" class="btn btn-primary" value="Subscribe"> | |
</span> | |
</div> | |
</div> | |
</form> | |
</div> | |
</div> | |
</div> | |
<p class="hint-text"><strong>Note:</strong> Please refresh the page or run the code to reload the modal.</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment