gitcat
1{{define "content"}}
2<section class="install reverse">
3 <div class="install-side install-art-side">
4 <div class="install-art" aria-hidden="true">
5 <!-- AI加持,效率up+:AI 机器猫天线收发信号,右侧效率柱状图一路上行 -->
6 <svg viewBox="0 0 260 210" width="250" height="202" fill="none">
7 <path class="art-signal" d="M117 33a17 17 0 0 1 26 0" stroke="#12b886" stroke-width="2.5" stroke-linecap="round"/>
8 <path class="art-signal" style="animation-delay:1.1s" d="M110 24a27 27 0 0 1 40 0" stroke="#12b886" stroke-width="2.5" stroke-linecap="round"/>
9 <line x1="130" y1="82" x2="130" y2="44" stroke="#0b2431" stroke-width="2.5" stroke-linecap="round"/>
10 <circle class="art-spark" cx="130" cy="40" r="5.5" fill="#12b886"/>
11 <g class="art-float" transform="translate(82 60) scale(4)">
12 <g stroke="#0b2431" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="#ffffff">
13 <path d="M6.2 10.4 7.5 5.2l3.9 2.5"/>
14 <path d="M17.8 10.4 16.5 5.2l-3.9 2.5"/>
15 <path d="M6.2 9.9v2.6c0 3.7 2.6 5.9 5.8 5.9s5.8-2.2 5.8-5.9V9.9"/>
16 <path d="M3.3 13.8h1.8M3.3 15.8h1.8M20.7 13.8h-1.8M20.7 15.8h-1.8"/>
17 <path d="M12 9.9v1.2m0 0c0 1.4-2.2 1.2-2.2 2.6m2.2-2.6c0 1.4 2.2 1.2 2.2 2.6"/>
18 <path d="M11.2 17.2c.4.45 1.2.45 1.6 0"/>
19 </g>
20 <g fill="#0b2431" stroke="none">
21 <circle cx="9.4" cy="12.4" r="1"/>
22 <circle cx="14.6" cy="12.4" r="1"/>
23 </g>
24 </g>
25 <g class="art-arrow">
26 <path d="M186 96l16-22 10 9 17-24" stroke="#2f80ed" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
27 <path d="M229 59l-8.5 1.6M229 59l-1.4 8.6" stroke="#2f80ed" stroke-width="2.5" stroke-linecap="round"/>
28 </g>
29 <g>
30 <rect class="art-bar" x="192" y="132" width="9" height="18" rx="3" fill="#9adecb"/>
31 <rect class="art-bar" x="206" y="122" width="9" height="28" rx="3" fill="#12b886" style="animation-delay:.35s"/>
32 <rect class="art-bar" x="220" y="110" width="9" height="40" rx="3" fill="#2f80ed" style="animation-delay:.7s"/>
33 </g>
34 <path class="art-spark" d="M50 92l-11 20h8l-4 16 13-22h-8l6-14z" fill="#ffc94d"/>
35 <g fill="#12b886">
36 <path class="art-spark" style="animation-delay:.5s" d="M36 40l2.6 6.6 6.6 2.6-6.6 2.6-2.6 6.6-2.6-6.6-6.6-2.6 6.6-2.6z"/>
37 <path class="art-spark" style="animation-delay:1.4s" d="M56 156l2.2 5.6 5.6 2.2-5.6 2.2-2.2 5.6-2.2-5.6-5.6-2.2 5.6-2.2z"/>
38 </g>
39 </svg>
40 </div>
41 <div class="install-slogan">AI加持,效率up+</div>
42 </div>
43
44 <div class="card install-card">
45 <h2>管理员账号</h2>
46 <form method="post" action="/install/admin" autocomplete="off">
47 <fieldset>
48 <div class="grid-2">
49 <label class="field">
50 <span>管理员用户名</span>
51 <input type="text" name="username" required maxlength="32" placeholder="admin" value="{{if .Data.Username}}{{.Data.Username}}{{end}}">
52 </label>
53 <label class="field">
54 <span>显示昵称(可选)</span>
55 <input type="text" name="display_name" maxlength="40" placeholder="例如:老猫" value="{{if .Data.DisplayName}}{{.Data.DisplayName}}{{end}}">
56 </label>
57 </div>
58 <div class="grid-2">
59 <label class="field">
60 <span>密码</span>
61 <input type="password" name="password" required minlength="6" placeholder="至少 6 位">
62 </label>
63 <label class="field">
64 <span>确认密码</span>
65 <input type="password" name="password2" required minlength="6" placeholder="再输入一次">
66 </label>
67 </div>
68 </fieldset>
69 <button class="btn btn-primary btn-lg btn-block" type="submit">完成安装</button>
70 <p class="hint">密码使用 bcrypt 加密存储,请牢记。</p>
71 </form>
72 {{template "wizardSteps" 4}}
73 </div>
74</section>
75{{end}}