blogstar.html 4.9 KB
Newer Older
梦想橡皮擦's avatar
梦想橡皮擦 已提交
1 2
{% extends "base.html" %}
{% block content %}
梦想橡皮擦's avatar
梦想橡皮擦 已提交
3 4 5 6 7 8 9
<style>
@media (max-width: 540px) {
    table {
        font-size:10px !important;
    }
}

梦想橡皮擦's avatar
梦想橡皮擦 已提交
10

梦想橡皮擦's avatar
梦想橡皮擦 已提交
11
</style>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
12
<div class="container">
梦想橡皮擦's avatar
梦想橡皮擦 已提交
13 14

    <table class="table table-hover table-bordered table-responsive">
梦想橡皮擦's avatar
梦想橡皮擦 已提交
15 16 17 18
        <caption class="caption-top text-center">
            <div class="alert alert-warning">
                <p class="m-0">
                    <strong>CSDN 2022 博客之星总排名</strong> 👉 绿色背景是总分前 200(晋级区)👈</p>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
19 20
                <p class="text-success p-0"><small>数据同步时间:2023-01-04 21:00</small></p>
                <p class="m-0"><small>来都来了,不去给橡皮擦打个5分么?</small> <br> <a target="_blank"
梦想橡皮擦's avatar
梦想橡皮擦 已提交
21
                                                                        href="https://bbs.csdn.net/topics/611387187"><small>https://bbs.csdn.net/topics/611387187</small></a>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
22 23 24 25
                </p>

            </div>
            <div class="btn-group btn-group-sm">
梦想橡皮擦's avatar
梦想橡皮擦 已提交
26 27
                <a class="btn btn-primary active" href="/csdn/blogstar">总榜</a>
                <a class="btn btn-primary d-none d-sm-block" href="/csdn/zong">总榜详细指标</a>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
28 29
                <a class="btn btn-primary" href="/csdn/newstar">仅看新星</a>
            </div>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
30
            <br>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
31
            <div class="btn-group btn-group-sm mt-3 d-flex" style="font-size:12px;">
梦想橡皮擦's avatar
梦想橡皮擦 已提交
32 33 34 35 36
                <a class="btn btn-success" href="/csdn/blogstar?page=1">其它</a>
                <a class="btn btn-success" href="/csdn/blogstar?page=2">前端</a>
                <a class="btn btn-success" href="/csdn/blogstar?page=3">后端</a>
                <a class="btn btn-success" href="/csdn/blogstar?page=4">大数据</a>
                <a class="btn btn-success" href="/csdn/blogstar?page=5">云原生</a>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
37
                <a class="btn btn-success" href="/csdn/blogstar?page=6">前沿</a>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
38
                <a class="btn btn-success" href="/csdn/blogstar?page=7">人工智能</a>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
39 40
                <a class="btn btn-success" href="/csdn/blogstar?page=8">运维</a>
                <a class="btn btn-success" href="/csdn/blogstar?page=9">移动</a>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
41
                <a class="btn btn-success" href="/csdn/blogstar?page=10">物联网</a>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
42
            </div>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
43 44 45 46 47 48 49
        </caption>
        <thead>
        <tr>
            <th>排名</th>
            <th>昵称</th>
            <th>赛道</th>
            <th>状态</th>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
50
            <th>总分</th>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
51 52 53 54
        </tr>
        </thead>
        <tbody>
        {% for u in user %}
梦想橡皮擦's avatar
梦想橡皮擦 已提交
55
        {% if loop.index<=bg_green %}
梦想橡皮擦's avatar
梦想橡皮擦 已提交
56 57 58 59 60
        <tr class="bg-success text-white">
            {% else %}
        <tr>
            {% endif %}
            <td>{{loop.index}}</td>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
61 62 63 64 65 66 67
            <td>
                {% if loop.index<=bg_green %}
                <a href="{{u.url}}" target="_blank" style="color:white;">{{u.nickname}}</a>
                {% else %}
                <a href="{{u.url}}" target="_blank" style="color:black;">{{u.nickname}}</a>
                {% endif %}
            </td>
梦想橡皮擦's avatar
梦想橡皮擦 已提交
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
            <td>{% if u.cateName =='后端' %}
                <span class="badge bg-danger">{{u.cateName}}</span>
                {% elif u.cateName == '前端'%}
                <span class="badge bg-primary">{{u.cateName}}</span>
                {% elif u.cateName == '大数据与算法'%}
                <span class="badge bg-info">{{u.cateName}}</span>
                {% elif u.cateName == 'IT其他'%}
                <span class="badge bg-warning">{{u.cateName}}</span>
                {% elif u.cateName == '人工智能'%}
                <span class="badge bg-secondary">{{u.cateName}}</span>
                {% else %}
                <span class="badge bg-success">{{u.cateName}}</span>
                {% endif %}

            </td>
            <td>
                {% if u.star =='博客之星' %}
                <span class="badge bg-primary"> {{u.star}}</span>
                {% elif u.star == '博客新星'%}
                <span class="badge bg-info">{{u.star}}</span>
                {% else %}
                <span class="badge bg-dark">{{u.star}}</span>
                {% endif %}
            </td>
            <td>{{u.totalScore}}</td>
        </tr>
        {%endfor%}

        </tbody>
    </table>
</div>
<div class="card text-center d-none d-sm-block" style="position:fixed;top: 20px;right: 0px;">
    <div class="card-header ">2022年博客之星</div>
    <div class="card-body">
        <div class="alert alert-success">
            <p><strong>使用 Ctrl+F 检索自己的昵称即可</strong></p>
            <p><a href="https://bbs.csdn.net/topics/611387187" target="_blank" class="btn btn-primary btn-block"
                  data-bs-toggle="tooltip" title="快点去,快点去!">为【橡皮擦去打个 5 分】</a></p>
            <p class="text-danger">数据每天12:00前后同步 <br>得分越多,同步越快</p>
        </div>
    </div>
    <div class="card-footer ">
        橡皮擦等你的⭐⭐⭐⭐⭐
    </div>
</div>

{% endblock %}