Skip to content

Commit 2cfc03a

Browse files
committed
fix: relativ paths and menu UI tweaks
1 parent a281232 commit 2cfc03a

File tree

4 files changed

+39
-33
lines changed

4 files changed

+39
-33
lines changed

src/account/organization/update.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,15 @@
275275
<a id="deleteStorage" actions="save"></a>
276276
</form>
277277

278-
<form hidden>
278+
<form >
279279
<input type="text" array="organizations" object key="_id" state_id="accountOrg">
280280
<input type="text" array="users" object="$user_id" key="_id">
281-
<a id="createOrganization" actions="createOrganization"></a>
281+
<a id="createOrganization" actions="createOrganization">createOrganization</a>
282+
</form>
283+
<form array="organizations" object state_id="accountOrg">
284+
<input id="organization" type="text" key="_id">
285+
<input id="hostname" type="text" key="host[1].name">
286+
<a id="createEnvironments" actions="createEnvironments">createEnvironments</a>
282287
</form>
283288

284289
</section>

src/account/signin.html

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -70,55 +70,58 @@
7070
<section
7171
class="bg display:flex justify-content:center align-items:center width:100% min-height:100vh">
7272
<div class="flex-grow:1 max-width:400px">
73-
<form array="users" id="signin">
74-
<div
75-
class="display:flex justify-content:space-between padding:20px background:white background:#222@dark">
76-
<h3>Sign In</h3>
77-
<i
78-
class="font-size:70px"
79-
src="../assets/svg/sign-in-alt.svg"></i>
73+
<!-- Sign-in form: improved semantics, autocomplete and accessibility -->
74+
<form array="users" id="signin" role="form" aria-label="Sign in to CoCreate" autocomplete="on">
75+
<div class="display:flex justify-content:space-between padding:20px background:white background:#222@dark">
76+
<h1>Sign In</h1>
77+
<i class="font-size:70px" src="../assets/svg/sign-in-alt.svg" aria-hidden="true"></i>
8078
</div>
81-
<div
82-
class="padding:20px background:gainsboro background:#444@dark">
79+
<div class="padding:20px background:gainsboro background:#444@dark">
8380
<floating-label>
8481
<input
8582
type="email"
83+
id="signin-email"
84+
name="email"
8685
key="email"
8786
placeholder="Email"
8887
class="floating-label"
8988
required
90-
email />
89+
autocomplete="email"
90+
aria-required="true"
91+
aria-label="Email address" />
9192
</floating-label>
9293

9394
<floating-label>
9495
<input
9596
type="password"
97+
id="signin-password"
98+
name="password"
9699
key="password"
97100
placeholder="Password"
98101
class="floating-label"
99-
required />
102+
required
103+
autocomplete="current-password"
104+
aria-required="true"
105+
aria-label="Password" />
100106
<a
101107
click-query="$previous"
102108
click-attribute="type"
103109
click-value="text, password"
104-
class="floating-icon">
110+
class="floating-icon"
111+
aria-label="Toggle password visibility"
112+
role="button">
105113
<i
106114
click-attribute="src"
107115
click-value="../assets/svg/eye-slash.svg, ../assets/svg/eye.svg"
108116
src="../assets/svg/eye.svg"
109-
class="width:20px height:20px"></i>
117+
class="width:20px height:20px"
118+
aria-hidden="true"></i>
110119
</a>
111120
</floating-label>
112121

113-
<button
114-
actions="validate, signIn"
115-
href="index.html">
116-
Sign In
117-
</button>
122+
<button type="button" actions="validate, signIn" aria-label="Sign in to CoCreate">Sign In</button>
118123

119-
<a show="#forgotpass" hide="#signin"
120-
>Forgot Password?</a
121-
>
124+
<a show="#forgotpass" hide="#signin">Forgot Password?</a>
122125
</div>
123126
</form>
124127

@@ -182,20 +185,18 @@ <h3>Password Recovery</h3>
182185
</section>
183186
</main>
184187

185-
<div class="position:fixed!important bottom:15px right:15px">
186-
<div
187-
template="validate, signIn, forgotPassword"
188+
<!-- notification card (aria-live) -->
189+
<div class="position:fixed!important bottom:15px right:15px" aria-live="polite" role="status" aria-atomic="true">
190+
<div template="validate, signIn, forgotPassword"
188191
class="card position:relative margin-top:10px padding:20px {{status}}">
189192
<span class="{{type}} font-weight:400">{{message}}</span>
190-
<!-- <a
191-
onload-action="click"
192-
actions="timeout(3000), action($next)"></a> -->
193-
<a actions="remove" class="position:absolute top:4px right:4px">
194-
<i src="../assets/svg/times.svg"></i>
193+
<a actions="remove" class="position:absolute top:4px right:4px" aria-label="Dismiss notification">
194+
<i src="../assets/svg/times.svg" aria-hidden="true"></i>
195195
</a>
196196
</div>
197197
</div>
198198

199199
<script src="../dist/CoCreate.js"></script>
200200
</body>
201201
</html>
202+
</html>

src/components/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</ul> -->
5555

5656
<a href="$relativePath/demos/" class="color:dodgerblue:hover">Demos</a>
57-
<a href="$relativePath/#pricing" class="color:dodgerblue:hover">Pricing</a>
57+
<a href="#pricing" class="color:dodgerblue:hover">Pricing</a>
5858
<a href="$relativePath/docs/" class="color:dodgerblue:hover">Docs</a>
5959
<a href="$relativePath/blog/" class="color:dodgerblue:hover">Blog</a>
6060
<!-- <a href="$relativePath/discuss/" class="color:dodgerblue:hover"

src/components/sidenav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<!-- <h3 class="text-transform:capitalize margin:50px_10px_5px">Navigation</h3> -->
6868
<a href="$relativePath/demos/">Demos</a>
6969
<a
70-
href="$relativePath/#pricing"
70+
href="#pricing"
7171
actions="state"
7272
state_to="mainView"
7373
state-src="$relativePath/home/"

0 commit comments

Comments
 (0)