From e2a827bf1645697cca9d11c5b62d102e7688b96e Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Mon, 1 Apr 2019 15:42:27 -0500 Subject: [PATCH] Add link to various privacy subpages to homepage --- _includes/card.html | 19 +++++++- _includes/sections/privacy-resources.html | 2 +- _includes/sections/resources.html | 53 +++++++++++++++++++++++ assets/css/style.scss | 11 ++++- index.html | 1 + 5 files changed, 82 insertions(+), 4 deletions(-) create mode 100644 _includes/sections/resources.html diff --git a/_includes/card.html b/_includes/card.html index 369a7229..b7c5d609 100644 --- a/_includes/card.html +++ b/_includes/card.html @@ -26,9 +26,17 @@ {% endfor %} {% endif %} -

{{include.title}}{{include.description}}

+

+ {% if include.image %} + {{include.title}} + {% elsif include.icon %} + + {% endif %} + {{include.description}} +

+ {% if include.url %} Website: {% if include.website %} {{include.website}} @@ -36,6 +44,15 @@ {{ include.url | remove: "https://" | remove: "http://" | remove: "www." | remove: "/" | remove: "github.com" }} {% endif %} + {% elsif include.page %} + + {% if include.moretext %} + {{include.moretext}} + {% else %} + Learn More + {% endif %} + + {% endif %} {% if include.tor %} Tor {% endif %} diff --git a/_includes/sections/privacy-resources.html b/_includes/sections/privacy-resources.html index e332c017..91db1677 100644 --- a/_includes/sections/privacy-resources.html +++ b/_includes/sections/privacy-resources.html @@ -1,4 +1,4 @@ -

Recommended Privacy Resources

+

More Privacy Resources

Guides

diff --git a/_includes/sections/resources.html b/_includes/sections/resources.html new file mode 100644 index 00000000..86cc61f9 --- /dev/null +++ b/_includes/sections/resources.html @@ -0,0 +1,53 @@ +

Privacy Tools

+ +
+ + {% include card.html color="success" + title="Service Providers" + icon="fas fa-server" + iconcolor="dark" + page="/providers/" + description="Discover privacy-centric online services, including email providers, VPN operators, DNS administrators, and more!" + %} + + {% include card.html color="primary" + title="Web Browsers" + icon="far fa-compass" + iconcolor="dark" + page="/browsers/" + description="Find a web browser that respects your privacy, and discover how to harden your browser against tracking and leaks." + %} + + {% include card.html color="warning" + title="Software" + icon="far fa-window-restore" + iconcolor="dark" + page="/software/" + description="Discover a variety of open source software built to protect your privacy and keep your digital data secure." + %} + + {% include card.html color="info" + title="Operating Systems" + icon="fas fa-desktop" + iconcolor="dark" + page="/os/" + description="Find out how your operating system is comprimising your privacy, and what simple alternatives exist." + %} + + {% include card.html color="secondary" + title="privacytoolsIO Services" + icon="far fa-eye-slash" + iconcolor="dark" + page="/services/" + description="The privacytools.io team is proud to launch a variety of privacy-centric online services, including a Mastodon instance, search engine, and more!" + %} + + {% include card.html color="danger" + title="Donate" + icon="fas fa-donate" + iconcolor="dark" + page="https://github.com/privacytoolsIO/privacytools.io" + description="We can't operate this site without the generous contributions we receive from our viewers. If you love privacy and our website please consider donating." + %} + +
diff --git a/assets/css/style.scss b/assets/css/style.scss index b23e063f..8ebc109b 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -78,10 +78,11 @@ a, } .anchor { - margin-top: 4rem; + margin-top: 3.5rem; + margin-bottom: 2rem; &:target { margin-top: -4rem; - padding-top: 8rem; + padding-top: 7.5rem; } } @@ -94,6 +95,12 @@ a, margin-left: 5px; } +.panel-icon { + float: right; + margin: 15px; + font-size: 5.5em; +} + .share-btn { border: 0; box-shadow: $share-btn-shadow; diff --git a/index.html b/index.html index 5d79f5b6..6282f040 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,7 @@ layout: default {% include sections/header.html %} +{% include sections/resources.html %} {% include sections/quotes.html %} {% include sections/warrant-canary.html %} {% include sections/privacy-resources.html %}