Rust implementation of gen-indexes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

63 lines
3.2 KiB

<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='referrer' content='no-referrer'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='google' content='notranslate'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<meta name='robots' content='noindex, nofollow'>
<title>42l Stats</title>
<style>
html { background: #1e1e2f; }
a { text-decoration: none; }
h1,h2,div { text-align: center; color: white; font-family: Ubuntu, Lato, Calibri; }
small { font-size: 14px; }
.pad { margin: 1rem; }
.outer-box { display: flex; flex-wrap: wrap; padding: 0.2rem; background: #0c0d1385; border-radius: 2px; }
.large-box { background: #0c0d1385; border-radius: 2px; padding: 1rem; }
.large-box .inner-box.jumbo { display: flex; justify-content: space-around; flex-wrap: wrap; margin: 1rem;}
.large-box div { padding: 1rem; margin: 1.8rem 1rem; }
.center-items { justify-content: center; }
div.button { border-radius: 2px; padding: 1rem; background: #27293d; box-shadow: 0 0 2px rgba(0,0,0,.12),0 2px 2px rgba(0,0,0,.2); }
.button.all { border-top: #1f8ef1 4px solid; }
.button.crawler { border-top: #fd5d93 4px solid; }
.button.nocrawler { border-top: #00f2c3 4px solid; }
.inner-box { background: #303042; border-radius: 4px; transition: all 0.3s; }
.inner-box.link:hover { opacity: 0.7; }
.inner-box.jumbo { padding: 1.8rem; margin: 0.75rem; font-size: 26px; }
.year { margin: 0.5rem; padding: 0.75rem 1rem; }
.year.year-active { background: #6b609f; }
</style>
</head>
<body>
<div class="pad">
<h1>42l Stats</h1>
</div>
<br />
<div class="pad">
<a href="<%= consts::BASE_URL %>"><div class="inner-box link button">Back to calendar</div></a>
</div>
<br />
<div class="pad">
<h2>Stats by service</h2>
<div class="large-box">
<% for service in services{ %>
<div class="inner-box jumbo">
<div><=% srv_format(service, our_services) %></div>
<a href="<=% consts::BASE_URL %>/<=% sel_period %>/<=% sel_year %>/<=% folder_num %>/all/<=% service %>">
<div class="inner-box link button all">All (with crawlers)</div>
</a>
<a href="<=% consts::BASE_URL %>/<=% sel_period %>/<=% sel_year %>/<=% folder_num %>/ignore-crawlers/<=% service %>">
<div class="inner-box link button nocrawler">Without crawlers</div>
</a>
<a href="<=% consts::BASE_URL %>/<=% sel_period %>/<=% sel_year %>/<=% folder_num %>/crawlers-only/<=% service %>">
<div class="inner-box link button crawler">Crawlers only</div>
</a>
</div>
<% } %>
</div>
</div>
</body>
</html>