@axium/server 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/lib/account.css +36 -0
- package/web/lib/styles.css +5 -0
- package/web/routes/+page.svelte +9 -47
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.account-section {
|
|
2
|
+
width: 50%;
|
|
3
|
+
padding-top: 4em;
|
|
4
|
+
|
|
5
|
+
> div:has(+ div) {
|
|
6
|
+
border-bottom: 1px solid #8888;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.account-section .account-item {
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: 10em 1fr 2em;
|
|
13
|
+
align-items: center;
|
|
14
|
+
width: 100%;
|
|
15
|
+
gap: 1em;
|
|
16
|
+
text-wrap: nowrap;
|
|
17
|
+
padding-bottom: 1em;
|
|
18
|
+
|
|
19
|
+
> :first-child {
|
|
20
|
+
margin: 0 5em 0 1em;
|
|
21
|
+
grid-column: 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
> :nth-child(2) {
|
|
25
|
+
margin: 0;
|
|
26
|
+
grid-column: 2;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
> :last-child:nth-child(3) {
|
|
30
|
+
margin: 0;
|
|
31
|
+
display: inline;
|
|
32
|
+
grid-column: 3;
|
|
33
|
+
font-size: 0.75em;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
}
|
package/web/lib/styles.css
CHANGED
package/web/routes/+page.svelte
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { getUserImage } from '@axium/core';
|
|
3
3
|
import Icon from '../lib/Icon.svelte';
|
|
4
4
|
import '../lib/styles.css';
|
|
5
|
+
import '../lib/account.css';
|
|
5
6
|
import type { PageData } from './$types.js';
|
|
6
7
|
|
|
7
8
|
const {
|
|
@@ -27,18 +28,18 @@
|
|
|
27
28
|
<img id="pfp" src={image} alt="User profile" />
|
|
28
29
|
<p id="greeting">Welcome, {user.name}</p>
|
|
29
30
|
<div class="account-section main">
|
|
30
|
-
<div>
|
|
31
|
-
<p>Name</p>
|
|
31
|
+
<div class="account-item">
|
|
32
|
+
<p class="subtle">Name</p>
|
|
32
33
|
<p>{user.name}</p>
|
|
33
|
-
<a href="{prefix}/name"><Icon id="chevron-right" /></a>
|
|
34
|
+
<a class="change" href="{prefix}/name"><Icon id="chevron-right" /></a>
|
|
34
35
|
</div>
|
|
35
|
-
<div>
|
|
36
|
-
<p>Email</p>
|
|
36
|
+
<div class="account-item">
|
|
37
|
+
<p class="subtle">Email</p>
|
|
37
38
|
<p>{user.email}</p>
|
|
38
|
-
<a href="{prefix}/email"><Icon id="chevron-right" /></a>
|
|
39
|
+
<a class="change" href="{prefix}/email"><Icon id="chevron-right" /></a>
|
|
39
40
|
</div>
|
|
40
|
-
<div>
|
|
41
|
-
<p>User ID <dfn title="This is your UUID."><Icon id="regular/circle-info" /></dfn></p>
|
|
41
|
+
<div class="account-item">
|
|
42
|
+
<p class="subtle">User ID <dfn title="This is your UUID."><Icon id="regular/circle-info" /></dfn></p>
|
|
42
43
|
<p>{user.id}</p>
|
|
43
44
|
</div>
|
|
44
45
|
<a id="signout" href="/auth/signout"><button>Sign out</button></a>
|
|
@@ -66,45 +67,6 @@
|
|
|
66
67
|
font-size: 2em;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
:global(.account-section) {
|
|
70
|
-
width: 50%;
|
|
71
|
-
padding-top: 4em;
|
|
72
|
-
|
|
73
|
-
> div:has(+ div) {
|
|
74
|
-
border-bottom: 1px solid #8888;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
:global(.account-section) > div {
|
|
79
|
-
display: grid;
|
|
80
|
-
grid-template-columns: 10em 1fr 2em;
|
|
81
|
-
align-items: center;
|
|
82
|
-
width: 100%;
|
|
83
|
-
gap: 1em;
|
|
84
|
-
text-wrap: nowrap;
|
|
85
|
-
padding-bottom: 1em;
|
|
86
|
-
|
|
87
|
-
> :first-child {
|
|
88
|
-
margin: 0 5em 0 1em;
|
|
89
|
-
color: #bbbb;
|
|
90
|
-
font-size: 0.9em;
|
|
91
|
-
grid-column: 1;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
> :nth-child(2) {
|
|
95
|
-
margin: 0;
|
|
96
|
-
grid-column: 2;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
> a:last-child {
|
|
100
|
-
margin: 0;
|
|
101
|
-
display: inline;
|
|
102
|
-
grid-column: 3;
|
|
103
|
-
font-size: 0.75em;
|
|
104
|
-
cursor: pointer;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
70
|
#signout {
|
|
109
71
|
margin-top: 2em;
|
|
110
72
|
}
|