다음은 로그인 HTML 파일이다. 부트스트랩(http://getbootstrap.com/)을 사용하여 디자인했다.
▼ public/login.html
<html> <head> <title>Login</title> <meta charset=“utf-8”> <meta http-equiv=“X-UA-Compatible” content=“IE=edge”> <meta name=“viewport” content=“width=device-width, initial-scale=1”> <link rel=“stylesheet” href=“https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> </head> <body> <div class=“container”> <div class=“container”> <div class=“alert alert-danger” role=“alert”> <span class=“glyphicon glyphicon-exclamation-sign”></span> {{ .message }} </div> <form class=“form-signin” action=”/login” method=“post”> <h2 class=“form-signin-heading”>Please sign in</h2> <label for=“inputUsername” class=“sr-only”>Username</label> <input name=“username” class=“form-control” placeholder=“Username” required autofocus> <label for=“inputPassword” class=“sr-only”>Password</label> <input type=“password” name=“password” class=“form-control” placeholder=“Password” required> <button class=“btn btn-lg btn-primary btn-block” type=“submit”>Sign in</button> </form> </div> </body> </html>