From f9c1219a4e0dcb1d81d8051fa528a4f778f88e5d Mon Sep 17 00:00:00 2001 From: Hendrik Niefeld Date: Sat, 1 Feb 2020 21:47:08 +0100 Subject: [PATCH] index, update intro section --- homepage/theme/static/css/fix.css | 34 +++++++++++++++++++++++- homepage/theme/templates/base.html | 2 +- homepage/theme/templates/getstarted.html | 6 ++--- homepage/theme/templates/index.html | 21 +++++++++------ 4 files changed, 50 insertions(+), 13 deletions(-) diff --git a/homepage/theme/static/css/fix.css b/homepage/theme/static/css/fix.css index b243db9..7bf02b8 100644 --- a/homepage/theme/static/css/fix.css +++ b/homepage/theme/static/css/fix.css @@ -129,6 +129,12 @@ ul { .tracked-min { letter-spacing: .03em; } +.intro-margin-a { + margin-top: 0.3rem; +} +.intro-margin-b { + margin-top: 0.7rem; +} /* --------------------------------------------------- @@ -319,8 +325,34 @@ IMAGES GRAPHICS ----------------------------------------------------*/ #bg-intro { - background: url(/theme/images/gfx-intro.svg) no-repeat center; + background: url(/theme/images/gfx-intro.svg); + background-repeat: no-repeat; + background-attachment: scroll; + background-position: 200px 130px; } +/* +@media only screen and (min-width: 45.1em) and (max-width: 60em) { + #bg-intro { + background-position: 180px 130px; + } +} +@media only screen and (min-width: 30.1em) and (max-width: 45em) { + #bg-intro { + background-position: 140px 130px; + } +} +*/ +@media only screen and (min-width: 30.1em) and (max-width: 60em) { + #bg-intro { + background-position: calc(20% + 120px) 130px; + } +} +@media only screen and (max-width: 30em) { + #bg-intro { + background-position: 10px 60px; + } +} + #bg-feature { background: url(/theme/images/gfx-pattern-mint-bright.svg) center; } diff --git a/homepage/theme/templates/base.html b/homepage/theme/templates/base.html index aadb3b1..9da7e21 100644 --- a/homepage/theme/templates/base.html +++ b/homepage/theme/templates/base.html @@ -128,13 +128,13 @@

for everyone

+ {% if is_getstarted != 'true' %}

{{CONTACT_EMAIL}}

GPG Key

- {% if is_getstarted != 'true' %}

GitHub

diff --git a/homepage/theme/templates/getstarted.html b/homepage/theme/templates/getstarted.html index a907d45..6d99d69 100644 --- a/homepage/theme/templates/getstarted.html +++ b/homepage/theme/templates/getstarted.html @@ -18,9 +18,9 @@

Single binary file for
Linux, Windows or MacOS

- Download + Download
@@ -43,7 +43,7 @@

Details on how to run, use
and develop Offen

- Open guides + Open guides diff --git a/homepage/theme/templates/index.html b/homepage/theme/templates/index.html index f4bf450..efd9f06 100644 --- a/homepage/theme/templates/index.html +++ b/homepage/theme/templates/index.html @@ -3,14 +3,19 @@ {% block content %}
-
-
- Offen logo +
+
+ Offen logo
-
-

- Offen -

+
+
+
+ Offen logo +
+

+ Offen +

+

Transparent web analytics

@@ -18,7 +23,7 @@ Offen is an open source analytics software for websites and web applications. It allows respectful handling of data for operators and users.