{% extends "base.html" %}

{% block title %}{{ _('my_dashboard') }} - 高可用学习平台{% endblock %}

{% block content %}
<div class="dashboard-container">
    <header class="dashboard-header">
        <h1>{{ _('welcome') }}</h1>
        <div class="user-info">
            <span>{{ current_user.username }}</span>
            <a href="{{ url_for('auth.logout') }}" class="btn btn-sm btn-outline-danger">{{ _('logout') }}</a>
        </div>
    </header>

    <div class="services-grid">
        <div class="service-card">
            <h3>{{ _('network_drive') }}</h3>
            <p>安全存储和共享文件</p>
            <a href="https://pan.sq0715.com" class="btn btn-primary" target="_blank">访问网盘</a>
        </div>

        <div class="service-card">
            <h3>{{ _('email_system') }}</h3>
            <p>您的专属邮箱系统</p>
            <a href="https://mail.sq0715.com" class="btn btn-primary" target="_blank">访问邮箱</a>
        </div>

        <div class="service-card">
            <h3>{{ _('code_compiler') }}</h3>
            <p>在线编译和运行代码</p>
            <a href="#" class="btn btn-primary" target="_blank">访问编译器</a>
        </div>

        <div class="service-card">
            <h3>{{ _('file_submission') }}</h3>
            <p>提交和管理作业文件</p>
            <a href="#" class="btn btn-primary" target="_blank">访问提交系统</a>
        </div>

        <div class="service-card">
            <h3>{{ _('video_platform') }}</h3>
            <p>观看和分享视频内容</p>
            <a href="#" class="btn btn-primary" target="_blank">访问视频平台</a>
        </div>

        <div class="service-card">
            <h3>{{ _('blog_space') }}</h3>
            <p>发布和阅读博客文章</p>
            <a href="#" class="btn btn-primary" target="_blank">访问博客</a>
        </div>

        <div class="service-card">
            <h3>{{ _('ai_platform') }}</h3>
            <p>AI助手和工具</p>
            <a href="https://sqai.online" class="btn btn-primary" target="_blank">访问AI平台</a>
        </div>

        <div class="service-card">
            <h3>{{ _('code_repository') }}</h3>
            <p>代码版本控制</p>
            <a href="https://git.sq0715.com" class="btn btn-primary" target="_blank">访问代码仓库</a>
        </div>
    </div>
</div>
{% endblock %}