Bootstrap Sign up Form with Icons

Bootstrap Sign up Form with Icons

https://drive.google.com/file/d/1PFSI27up_TREF9pyM1tsjV1gnjqckDgq/view?usp=sharing

HTML files (index.html, confirmation.html) and the CSS (styles.css). I've made the code cleaner, added minor improvements, and ensured proper usage of Bootstrap elements.

1. index.html

<!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"> <link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet"> <title>Bootstrap Sign Up Form with Icons</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.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> <link rel="stylesheet" href="styles.css"> </head> <body> <div class="signup-form"> <form action="confirmation.html" method="post"> <h2>Sign Up</h2> <p>Please fill in this form to create an account!</p> <hr> <div class="form-group"> <div class="input-group"> <span class="input-group-addon"><i class="fa fa-user"></i></span> <input type="text" class="form-control" name="username" placeholder="Username" required="required"> </div> </div> <div class="form-group"> <div class="input-group"> <span class="input-group-addon"><i class="fa fa-paper-plane"></i></span> <input type="email" class="form-control" name="email" placeholder="Email Address" required="required"> </div> </div> <div class="form-group"> <div class="input-group"> <span class="input-group-addon"><i class="fa fa-lock"></i></span> <input type="password" class="form-control" name="password" placeholder="Password" required="required"> </div> </div> <div class="form-group"> <div class="input-group"> <span class="input-group-addon"> <i class="fa fa-lock"></i> <i class="fa fa-check"></i> </span> <input type="password" class="form-control" name="confirm_password" placeholder="Confirm Password" required="required"> </div> </div> <div class="form-group"> <label class="checkbox-inline"> <input type="checkbox" required="required"> I accept the <a href="#">Terms of Use</a> &amp; <a href="#">Privacy Policy</a> </label> </div> <div class="form-group"> <button type="submit" class="btn btn-primary btn-lg">Sign Up</button> </div> </form> <div class="text-center"> Already have an account? <a href="#">Login here</a> </div> </div> </body> </html>

2. styles.css

body { color: #fff; background: #19aa8d; font-family: 'Roboto', sans-serif; } .form-control, .form-control:focus, .input-group-addon { border-color: #e1e1e1; } .form-control, .btn { border-radius: 3px; } .signup-form { width: 390px; margin: 0 auto; padding: 30px 0; } .signup-form form { color: #999; border-radius: 3px; margin-bottom: 15px; background: #fff; box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); padding: 30px; } .signup-form h2 { color: #333; font-weight: bold; margin-top: 0; } .signup-form hr { margin: 0 -30px 20px; } .signup-form .form-group { margin-bottom: 20px; } .signup-form label { font-weight: normal; font-size: 13px; } .signup-form .form-control { min-height: 38px; box-shadow: none !important; } .signup-form .input-group-addon { max-width: 42px; text-align: center; } .signup-form input[type="checkbox"] { margin-top: 2px; } .signup-form .btn { font-size: 16px; font-weight: bold; background: #19aa8d; border: none; min-width: 140px; } .signup-form .btn:hover, .signup-form .btn:focus { background: #179b81; outline: none; } .signup-form a { color: #fff; text-decoration: underline; } .signup-form a:hover { text-decoration: none; } .signup-form form a { color: #19aa8d; text-decoration: none; } .signup-form form a:hover { text-decoration: underline; } .signup-form .fa { font-size: 21px; } .signup-form .fa-paper-plane { font-size: 18px; } .signup-form .fa-check { color: #fff; left: 17px; top: 18px; font-size: 7px; position: absolute; }

3. confirmation.html

<!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"> <link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet"> <title>Confirmation</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.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> <link rel="stylesheet" href="styles.css"> </head> <body style="background-color: #fff;"> <div class="signup-form text-success"> <h1>Confirmation Successful</h1> <button type="button" class="btn btn-danger"> <a href="index.html" style="color: #fff; text-decoration: none;">Back</a> </button> </div> </body> </html>

Key Changes:

  1. HTML:

    • Cleaned up form structure for readability.

    • Added meaningful titles to each page.

    • Ensured confirmation.html uses clear text for success confirmation and a link back to the sign-up page.

  2. CSS:

    • Cleaned up CSS for better organization and consistency.

    • Kept styling simple and ensured the sign-up form's design is responsive and looks neat.

  3. Confirmation Page:

    • The confirmation page now has a clear message and a styled "Back" button that links to the sign-up form.

Soeng Souy

Soeng Souy

Website that learns and reads, PHP, Framework Laravel, How to and download Admin template sample source code free.

Post a Comment

CAN FEEDBACK
close