From cc5b63d67a247d3953b4039b7336221819680a86 Mon Sep 17 00:00:00 2001
From: Hendrik Niefeld
Date: Sat, 22 Feb 2020 21:14:53 +0100
Subject: [PATCH 1/3] add heroku button
---
homepage/content/articles/0030-milestone-2.md | 2 +-
homepage/pelicanconf.py | 4 +++-
homepage/theme/templates/getstarted.html | 17 ++++++++++++-----
homepage/theme/templates/index.html | 17 ++++++++++++-----
4 files changed, 28 insertions(+), 12 deletions(-)
diff --git a/homepage/content/articles/0030-milestone-2.md b/homepage/content/articles/0030-milestone-2.md
index 4d1f9ed..7be8a1c 100644
--- a/homepage/content/articles/0030-milestone-2.md
+++ b/homepage/content/articles/0030-milestone-2.md
@@ -19,7 +19,7 @@ We finished milestone 2. Here is what we' ve been doing for the last 8 weeks.
A first approach to one of our major features is implemented. Websites that embed the Offen script now display a user consent banner. In case of user's deny, no other requests than loading the script are made from then on.
[Learn more](https://analytics.offen.dev/){: target="_blank" data-button="yellow"}
-### Accidental leaks dont expose data
+### Accidental leaks don't expose data
We encrypt all event data before it leaves the browser. [Two types](https://github.com/offen/offen/pull/270){: target="_blank"} of crypto implementations are used for this. This allows us to handle user data from both https and http-only sites securely.
### What exactly happens on your website?
diff --git a/homepage/pelicanconf.py b/homepage/pelicanconf.py
index 3afd213..f106c8d 100644
--- a/homepage/pelicanconf.py
+++ b/homepage/pelicanconf.py
@@ -71,6 +71,8 @@ PATREON_URL = 'https://www.patreon.com/offen'
LINKEDIN_URL = 'https://www.linkedin.com/company/hioffen'
TWITTER_URL = 'https://twitter.com/hioffen'
RELEASE_URL = 'https://github.com/offen/offen/releases/latest/'
-RELEASE_DIRECT_URL = 'https://github.com/offen/offen/releases/download/v0.1.0-alpha.2/offen-v0.1.0-alpha.2.tar.gz'
+RELEASE_DIRECT_URL = 'https://get.offen.dev'
+HEROKU_URL = 'https://github.com/offen/heroku'
+HEROKU_DIRECT_URL = 'https://heroku.com/deploy?template=https://github.com/offen/heroku/tree/master'
OFFEN_ACCOUNT_ID = os.environ.get('OFFEN_ACCOUNT_ID', None)
diff --git a/homepage/theme/templates/getstarted.html b/homepage/theme/templates/getstarted.html
index 0aae636..396b086 100644
--- a/homepage/theme/templates/getstarted.html
+++ b/homepage/theme/templates/getstarted.html
@@ -15,13 +15,20 @@
-
- Single binary file for
Linux, Windows or MacOS
+
+ Single binary file
for Linux, Windows or MacOS
Download
+
+ Your own instance on Heroku
+
+
Deploy
+
@@ -36,12 +43,12 @@
- Running a website and need to collect usage statistics? Want to contribute as a developer? Our guides will help you kick off.
+ Running a website and need to collect usage statistics? Want to contribute as a developer? Our guides help you kick off.
-
- Details on how to run, use
and develop Offen
+
+ Details on how to
run, use and develop Offen
Open guides
diff --git a/homepage/theme/templates/index.html b/homepage/theme/templates/index.html
index c759d30..5ce213d 100644
--- a/homepage/theme/templates/index.html
+++ b/homepage/theme/templates/index.html
@@ -107,13 +107,20 @@
-
- Single binary file for
Linux, Windows or MacOS
+
+ Single binary file
for Linux, Windows or MacOS
Download
+
+ Your own instance on Heroku
+
+
Deploy
+
@@ -128,12 +135,12 @@
- Running a website and need to collect usage statistics? Want to contribute as a developer? Our guides will help you kick off.
+ Running a website and need to collect usage statistics? Want to contribute as a developer? Our guides help you kick off.
-
- Details on how to run, use
and develop Offen
+
+ Details on how to
run, use and develop Offen
Open guides
From 24a2d5ea21e49bd9c02f6087b0bc9dfa17c55ba5 Mon Sep 17 00:00:00 2001
From: Hendrik Niefeld
Date: Sat, 22 Feb 2020 21:19:44 +0100
Subject: [PATCH 2/3] add cssmin fix
---
homepage/theme/static/css/fix.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/homepage/theme/static/css/fix.css b/homepage/theme/static/css/fix.css
index a4daa11..a22be2d 100644
--- a/homepage/theme/static/css/fix.css
+++ b/homepage/theme/static/css/fix.css
@@ -339,7 +339,7 @@ GRAPHICS
}
@media only screen and (min-width: 30.1em) and (max-width: 60em) {
#bg-intro {
- background-position: calc(20% + 120px) 130px;
+ background-position: calc(20% - -120px) 130px;
}
}
@media only screen and (max-width: 30em) {
From 4f6422cff0bc0baa37eb2884559df380db777e13 Mon Sep 17 00:00:00 2001
From: Hendrik Niefeld
Date: Sun, 23 Feb 2020 19:27:21 +0100
Subject: [PATCH 3/3] remove cssmin fix
---
homepage/theme/static/css/fix.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/homepage/theme/static/css/fix.css b/homepage/theme/static/css/fix.css
index a22be2d..a4daa11 100644
--- a/homepage/theme/static/css/fix.css
+++ b/homepage/theme/static/css/fix.css
@@ -339,7 +339,7 @@ GRAPHICS
}
@media only screen and (min-width: 30.1em) and (max-width: 60em) {
#bg-intro {
- background-position: calc(20% - -120px) 130px;
+ background-position: calc(20% + 120px) 130px;
}
}
@media only screen and (max-width: 30em) {