Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version='1.0' encoding='UTF-8' ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core">
- <h:head>
- <title>Login Page</title>
- <style>
- body {
- background-color: #f0f2f5;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 100vh;
- margin: 0;
- font-family: Arial, sans-serif;
- }
- .login-card {
- background-color: #ffffff;
- padding: 30px 40px;
- border-radius: 10px;
- box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
- width: 350px;
- text-align: center;
- }
- h2 {
- margin-bottom: 20px;
- color: #333333;
- }
- .login-button {
- background-color: #4CAF50;
- color: white;
- border: none;
- padding: 10px 20px;
- margin-top: 15px;
- border-radius: 5px;
- cursor: pointer;
- font-size: 16px;
- }
- .login-button:hover {
- background-color: #45a049;
- }
- .form-grid {
- margin: 20px 0;
- }
- </style>
- </h:head>
- <h:body>
- <f:view>
- <div class="login-card">
- <h:form>
- <h2>Login</h2>
- <h:panelGrid columns="2" cellpadding="5" styleClass="form-grid">
- <h:outputLabel value="Username:" for="username" />
- <h:inputText id="username" value="#{admincdi.login.username}" required="true" label="Username" />
- <h:outputLabel value="Password:" for="password" />
- <h:inputSecret id="password" value="#{admincdi.login.password}" required="true" label="Password" />
- </h:panelGrid>
- <h:commandButton value="Login" action="#{admincdi.login()}" styleClass="login-button" />
- </h:form>
- </div>
- </f:view>
- </h:body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement