From be27dbbfec5c726e28a00d1c37e0e7feec4a9cd4 Mon Sep 17 00:00:00 2001 From: alice Date: Sun, 20 Jun 2021 00:00:01 +0200 Subject: [PATCH] add icons to gateways --- static/css/style.css | 43 ++++++++++++++++++++++++++++++++ templates/lambdainst/status.html | 10 +++++++- 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/static/css/style.css b/static/css/style.css index 7524c10..2425e71 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -910,6 +910,21 @@ a.home-signup-button { z-index: 200; } +.no-p2p, .no-ipv6 { + display: inline-block; + font-weight: bold; + font-size: 0.7em; + text-align: center; + line-height: 0.9; + margin: 0 0.2em; +} +.no-p2p { + color: #88171a; +} +.no-ipv6 { + color: #555; +} + /***************************************************/ @@ -1160,6 +1175,34 @@ div.ticket-message-private { unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } +/* cyrillic */ +@font-face { + font-family: 'Poiret One'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('../fonts/poiret_one-0.woff2') format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* latin-ext */ +@font-face { + font-family: 'Poiret One'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('../fonts/poiret_one-1.woff2') format('woff2'); + unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Poiret One'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('../fonts/poiret_one-2.woff2') format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} + /***************************************************/ /********************* Icons */ diff --git a/templates/lambdainst/status.html b/templates/lambdainst/status.html index 26b713e..2b166d8 100644 --- a/templates/lambdainst/status.html +++ b/templates/lambdainst/status.html @@ -17,7 +17,15 @@ {% for country, d in locations %} - {{ d.country_name }} + + {{ d.country_name }} + {% if d.tags.no_p2p %} + NO
P2P
+ {% endif %} + {% if d.tags.no_ipv6 %} + NO
IPv6
+ {% endif %} + {{ d.hostname }}