sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [sling-org-apache-sling-auth-form] branch master updated: Updating the look and feel of the login form for SLING-7378
Date Sun, 14 Jan 2018 14:23:01 GMT
This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-auth-form.git


The following commit(s) were added to refs/heads/master by this push:
     new bee09f3  Updating the look and feel of the login form for SLING-7378
bee09f3 is described below

commit bee09f35b10113c71a2ab70f0585d129126d1b1b
Author: Dan Klco <daniel.klco@gmail.com>
AuthorDate: Sun Jan 14 09:22:06 2018 -0500

    Updating the look and feel of the login form for SLING-7378
---
 .../org/apache/sling/auth/form/impl/login.html     | 154 +++++++++------------
 1 file changed, 66 insertions(+), 88 deletions(-)

diff --git a/src/main/resources/org/apache/sling/auth/form/impl/login.html b/src/main/resources/org/apache/sling/auth/form/impl/login.html
index 36d924d..9fae2b6 100644
--- a/src/main/resources/org/apache/sling/auth/form/impl/login.html
+++ b/src/main/resources/org/apache/sling/auth/form/impl/login.html
@@ -1,93 +1,71 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html>
 <!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
 
-      Licensed to the Apache Software Foundation (ASF) under one
-      or more contributor license agreements.  See the NOTICE file
-      distributed with this work for additional information
-      regarding copyright ownership.  The ASF licenses this file
-      to you under the Apache License, Version 2.0 (the
-      "License"); you may not use this file except in compliance
-      with the License.  You may obtain a copy of the License at
-     
-        http://www.apache.org/licenses/LICENSE-2.0
-     
-      Unless required by applicable law or agreed to in writing,
-      software distributed under the License is distributed on an
-      "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-      KIND, either express or implied.  See the License for the
-      specific language governing permissions and limitations
-      under the License.
+   http://www.apache.org/licenses/LICENSE-2.0
 
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
 -->
-<html xml:lang="en" lang="en"
-      xmlns="http://www.w3.org/1999/xhtml"
->
-<head>
-   <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-   <title>Login</title>
-   
-   <style type="text/css">
-   body {
-       font-family: Verdana, Arial, Helvetica, sans-serif;
-       font-size: 10px;
-       color: black;
-       background-color: white;
-   }
-   
-   #main {
-       border: 1px solid gray;
-       margin-top: 25%;
-       margin-left: 25%;
-       width: 400px;
-       padding: 10px;
-   }
-   
-   #loginform {
-       padding: 0px;
-       margin: 0px;
-   }
-   
-   #err {
-       color: red;
-   }
-   </style>
-   
-</head>
-
-<body>
-
-<div id="main"><!-- Login Form -->
-<h3>Login:</h3>
-<form id="loginform" method="POST" action="${requestContextPath}/j_security_check"
-        enctype="multipart/form-data" accept-charset="UTF-8">
-
-   <input type="hidden" name="_charset_" value="UTF-8" />
-   <input type="hidden" name="resource" value="${resource}" />
-
-   <div id="err">
-      <p>${j_reason}</p>
-   </div>
-      
-   <div>
-      <label for="j_username" accesskey="u">Username:</label>
-   </div>
-   <div>
-      <input id="j_username" name="j_username" type="text" />
-   </div>
-   
-   
-   <div>
-      <label for="j_password" accesskey="p">Password:</label>
-   </div>
-   <div>
-      <input id="j_password" name="j_password" type="password" />
-   </div>
-
-   <div class="buttongroup">
-      <button id="login" accesskey="l" class="form-button" type="submit">Login</button>
-   </div>
-</form>
-</div>
-
-</body>
+    <head>
+        <meta charset="utf-8" />
+        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+        <meta name="viewport" content="width=device-width, initial-scale=1" />
+        <title>Login to Apache Sling</title>
+        <link href="/etc/clientlibs/launchpad/dist/css/index.css" rel="stylesheet" />
+        <link href="/etc/clientlibs/launchpad/dist/css/form.css" rel="stylesheet" />
+    </head>
+    <body>
+        <div class="Grid Fit-Medium Home-Grid">
+            <div class="Gradient"></div>
+            <header class="Cell Medium-35 Large-25 Align-Center Logos">
+                <a href="http://sling.apache.org" target="_blank" id="sling-logo" title="Visit
the Apache Sling website">
+                    <img src="/sling-logo.svg" alt="Apache Sling Logo"/>
+                </a>
+                <a href="http://apache.org" target="_blank" id="asf-logo" title="Visit
the Apache Software Foundation website">
+                    <img src="/etc/clientlibs/launchpad/dist/img/asf-logo.svg" alt="Apache
Software Foundation Logo"/>
+                </a>
+            </header>
+            <div class="Cell Align-Center Main-Content">
+                <div class="Grid">
+                    <section class="Cell Large-100">
+                    	<h3>Login:</h3>
+						<form id="loginform" method="POST" action="${requestContextPath}/j_security_check"
enctype="multipart/form-data" accept-charset="UTF-8">
+							<input type="hidden" name="_charset_" value="UTF-8" />
+							<input type="hidden" name="resource" value="${resource}" />
+							<div id="error">
+								<p>${j_reason}</p>
+							</div>
+							<div>
+								<label for="j_username" >Username:</label>
+							</div>
+							<div>
+								<input id="j_username" name="j_username" type="text" />
+							</div>
+							<div>
+								<label for="j_password" accesskey="p">Password:</label>
+							</div>
+							<div>
+								<input id="j_password" name="j_password" type="password" />
+							</div>
+							<div class="buttongroup">
+								<button id="login" class="form-button" type="submit">Login</button>
+							</div>
+						</form>
+                    </section>
+                </div>
+            </div>
+        </div>
+    </body>
 </html>

-- 
To stop receiving notification emails like this one, please contact
['"commits@sling.apache.org" <commits@sling.apache.org>'].

Mime
View raw message