register.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {% extends "base.html" %}
  2. {% set title = "注册" %}
  3. {% set page = "register" %}
  4. {% block content %}
  5. <div style="display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 200px); padding: 20px;">
  6. <div class="card" style="width: 100%; max-width: 440px; padding: 32px 24px; border-radius: 20px; box-shadow: var(--shadow-lg);">
  7. <div style="text-align: center; margin-bottom: 32px;">
  8. <div style="width: 64px; height: 64px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; color: white; box-shadow: var(--shadow);">
  9. <i class="ri-user-add-fill" style="font-size: 2rem;"></i>
  10. </div>
  11. <h1 style="font-size: 1.75rem; margin-bottom: 8px;">创建账户</h1>
  12. <p class="muted" style="font-size: 1rem;">加入我们以获取更多高质量资源</p>
  13. </div>
  14. <div class="form">
  15. <div style="margin-bottom: 20px;">
  16. <label class="label" style="display: flex; align-items: center; gap: 6px;"><i class="ri-smartphone-line"></i> 手机号</label>
  17. <input id="phone" class="input" type="tel" inputmode="numeric" autocomplete="tel" maxlength="20" placeholder="请输入手机号" />
  18. </div>
  19. <div style="margin-bottom: 32px;">
  20. <label class="label" style="display: flex; align-items: center; gap: 6px;"><i class="ri-lock-password-line"></i> 密码(至少 6 位)</label>
  21. <input id="password" class="input" type="password" autocomplete="new-password" placeholder="请输入密码" />
  22. </div>
  23. <div style="display: flex; flex-direction: column; gap: 16px;">
  24. <button id="registerBtn" class="btn btn-primary" style="height: 48px; font-size: 1.1rem; width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px;">
  25. <i class="ri-user-add-line"></i> 注册
  26. </button>
  27. <div style="text-align: center; margin-top: 8px;">
  28. <span class="muted">已有账号?</span>
  29. <a id="toLogin" href="{{ url_for('page_login') }}" style="color: var(--brand); font-weight: 500; text-decoration: none;">去登录</a>
  30. </div>
  31. </div>
  32. <div id="msg" class="form-msg" style="display:none; margin-top: 16px; text-align: center; border-radius: 8px; padding: 12px;"></div>
  33. </div>
  34. </div>
  35. </div>
  36. {% endblock %}