From ced38138068ea514b83f08b1fcb3049d9e9f1d38 Mon Sep 17 00:00:00 2001 From: heshunme Date: Sun, 14 Jul 2024 13:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=92=8C=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E7=95=8C=E9=9D=A2get=E2=88=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/login.xhtml | 38 +++++++++++++ src/main/webapp/register.xhtml | 38 +++++++++++++ src/main/webapp/resources/css/auth.css | 75 ++++++++++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 src/main/webapp/login.xhtml create mode 100644 src/main/webapp/register.xhtml create mode 100644 src/main/webapp/resources/css/auth.css diff --git a/src/main/webapp/login.xhtml b/src/main/webapp/login.xhtml new file mode 100644 index 0000000..d51f075 --- /dev/null +++ b/src/main/webapp/login.xhtml @@ -0,0 +1,38 @@ + + + + + + Login - My Portfolio + + + + + + + +
+
+

Login

+
+
+ + +
+
+ + +
+ +
+ +
+
+
+ +
+
+ \ No newline at end of file diff --git a/src/main/webapp/register.xhtml b/src/main/webapp/register.xhtml new file mode 100644 index 0000000..9761e13 --- /dev/null +++ b/src/main/webapp/register.xhtml @@ -0,0 +1,38 @@ + + + + + + Register - My Portfolio + + + + + + + +
+
+

Register

+
+
+ + +
+
+ + +
+ +
+ +
+
+
+ +
+
+ \ No newline at end of file diff --git a/src/main/webapp/resources/css/auth.css b/src/main/webapp/resources/css/auth.css new file mode 100644 index 0000000..df6202a --- /dev/null +++ b/src/main/webapp/resources/css/auth.css @@ -0,0 +1,75 @@ +body { + font-family: Arial, sans-serif; + background-color: #f5f5f5; + margin: 0; + padding: 0; +} + +main { + display: flex; + justify-content: center; + align-items: center; + min-height: 70vh; +} + +section { + background: #fff; + padding: 20px; + border-radius: 8px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); + width: 40%; +} + +h1 { + font-size: 24px; + margin-bottom: 20px; + color: #333; +} + +.form-container { + width: 100%; +} + +.form-group { + margin-bottom: 15px; +} + +.form-group h\\:outputLabel { + display: block; + margin-bottom: 5px; + font-weight: bold; + color: #555; +} + +.form-control { + width: 100%; + padding: 10px; + border: 1px solid #ddd; + border-radius: 4px; + box-sizing: border-box; +} + +.btn { + display: inline-block; + padding: 10px 20px; + color: #fff; + background-color: #007bff; + border: none; + border-radius: 4px; + cursor: pointer; + text-align: center; + text-decoration: none; +} + +.btn-primary { + background-color: #007bff; +} + +.btn-primary:hover { + background-color: #0056b3; +} + +h\\:messages { + margin-top: 20px; + color: #ff0000; +} \ No newline at end of file