update web interface

This commit is contained in:
2025-08-25 14:54:37 +08:00
parent b745cae8eb
commit 7f7bb6d8bb
39 changed files with 3563 additions and 207 deletions

View File

@@ -13,14 +13,37 @@
<body>
<header>
<div class="container">
<h1><a href="{{ url_for('index') }}">{{ company.name }}</a></h1>
<nav>
<h1>
<a href="{{ url_for('index') }}" class="logo">
<img src="{{ url_for('static', filename='images/logo1.png') }}" alt="{{ t('company_name') }}"
class="logo-img">
<!-- {{ t('company_name') }} -->
</a>
</h1>
<button class="mobile-menu-toggle" aria-label="Toggle menu">
<span></span>
<span></span>
<span></span>
</button>
<nav class="nav-menu">
<ul>
<li><a href="{{ url_for('index') }}">首页</a></li>
<li><a href="{{ url_for('about') }}">关于我们</a></li>
<li><a href="{{ url_for('services') }}">服务</a></li>
<li><a href="{{ url_for('contact') }}">联系我们</a></li>
<li><a href="{{ url_for('index') }}">{{ t('home') }}</a></li>
<li><a href="{{ url_for('services') }}">{{ t('services') }}</a></li>
<li><a href="{{ url_for('pricing') }}">{{ t('pricing') if t('pricing') else '收费' }}</a></li>
<li><a href="{{ url_for('download') }}">{{ t('download') if t('download') else '下载' }}</a></li>
<li><a href="{{ url_for('help') }}">{{ t('help') if t('help') else '帮助' }}</a></li>
<li><a href="{{ url_for('contact') }}">{{ t('contact') }}</a></li>
<li><a href="{{ url_for('about') }}">{{ t('about') }}</a></li>
</ul>
<div class="language-switcher">
<select id="language-dropdown" onchange="changeLanguage(this.value)">
<option value="" disabled selected>{{ t('language') if t('language') else 'Language' }}</option>
{% for lang_code, lang_name in languages.items() %}
<option value="{{ lang_code }}" {% if lang==lang_code %}selected{% endif %}>{{ lang_name }}
</option>
{% endfor %}
</select>
</div>
</nav>
</div>
</header>
@@ -31,13 +54,49 @@
<footer>
<div class="container">
<p>&copy; 2023 {{ company.name }}. 保留所有权利。</p>
<div class="footer-brand">
<h3>{{ t('company_name') }}</h3>
<p>{{ t('slogan') }}</p>
</div>
<div class="footer-links">
<a href="#">隐私政策</a>
<a href="#">使用条款</a>
<h4>{{ t('quick_links') if t('quick_links') else '快速链接' }}</h4>
<ul>
<li><a href="{{ url_for('index') }}">{{ t('home') }}</a></li>
<li><a href="{{ url_for('about') }}">{{ t('about') }}</a></li>
<li><a href="{{ url_for('services') }}">{{ t('services') }}</a></li>
<li><a href="{{ url_for('contact') }}">{{ t('contact') }}</a></li>
</ul>
</div>
<div class="footer-links">
<h4>{{ t('services') }}</h4>
<ul>
{% for service in company.services %}
<li><a href="{{ url_for('services') }}">{{ service.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="footer-links">
<h4>{{ t('contact_us') if t('contact_us') else '联系我们' }}</h4>
<ul>
<li>{{ company.contact.address }}</li>
<li>{{ t('tel') }}: {{ company.contact.Tel }}</li>
<li>{{ t('fax') }}: {{ company.contact.Fax }}</li>
<li>{{ t('email') }}: {{ company.contact.Email }}</li>
</ul>
</div>
<div class="footer-bottom">
<p>&copy; 2024 {{ company.name }}. {{ t('all_rights_reserved') }}</p>
<div class="footer-links">
<a href="#">{{ t('privacy_policy') }}</a>
<a href="#">{{ t('terms_of_use') }}</a>
</div>
</div>
</div>
</footer>
<script src="{{ url_for('static', filename='js/mobile-menu.js') }}"></script>
<script src="{{ url_for('static', filename='js/tabs.js') }}"></script>
<script src="{{ url_for('static', filename='js/market-ticker.js') }}"></script>
</body>
</html>