_Csandeep

Responsive Login Page - HTML5/PHP/Bootstrap3.3.4

Mar 23rd, 2015 (edited)
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.13 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4.     <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  5.     <link type="text/css" href="css/bootstrap/bootstrap.css" rel="stylesheet">
  6.     <style type="text/css">
  7.         html {
  8.             height: 100%;
  9.         }
  10.         * {
  11.             margin: 0;
  12.             padding: 0;
  13.         }
  14.         body {
  15.             font: normal .80em 'trebuchet ms', arial, sans-serif;
  16.             background: #FFF;
  17.            color: #555;
  18.        }
  19.         p {
  20.             padding: 0 0 20px 0;
  21.             line-height: 1.7em;
  22.         }
  23.         img {
  24.             border: 0;
  25.         }
  26.         .header-image img {
  27.             /* Avoid using !important as it breaks natural cascading of stylesheets. See: http://tinyurl.com/asn2mzo */
  28.             width: 100% !important;
  29.         }
  30.         .center-text {
  31.             text-align: center;
  32.             vertical-align: middle;
  33.         }
  34.  
  35.         /* LOGIN-FORM */
  36.         section#loginBox {
  37.            background-color: rgb(255, 255, 255);
  38.             border: 1px solid rgba(0, 0, 0, .15);
  39.             border-radius: 4px;
  40.             box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 4px rgba(0, 0, 0, 0.2);
  41.             margin: 40px auto; /*aligns center*/
  42.             padding: 24px;
  43.             width: 350px;
  44.         }
  45.         form.minimal label {
  46.             display: block;
  47.             margin: 6px 0;
  48.         }
  49.         form.minimal input[type="text"], form.minimal input[type="email"], form.minimal input[type="number"], form.minimal input[type="search"], form.minimal input[type="password"], form.minimal textarea {
  50.             background-color: rgb(255, 255, 255);
  51.             border: 1px solid rgb(186, 186, 186);
  52.             border-radius: 2px;
  53.             -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  54.             -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  55.             box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  56.             display: block;
  57.             font-size: 14px;
  58.             margin: 6px 0 12px 0;
  59.             padding: 8px;
  60.             text-shadow: 0 1px 1px rgba(255, 255, 255, 1);
  61.             width: 90%;
  62.             -webkit-transition: all 0.1s linear;
  63.             -moz-transition: all 0.1s linear;
  64.             -o-transition: all 0.1s linear;
  65.             transition: all 0.1s linear;
  66.         }
  67.         form.minimal input[type="text"]:focus, form.minimal input[type="email"]:focus, form.minimal input[type="number"]:focus, form.minimal input[type="search"]:focus, form.minimal input[type="password"]:focus, form.minimal textarea:focus, form.minimal select:focus {
  68.             border-color: #4195fc;
  69.            -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 8px #4195fc;
  70.            -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 8px #4195fc;
  71.            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 8px #4195fc;
  72.            color: rgb(0, 0, 0);
  73.         }
  74.     </style>
  75. </head>
  76. <body>
  77. <!--START-PAGE-HEADER-->
  78. <div class="container-fluid">
  79.     <div class="header-image"><img src="../../images/header.jpg"></div>
  80. </div>
  81. <!--END-PAGE-HEADER-->
  82. <div class="container">
  83.     <!--START-LOGIN-FORM-->
  84.     <section id="loginBox">
  85.         <h1>Login:</h1>
  86.         <form method="post" action="login_handler.php" class="minimal">
  87.             <label for="username"> Username:
  88.                 <input type="text" name="username" id="username" placeholder="Username"/>
  89.             </label>
  90.             <label for="password"> Password:
  91.                 <input type="password" name="password" id="password" placeholder="Password" required="required"/>
  92.             </label>
  93.             <button type="submit" class="btn-minimal">
  94.                 Sign in
  95.             </button>
  96.         </form>
  97.     </section>
  98.     <!--END-LOGIN-FORM-->
  99. </div>
  100. <!--START-PAGE-FOOTER-->
  101. <div id="footer">
  102.     <div class="container-fluid">
  103.         <p class="center-text">
  104.             Copyright &copy; 2015 Sandeep Chatterjee.
  105.         </p>
  106.         </p>
  107.     </div>
  108. </div>
  109. <!--END-PAGE-FOOTER-->
  110. <script src="js/jquery/2.1.3/jquery.min.js"></script>
  111. <script src="js/bootstrap/bootstrap.js"></script>
  112. </body>
  113. </html>
Add Comment
Please, Sign In to add comment