-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
81 lines (81 loc) · 2.41 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Git Relax</title>
<meta name=viewport content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel=stylesheet href=/style.css>
</head>
<body>
<header id=header>
<h1>Git Relax</h1>
</header>
<main>
<aside id=aside></aside>
<article id=article></article>
</main>
<template id=loginForm>
<form>
<h2>Please Login</h2>
<p>
<label for=username-input>Username</label>
<input type=text id=username-input name=username required pattern=[a-z]+ minlength=3 maxlength=32 placeholder=eva>
<label for=password-input>Password</label>
<input type=password id=password-input name=password required minlength=3>
<button type=submit>Login</button>
</p>
<p>or <a href=#>create an account</a></p>
</form>
</template>
<template id=signupForm>
<form>
<h2>Signup Now</h2>
<p>
<label for=username-input>Username</label>
<input type=text id=username-input name=username required pattern=[a-z]+ minlength=3 maxlength=32 placeholder=eva>
<label for=password-input>Password</label>
<input type=password id=password-input name=password required minlength=3>
<button type=submit>Signup</button>
</p>
</form>
</template>
<template id=dashboard>
<h2>Hi,</h2>
<p>welcome to Git Relax.</p>
<h3>Repositories</h3>
<form>
<p>
<label for=reponame-input>New Reposiotory</label>
<input type=text id=reponame-input name=reponame required pattern=[a-z]+ minlength=3 maxlength=32 placeholder=notes>
<button type=submit>Create Repo</button>
</p>
</form>
<ul id=repositories-list></ul>
<h3>Activity</h3>
<ul id=activities-list></ul>
<p><a href=#>Logout</a></p>
</template>
<template id=repositoriesListEntry>
<li></li>
</template>
<template id=activitiesListEntry>
<li></li>
</template>
<script type=module>
import { App } from '/app.js'
App({
elements: {
aside,
article
},
templates: {
loginForm,
signupForm,
dashboard,
repositoriesListEntry,
activitiesListEntry
}
})
</script>
</body>
</html>