aboutsummaryrefslogtreecommitdiffstats
path: root/templates/ranking.html
blob: ff89fd51dafbeb2a710d0f606dc894b9de88056c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<!DOCTYPE html>
<html lang="en">
    <head>
    <meta charset="UTF-8"/>
    <head>
    <title>{{meta_title}}</title>
    <link rel="icon" type="image/x-icon" href="{{meta_image_url}}">
    <meta name="description" content="{{meta_description}}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- Google / Search Engine Tags -->
    <meta itemprop="name" content="{{meta_title}}">
    <meta itemprop="description" content="{{meta_description}}">
    <meta itemprop="image" content="{{meta_image_url}}">

    <!-- Facebook Meta Tags -->
    <meta property="og:url" content="http://nijitracker.com">
    <meta property="og:type" content="website">
    <meta property="og:title" content="{{meta_title}}">
    <meta property="og:description" content="{{meta_description}}">
    <meta property="og:image" content="{{meta_image_url}}">

    <!-- Twitter Meta Tags -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="{{meta_title}}">
    <meta name="twitter:description" content="{{meta_description}}">
    <meta name="twitter:image" content="{meta_{image_url}}">
    </head>
  <body>
    {{title_banner}}
    <style>
      .banner-container {
        background-color: #2a4b71;
        color: white;
        text-align: center;
        font-size: 6em;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        font-weight: bold;
        padding: 0.2em 0;
        margin-bottom: 0.5em;
        margin: 0;
        position: relative;
        word-wrap: break-word;
      }
      .banner-text {
        animation-name: slideInDown;
        animation-duration: 1s;
        animation-timing-function: ease;
        animation-delay: 0s;
        animation-fill-mode: both;
      }
      .menu-bar {
        background-color: #f2f2f2;
        overflow: hidden;
        position: relative;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        font-size: 1.5em;
        font-weight: bold;
        text-align: center;
      }
      .menu-bar a {
        display: inline-block;
        color: #2a4b71;
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
        transition: 0.3s;
      }
      .menu-bar a:hover {
        background-color: #2a4b71;
        color: white;
      }
      @keyframes slideInDown {
        0% {
          transform: translateY(-100%);
          opacity: 0;
        }
        100% {
          transform: translateY(0);
          opacity: 1;
        }
      }
      @media (max-width: 768px) {
        .banner-container {
          font-size: 3em;
          padding: 0.2em 0.5em;
        }
        .menu-bar a {
          font-size: 1em;
        }
      }
      @media (max-width: 480px) {
        .banner-container {
          font-size: 2em;
          padding: 0.2em 0.5em;
        }
        .menu-bar a {
          font-size: 0.8em;
        }
      }
    </style>
    {{ranking_graph}} 
    <div style="text-align:center;">
        <hr style="height: 3px; border: none; background-color: #f2f2f2; margin: 25px 0;" />
        <span style="display:inline-block; position:relative; top:-1.5em; padding: 0 20px; background-color:#fff; font-size: 1.2em; font-weight:bold; color: #555; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); border-radius: 5px; font-family: Arial, sans-serif; letter-spacing: 2px;">{{divider}}</span>
    </div>
    {{ranking_table}}
    <style>
      table {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 16px;
        border-collapse: separate;
        border-spacing: 0;
        width: 100%;
        max-width: 1570px;
        margin: 0 auto;
        background-color: #fff;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
      }
      th,
      td {
        text-align: left;
        padding: 12px 15px;
        font-size: 18px;
        border-bottom: 1px solid #ddd;
      }
      th {
        background-color: #2a4b71;
        color: #fff;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.03em;
      }
      td:nth-child(3),
      td:nth-child(4) {
        text-align: left;
        padding: 12px 15px;
        font-size: 18px;
        border-bottom: 1px solid #ddd;
      }
      tbody tr:nth-child(even) {
        background-color: #f2f2f2;
      }
      tbody tr:hover {
        background-color: #ddd;
      }
      a {
        color: #3c8dbc;
        text-decoration: none;
      }
      @media screen and (max-width: 1024px) {
        table {
          font-size: 14px;
        }
        th,
        td {
          padding: 8px 10px;
          font-size: 16px;
        }
      }
      @media screen and (max-width: 768px) {
        th,
        td {
          padding: 5px 8px;
          font-size: 14px;
        }
      }
      @media screen and (max-width: 600px) {
        th,
        td {
          padding: 3px 5px;
          font-size: 10px;
        }
      }
      @media screen and (max-width: 400px) {
        th,
        td {
          padding: 2px 4px;
          font-size: 8px;
        }
      }
    </style>
    <div
      style="
        background-color: #f5f5f5;
        padding: 20px;
        font-size: 16px;
        font-family: 'Open Sans', sans-serif;
      "
    >
      <div style="text-align: center">
        <span style="font-weight: bold">Information</span>
      </div>
      <div style="margin-top: 20px; text-align: center">
        <p style="text-align: center">
          Data for this site is taken every hour. Due to limitation with
          YouTube's API only certain increments in subscriber counts will be
          reflected based on each liver's channel size
        </p>
        <p style="text-align: center">
          Each liver has their own page to track their own individual
          achievements and subscriber count. The full table of all recorded
          daily data for each channel is also viewable
        </p>
      </div>
      <div style="text-align: center">
        <span style="font-weight: bold">A Note on Graduating Livers</span>
      </div>
      <div style="margin-top: 20px; text-align: center">
        <p style="text-align: center">
          If a liver is determined to be graduating, retiring, or terminated,
          Nijitracker will stop tracking their subscriber count, and their page
          and entry will be removed
        </p>
      </div>
      <div style="margin-top: 20px; text-align: center">
        <p style="text-align: center">{{footer}}</p>
      </div>
      <div style="text-align: center; margin-top: 20px">
        <a href="/" target="_blank">
          <img
            src="https://img.shields.io/github/license/pinapelz/NijiTrack?color=%23994CC3&style=flat-square"
            alt="License"
          />
        </a>
      </div>
    </div>
  </body>
</html>
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage