Advertisement
stronk_8s

abc

Apr 27th, 2025
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.39 KB | Source Code | 0 0
  1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4.       xmlns:h="http://xmlns.jcp.org/jsf/html"
  5.       xmlns:f="http://xmlns.jcp.org/jsf/core">
  6.     <h:head>
  7.         <title>Login Page</title>
  8.         <style>
  9.             body {
  10.                 background-color: #f0f2f5;
  11.                 display: flex;
  12.                 justify-content: center;
  13.                 align-items: center;
  14.                 height: 100vh;
  15.                 margin: 0;
  16.                 font-family: Arial, sans-serif;
  17.             }
  18.             .login-card {
  19.                 background-color: #ffffff;
  20.                 padding: 30px 40px;
  21.                 border-radius: 10px;
  22.                 box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
  23.                 width: 350px;
  24.                 text-align: center;
  25.             }
  26.             h2 {
  27.                 margin-bottom: 20px;
  28.                 color: #333333;
  29.             }
  30.             .login-button {
  31.                 background-color: #4CAF50;
  32.                 color: white;
  33.                 border: none;
  34.                 padding: 10px 20px;
  35.                 margin-top: 15px;
  36.                 border-radius: 5px;
  37.                 cursor: pointer;
  38.                 font-size: 16px;
  39.             }
  40.             .login-button:hover {
  41.                 background-color: #45a049;
  42.             }
  43.             .form-grid {
  44.                 margin: 20px 0;
  45.             }
  46.         </style>
  47.     </h:head>
  48.     <h:body>
  49.         <f:view>
  50.             <div class="login-card">
  51.                 <h:form>
  52.                     <h2>Login</h2>
  53.                     <h:panelGrid columns="2" cellpadding="5" styleClass="form-grid">
  54.                         <h:outputLabel value="Username:" for="username" />
  55.                         <h:inputText id="username" value="#{admincdi.login.username}" required="true" label="Username" />
  56.                         <h:outputLabel value="Password:" for="password" />
  57.                         <h:inputSecret id="password" value="#{admincdi.login.password}" required="true" label="Password" />
  58.                     </h:panelGrid>
  59.  
  60.                     <h:commandButton value="Login" action="#{admincdi.login()}" styleClass="login-button" />
  61.                 </h:form>
  62.             </div>
  63.         </f:view>
  64.     </h:body>
  65. </html>
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement