优化中控科技风界面:登录居中、浮盈配色、默认打开首个客户端。
总览改名期权持仓总览,内容区 1800 居中,去掉左上角仓库名。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-2
@@ -6,10 +6,9 @@
|
||||
<title>{% block title %}期权中控{% endblock %}</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}">
|
||||
</head>
|
||||
<body class="{% if request.path.startswith('/desk') %}page-desk{% elif request.path == '/' %}page-dashboard{% endif %}">
|
||||
<body class="{% if request.path.startswith('/login') %}page-login{% elif request.path.startswith('/desk') %}page-desk{% elif request.path == '/' %}page-dashboard{% endif %}">
|
||||
{% if session.get('logged_in') %}
|
||||
<header class="topbar">
|
||||
<div class="brand">crypto_okx_hub</div>
|
||||
<nav>
|
||||
<a href="/" class="{% if request.path == '/' %}active{% endif %}">总览</a>
|
||||
<a href="/instances" class="{% if request.path.startswith('/instances') %}active{% endif %}">实例</a>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{% block title %}总览 · 期权中控{% endblock %}
|
||||
{% block body %}
|
||||
<section class="page-head">
|
||||
<h1>多机持仓总览</h1>
|
||||
<h1>期权持仓总览</h1>
|
||||
<button type="button" class="btn" id="btn-refresh">刷新</button>
|
||||
</section>
|
||||
<p class="muted" id="overview-status">加载中…</p>
|
||||
|
||||
+15
-9
@@ -1,13 +1,19 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}登录 · 期权中控{% endblock %}
|
||||
{% block body %}
|
||||
<section class="login-card">
|
||||
<h1>期权中控登录</h1>
|
||||
<p class="muted">关联客户端仓库 crypto_okx · 本仓不下单</p>
|
||||
<form method="post" class="stack">
|
||||
<label>用户名 <input name="username" autocomplete="username" required></label>
|
||||
<label>密码 <input type="password" name="password" autocomplete="current-password" required></label>
|
||||
<button type="submit">登录</button>
|
||||
</form>
|
||||
</section>
|
||||
<div class="login-wrap">
|
||||
<section class="login-card">
|
||||
<h1>期权中控</h1>
|
||||
<p class="login-sub">多机期权持仓总览 · 内嵌打开客户端 · 本仓不下单</p>
|
||||
<form method="post" class="stack" autocomplete="on">
|
||||
<label>用户名
|
||||
<input name="username" autocomplete="username" required placeholder="admin">
|
||||
</label>
|
||||
<label>密码
|
||||
<input type="password" name="password" autocomplete="current-password" required placeholder="••••••••">
|
||||
</label>
|
||||
<button type="submit">登 录</button>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user