init
This commit is contained in:
commit
4f6d7cfe60
16 changed files with 1341 additions and 0 deletions
35
templates/dashboard.html
Normal file
35
templates/dashboard.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{.Title}}</title>
|
||||
<link rel="stylesheet" href="/static/styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<main class="shell">
|
||||
<section class="hero compact">
|
||||
<p class="badge">Account</p>
|
||||
<h1>Welcome {{.UserEmail}}</h1>
|
||||
<p class="lead">Manage your listed skills and purchased skills.</p>
|
||||
<div class="actions">
|
||||
<a class="btn primary" href="/skills">Browse Skills</a>
|
||||
<a class="btn" href="/my-skills">My Purchases</a>
|
||||
</div>
|
||||
</section>
|
||||
<section class="panel">
|
||||
<h2>Upload a skill</h2>
|
||||
<form id="upload-form" class="form-grid">
|
||||
<label>Title<input name="title" required></label>
|
||||
<label>Price (cents)<input name="price_cents" type="number" min="0" required></label>
|
||||
<label class="full">Description<textarea name="description" rows="4" required></textarea></label>
|
||||
<label class="full">Skill file<input name="skill_file" type="file" required></label>
|
||||
<button class="btn primary" type="submit">Publish Skill</button>
|
||||
</form>
|
||||
<p id="upload-status" class="hint"></p>
|
||||
</section>
|
||||
</main>
|
||||
<script src="/static/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue