From 61170b72f7cb32d198db97d40a4084b292b95913 Mon Sep 17 00:00:00 2001 From: Dawid Potocki Date: Wed, 6 Nov 2019 07:03:29 +0000 Subject: [PATCH] Add I2P button to cardv2 (#1469) --- _includes/cardv2.html | 18 +- _includes/head.html | 2 +- .../sections/self-contained-networks.html | 1 + _sass/ptio-font.scss | 2 + assets/css/style.scss | 8 + assets/webfonts/ptio-font-preview.html | 324 ------------------ assets/webfonts/ptio-font.eot | Bin 5348 -> 5808 bytes assets/webfonts/ptio-font.svg | 21 +- assets/webfonts/ptio-font.ttf | Bin 5172 -> 5632 bytes assets/webfonts/ptio-font.woff | Bin 3620 -> 3956 bytes assets/webfonts/ptio-font.woff2 | Bin 2956 -> 3260 bytes font/README.md | 1 + font/svg/i2p-garlic.svg | 2 + 13 files changed, 46 insertions(+), 333 deletions(-) delete mode 100644 assets/webfonts/ptio-font-preview.html create mode 100644 font/svg/i2p-garlic.svg diff --git a/_includes/cardv2.html b/_includes/cardv2.html index 4b315a24..74af2f96 100644 --- a/_includes/cardv2.html +++ b/_includes/cardv2.html @@ -61,17 +61,17 @@ {% endif %}

-
+
+ class="btn btn-primary mt-1 mr-1"> Website {% if include.forum %} + class="btn btn-success mt-1 mr-1"> Forum @@ -83,13 +83,23 @@ data-original-title="Requires specific software to access: torproject.org" href="{{include.tor}}"> Tor {% endif %} + {% if include.i2p %} + + + + {% endif %}
diff --git a/_includes/head.html b/_includes/head.html index cce89706..5d90beb1 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -43,6 +43,6 @@ - + diff --git a/_includes/sections/self-contained-networks.html b/_includes/sections/self-contained-networks.html index 56ab0d4a..9aeb7318 100644 --- a/_includes/sections/self-contained-networks.html +++ b/_includes/sections/self-contained-networks.html @@ -30,6 +30,7 @@ image-dark="/assets/img/tools/I2P-dark.png" description="The Invisible Internet Project (I2P) is a computer network layer that allows applications to send messages to each other pseudonymously and securely. Uses include anonymous Web surfing, chatting, blogging, and file transfers. The software that implements this layer is called an I2P router and a computer running I2P is called an I2P node. The software is free and open-source and is published under multiple licenses." website="https://geti2p.net/" forum="https://forum.privacytools.io/t/discussion-i2p/1590" +i2p="http://i2p-projekt.i2p/" windows="https://geti2p.net/en/download#windows" mac="https://geti2p.net/en/download#mac" linux="https://geti2p.net/en/download#unix" diff --git a/_sass/ptio-font.scss b/_sass/ptio-font.scss index 059f8285..472edbd5 100644 --- a/_sass/ptio-font.scss +++ b/_sass/ptio-font.scss @@ -25,6 +25,7 @@ [data-icon]:before, .ptio-f-droid:before, +.ptio-i2p-garlic:before, .ptio-ios:before, .ptio-linux:before, .ptio-macos:before, @@ -47,6 +48,7 @@ } .ptio-f-droid:before { content: "\f100"; } +.ptio-i2p-garlic:before { content: "\f10a"; } .ptio-ios:before { content: "\f101"; } .ptio-linux:before { content: "\f102"; } .ptio-macos:before { content: "\f103"; } diff --git a/assets/css/style.scss b/assets/css/style.scss index 8a8d4c63..2ef5510a 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -202,6 +202,14 @@ footer { vertical-align: middle; } +.btn-icon { + font-size: 1.5rem; + padding: 0.5rem; + border-radius: 0.25rem; + display: flex; + height: 2.4rem; +} + /* * Navbar diff --git a/assets/webfonts/ptio-font-preview.html b/assets/webfonts/ptio-font-preview.html deleted file mode 100644 index f99556f7..00000000 --- a/assets/webfonts/ptio-font-preview.html +++ /dev/null @@ -1,324 +0,0 @@ - - - - ptio-font glyphs preview - - - - - - - - - -
-
-

ptio-font contains 8 glyphs:

- Toggle Preview Characters -
- - -
-
- PpPpPpPpPpPpPpPpPpPp -
-
- 12141618212436486072 -
-
- - -
-
- -
-
- PpPpPpPpPpPpPpPpPpPp -
-
- 12141618212436486072 -
-
- - -
-
- -
-
- PpPpPpPpPpPpPpPpPpPp -
-
- 12141618212436486072 -
-
- - -
-
- -
-
- PpPpPpPpPpPpPpPpPpPp -
-
- 12141618212436486072 -
-
- - -
-
- -
-
- PpPpPpPpPpPpPpPpPpPp -
-
- 12141618212436486072 -
-
- - -
-
- -
-
- PpPpPpPpPpPpPpPpPpPp -
-
- 12141618212436486072 -
-
- - -
-
- -
-
- PpPpPpPpPpPpPpPpPpPp -
-
- 12141618212436486072 -
-
- - -
-
- -
-
- PpPpPpPpPpPpPpPpPpPp -
-
- 12141618212436486072 -
-
- - -
-
- - - -
- - diff --git a/assets/webfonts/ptio-font.eot b/assets/webfonts/ptio-font.eot index 2b2a7cc735f8e55d4fcb69052328c914eb87efad..7a99ea909ef6d09b8bceae4cf6196add8d9c9dc9 100644 GIT binary patch delta 925 zcmYjPON$&;82!Hcs9RlKkM6GOs-Eex=g~7&j;6+RC0#uZE|lObWE3IoR{_B)?&F;EopW#9 zy7w1uCE6_?0Q~D(CT{lAYuCH)4?kI&_z|FbpZM_PD^H~-|9-OsfTszcS=;Ij_Tz(x zgnyv+^4g{CX(;1y0DhQsvEI8l7>|LIpLEdI`|rN9_uU6yk$wuGbYkOd?``kF%w5uQ zJ=-9HAKusIA zWc~I!fcq(NyMyx=x1akxrp;8}ApJc+>Zx5z`#0ZmR{n${BLd*wFMoXY-#C6a{+e;T zLs$o9<}^KI!aJiqY@#)KfREu%Ba( z`I+c>D2>zmYTux<$!Czy#y>m4VR`M&9y^3gk9PjzH|(JRIo`zs+D`~wxB@o-<~5~t zvQ8F9@gh5tHDu7>%2UL~QPx?-)IXADsUI{jXJVgvtvTDKxtj%kRa4{*{QRx9bDND+ z6}7#pmvgy=Oo88=jib(Rm3Oi{TCFm2HCRA#&8U;Lk1moe!z+!7VM+PSQpmIdMP2H1+B%fCgxVY}Xh zS$tw5sXhB5GDk2|(Vs=emC0m@vAPi9%-oa^_-jR%)^hSveWGMmPrufEl6RYyuAy2M za^aNH!(hgBxIpfO701$|p4TkT$wZgOCa3J~@%gE%UM=>Q<1*H&QN2~KnHubTTnSLM zA%PaOMxVQn7urdym86GTPmfmI>Cr##1-eYnBtoJVTH`hkrc=h7{ GF6F!9y<$v zfbuaLB@sJiV@0u$Sy*W#3z45QqWtRqZs(ltz31M2f3m`w)PP!T!&;}NuGWGZElZ2* z7f*YDRs_Hu>aNm5?*mpq^b!w+qekrE!y$?97@gs{xCi;79k7&BSI3Omn3S-vK94wK zY+_+_<*>DhdIylR85uE#wT09UHP)jpLc;PYF4&7cP!@^C7w1(Unn@gy@J>vHje_O8 zPB!onyQ0Q?41?l;dIPa%(uj`Cc%S-!{IsFd*wk#itv}lZ6mC(w;@^HcMf$Br2qsdN^Z9nN|IbJba#^>2r7jZtl% diff --git a/assets/webfonts/ptio-font.svg b/assets/webfonts/ptio-font.svg index 08bd533d..f19245ae 100644 --- a/assets/webfonts/ptio-font.svg +++ b/assets/webfonts/ptio-font.svg @@ -1,11 +1,11 @@ -Created by FontForge 20190801 at Sun Sep 22 19:49:38 2019 +Created by FontForge 20190801 at Tue Nov 5 22:26:01 2019 By Dawid Potocki @@ -19,10 +19,10 @@ Created by FontForge 20190801 at Sun Sep 22 19:49:38 2019 panose-1="2 0 5 3 0 0 0 0 0 0" ascent="448" descent="-64" - bbox="-0.00195312 -64.0039 512.014 448" + bbox="-0.00195312 -64.0049 512.014 448" underline-thickness="25.6" underline-position="-51.2" - unicode-range="U+0020-F107" + unicode-range="U+0020-F10A" /> + +