From 9568b35fa7934c185868fe050f18f854ba47c3fc Mon Sep 17 00:00:00 2001 From: bagas Date: Fri, 26 Apr 2024 11:21:44 +0700 Subject: [PATCH] Revamped user page UI --- .idea/.gitignore | 8 ++ .idea/filekeeper.iml | 9 ++ .idea/modules.xml | 8 ++ .idea/vcs.xml | 6 + view/user/user.templ | 294 +++++++++++++++++++++++++++++++++++++------ 5 files changed, 285 insertions(+), 40 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/filekeeper.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/filekeeper.iml b/.idea/filekeeper.iml new file mode 100644 index 0000000..5e764c4 --- /dev/null +++ b/.idea/filekeeper.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..33fcc00 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/view/user/user.templ b/view/user/user.templ index 3e520b1..4e09a30 100644 --- a/view/user/user.templ +++ b/view/user/user.templ @@ -4,47 +4,261 @@ import "github.com/fossyy/filekeeper/view/layout" templ content(email string, username string, title string) { @layout.Base(title){ -
-
-

- User Profile -

-

- This is some information about the user. -

+
+
+
+
+

Profile

+
+
+ + +
+
+ + +
+
+ +
+
+ JL +
+ +
+
+
+
+
+

Session Management

+
+
+
+ + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + +
+ IP Address + + Browser + + Device + + Last Activity + + Actions +
+ 192.168.1.100Chrome 89 + Desktop + 1 week + ago + + +
+
+
+
+
+ +
+

+ Logged in as John Doe +

+

+ Logged in from 192.168.1.100 +

+

+ Logged in at 2023-04-26 15:30:00 +

+
+
+
+
+
+

Reset Password

+
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+
+ +
+

+ Click to log out or terminate the current session. +

+
+
+ +
+
+
+

Storage Usage +

+
+
+
+ Used + 12.5GB +
+
+
+
+
+ Available + 37.5GB +
+
+
+
+
+
+
+
+

Upgrade Storage +

+
+
+
+

Pro Plan

+

50GB of storage for $9.99/month

+ +
+
+

Enterprise Plan

+

1TB of storage for $49.99/month

+ +
+
+
+
-
-
-
-
- Full name -
-
- { username } -
-
-
-
- Email address -
-
- { email } -
-
-
-
- Password -
-
- ntah lah -
-
-
-
-
- -
-
+ } }