2
0
mirror of https://github.com/offen/website.git synced 2024-10-18 12:10:25 +02:00

pelican update

This commit is contained in:
Hendrik Niefeld 2019-08-15 21:19:25 +02:00
parent 412951e43c
commit 15245aa87e
5 changed files with 226 additions and 189 deletions

View File

@ -1,6 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
@ -25,16 +24,80 @@
<script async src="https://script-alpha.offen.dev/script.js" data-account-id="{{ OFFEN_ACCOUNT_ID }}"></script> <script async src="https://script-alpha.offen.dev/script.js" data-account-id="{{ OFFEN_ACCOUNT_ID }}"></script>
{% endif %} {% endif %}
</head> </head>
<body> <body>
<div class="wrapper">
<header> <!--- MENU start -->
<a href="/" title="offen home page" alt="offen home page"> <div class='menu'>
<img src="/theme/images/logo.svg" alt="offen logo" width="165" height="102" class="logo"> <section class="nav-bar">
</a> <div class="nav-container">
</header> <div class="brand">
<a href="/"><img src="/theme/images/offen-logo-circle-only.svg" alt="offen logo" width="42" height="46" class="logo"></a>
{% block content %}{% endblock %} </div>
<nav>
<div class="nav-mobile"><a id="nav-toggle" href="#!"><span></span></a></div>
<ul class="nav-list">
<li>
<a href="/deep-dive/">Deep dive</a>
</li>
<li>
<a href="/status/">Status</a>
</li>
<li>
<a>Auditorium</a>
<ul class="nav-dropdown">
<li>
<a href="#">for Operators</a>
</li>
<li>
<a href="#">for Users</a>
</li>
</ul>
</li>
<li>
<a href="mailto:{{CONTACT_EMAIL}}">Contact</a>
</li>
<li>
<a href="{{GITHUB_ORG}}" target="_blank">Get involved</a>
</li>
<li>
<a href="{{PATREON_URL}}" target="_blank">Support Us</a>
</li>
</ul>
</nav>
</div>
</section>
</div> </div>
<!--- MENU end -->
<!--- INDEX SETUP start -->
{% if page.href == "/" %}
<div class='intro'>
<div class='container-reader'>
INTRO
</div>
</div>
{% endif %}
<!--- INDEX SETUP end -->
{% if page.href == "/" %}
<div class='content-index'>
{% endif %}
{% if page.href != "/" %}
<div class='content'>
{% endif %}
<div class='container-reader'>
{% block content %}{% endblock %}
</div>
</div>
<div class='footer'>
<div class='container-full'>
FOOTER
</div>
</div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="/theme/scripts/functions.js"></script>
</body> </body>
</html> </html>

View File

@ -1,50 +1,13 @@
{% extends "base.html" %} {% extends "base.html" %}
<!--
{% block title %} {% block title %}
{{ page.title }} {{ page.title }}
{% endblock %} {% endblock %}
-->
{% block content %} {% block content %}
<section>
{% block before_content %}
<h1>
<strong>offen</strong> is a free and open source analytics software for websites and web applications that allows respectful handling of data.
</h1>
{% endblock %}
{% block page_content %} {% block page_content %}
{{ page.content }} {{ page.content }}
{% endblock %} {% endblock %}
{% block after_content %}
<nav class="navigation-wrapper">
<div class="button-wrapper btn-fill-space">
{% if page.href != "/deep-dive/" %}
<a class="btn btn-color-grey" href="/deep-dive/">
Deep dive
</a>
{% endif %}
{% if page.href != "/" %}
<a class="btn btn-color-grey" href="/">
Summary
</a>
{% endif %}
{% if page.href != "/status/" %}
<a class="btn btn-color-grey" href="/status/">
Status
</a>
{% endif %}
<a class="btn btn-color-orange" href="mailto:{{CONTACT_EMAIL}}">
Contact
</a>
</div>
<div class="button-wrapper btn-fill-space">
<a class="btn btn-color-orange" href="{{GITHUB_ORG}}" target="_blank">
Get involved
</a>
<a class="btn btn-color-orange" href="{{PATREON_URL}}" target="_blank">
Support us
</a>
</div>
</nav>
{% endblock %}
</section>
{% endblock %} {% endblock %}

View File

@ -6,13 +6,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel='stylesheet' href='/theme/styles/index.css'/> <link rel='stylesheet' href='/theme/styles/index.css'/>
</head> </head>
<body> <body>
<!--- MENU start -->
<div class='menu'> <div class='menu'>
<section class="nav-bar">
<!--- MENU start -->
<div class='desktop_width'>
<section class="nav-bar">
<div class="nav-container"> <div class="nav-container">
<div class="brand"> <div class="brand">
<a href="#"><img src="/theme/images/offen-logo-circle-only.svg" alt="offen logo" width="42" height="46" class="logo"></a> <a href="#"><img src="/theme/images/offen-logo-circle-only.svg" alt="offen logo" width="42" height="46" class="logo"></a>
@ -53,42 +51,26 @@
</nav> </nav>
</div> </div>
</section> </section>
<!--- MENU end -->
</div>
</div> </div>
<!--- MENU end -->
<div class='intro'> <div class='intro'>
<div class='desktop_width'> <div class='container-reader'>
INTRO INTRO
</div> </div>
</div> </div>
<!--- CONTENT start -->
<div class='page'> <div class='content-index'>
<div class='content'> <div class='container-reader'>
CONTENT CONTENT
</div> </div>
<div class='feature-1'>
FEATURE-1
</div>
<div class='feature-2'>
FEATURE-2
</div>
<div class='feature-3'>
FEATURE-3
</div>
<div class='feature-4'>
FEATURE-4
</div>
</div> </div>
<!--- CONTENT end -->
<div class='footer'> <div class='footer'>
<div class='desktop_width'> <div class='container-full'>
FOOTER FOOTER
</div> </div>
</div> </div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="/theme/scripts/functions.js"></script> <script src="/theme/scripts/functions.js"></script>
</body> </body>
</html> </html>

View File

@ -0,0 +1,79 @@
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'/>
<title>Temp</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel='stylesheet' href='/theme/styles/index.css'/>
</head>
<body>
<!--- MENU start -->
<div class='menu'>
<section class="nav-bar">
<div class="nav-container">
<div class="brand">
<a href="#"><img src="/theme/images/offen-logo-circle-only.svg" alt="offen logo" width="42" height="46" class="logo"></a>
</div>
<nav>
<div class="nav-mobile"><a id="nav-toggle" href="#!"><span></span></a></div>
<ul class="nav-list">
<li>
<a href="#">Deep dive</a>
</li>
<li>
<a href="#">Status</a>
</li>
<li>
<a href="#">Auditorium</a>
<ul class="nav-dropdown">
<li>
<a href="#">for Operators</a>
</li>
<li>
<a href="#">for Users</a>
</li>
<li>
<a href="#">for Users</a>
</li>
</ul>
</li>
<li>
<a href="#!">Contact</a>
</li>
<li>
<a href="#!">Get involved</a>
</li>
<li>
<a href="#">Support Us</a>
</li>
</ul>
</nav>
</div>
</section>
</div>
<!--- MENU end -->
<div class='intro'>
<div class='container-reader'>
INTRO
</div>
</div>
<div class='content'>
<div class='container-reader'>
CONTENT
</div>
</div>
<div class='footer'>
<div class='container-full'>
FOOTER
</div>
</div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="/theme/scripts/functions.js"></script>
</body>
</html>

View File

@ -1,47 +1,60 @@
body {
margin: 0; /* ---------------------------------------------------
padding: 0; ROOTS
background-color: #fff; ----------------------------------------------------*/
color: #898989; :root {
font: 18px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; --yellow-mid: #F7BF08;
font-size: 18px; --yellow-bright: #F7BF08;
line-height: 1.5; --black-mid: #39352A;
font-weight: 400; --grey-mid: #898989;
--grey-bright: #D5D5D5;
--white: #FFF;
} }
/* ---------------------------------------------------
BASICS
----------------------------------------------------*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #fff;
color: var(--black-mid);;
font: 18px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 18px;
line-height: 1.5;
font-weight: 400;
}
/* --------------------------------------------------- /* ---------------------------------------------------
MENU MENU
----------------------------------------------------*/ ----------------------------------------------------*/
.nav-bar { .nav-bar {
height: 70px; height: 70px;
} }
.brand { .brand {
position: absolute; position: absolute;
padding: 12px 0 0 20px; padding: 12px 0 0 20px;
float: left; float: left;
line-height: 70px; line-height: 70px;
} }
/*
.brand a img {
max-height: 70px;
}
*/
.brand a, .brand a,
.brand a:visited { .brand a:visited {
color: #39352A; color: var(--black-mid);;
text-decoration: none; text-decoration: none;
} }
.nav-container { .nav-container {
max-width: 1000px;
margin: 0 auto; margin: 0 auto;
} }
nav { nav {
float: right; float: right;
} }
@ -59,16 +72,13 @@ nav ul li a:visited {
display: block; display: block;
padding: 0 20px; padding: 0 20px;
line-height: 70px; line-height: 70px;
background: #F7BF08; background: var(--yellow-mid);
color: #39352A; color: var(--black-mid);;
text-decoration: none; text-decoration: none;
} }
nav ul li a:hover, nav ul li a:hover,
nav ul li a:visited:hover { nav ul li a:visited:hover {
/* color: var(--black-mid);;
background: #FDE28C;
*/
color: #39352A;
} }
nav ul li a:not(:only-child):after, nav ul li a:not(:only-child):after,
nav ul li a:visited:not(:only-child):after { nav ul li a:visited:not(:only-child):after {
@ -76,13 +86,12 @@ nav ul li a:visited:not(:only-child):after {
content: ' ▾'; content: ' ▾';
} }
nav ul li ul li { nav ul li ul li {
min-width: 140px; min-width: 150px;
} }
nav ul li ul li a { nav ul li ul li a {
padding: 15px; padding: 15px;
line-height: 20px; line-height: 20px;
} }
.nav-dropdown { .nav-dropdown {
position: absolute; position: absolute;
display: none; display: none;
@ -93,7 +102,7 @@ nav ul li ul li a {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
background: #F7BF08; background: var(--yellow-mid);
height: 70px; height: 70px;
width: 70px; width: 70px;
} }
@ -102,7 +111,6 @@ nav ul li ul li a {
.nav-mobile { .nav-mobile {
display: block; display: block;
} }
nav { nav {
width: 100%; width: 100%;
padding: 70px 0 15px; padding: 70px 0 15px;
@ -116,13 +124,12 @@ nav ul li ul li a {
nav ul li a { nav ul li a {
padding: 15px; padding: 15px;
line-height: 20px; line-height: 20px;
padding-left: 25%; padding-left: 25%;
} }
nav ul li ul li a { nav ul li ul li a {
padding-left: 30%; padding-left: 30%;
} }
.nav-dropdown { .nav-dropdown {
position: static; position: static;
} }
@ -133,6 +140,7 @@ nav ul li ul li a {
*/ */
} }
} }
@media screen and (min-width: 961px) { @media screen and (min-width: 961px) {
.nav-list { .nav-list {
display: block !important; display: block !important;
@ -152,7 +160,7 @@ nav ul li ul li a {
border-radius: 1px; border-radius: 1px;
height: 3px; height: 3px;
width: 35px; width: 35px;
background: #39352A; background: var(--black-mid);;
position: absolute; position: absolute;
display: block; display: block;
content: ''; content: '';
@ -177,117 +185,59 @@ nav ul li ul li a {
transform: rotate(-45deg); transform: rotate(-45deg);
} }
article {
max-width: 1000px;
margin: 0 auto;
padding: 10px;
}
/* --------------------------------------------------- /* ---------------------------------------------------
LAYOUT LAYOUT
----------------------------------------------------*/ ----------------------------------------------------*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.page {
display: flex;
flex-wrap: wrap;
}
.menu { .menu {
width: 100%; width: 100%;
height: 70px; height: 70px;
position: fixed; position: fixed;
top: 0; top: 0;
right: 0; right: 0;
background-color: #F7BF08; background-color: var(--yellow-mid);
} }
.intro { .intro {
width: 100%; width: 100%;
height: 300px; height: 300px;
margin-top: 70px; margin: 70px 0 0 0;
background-color: #F7BF08; background-color: var(--yellow-mid);
} }
.content { .content {
width: 100%; width: 100%;
height: 600px; margin: 70px 0 0 0;
background-color: #fff; background-color: var(--white);
border: 1px solid #000;
} }
.content-index {
.feature-1,
.feature-2,
.feature-3,
.feature-4 {
width: 100%; width: 100%;
height: 300px; background-color: var(--white);
background-color: #fff;
border: 1px solid #000;
/*
display: flex;
justify-content: center;
align-items: center;
*/
} }
.footer { .footer {
width: 100%; width: 100%;
height: 400px; height: 240px;
background-color: #39352A; color: var(--grey-mid);
background-color: var(--black-mid);
} }
/* Mobile Styles */ /* Mobile Styles */
@media only screen and (max-width: 400px) { @media only screen and (max-width: 960px) {
} .container-reader {
margin: 0 20px 0 20px;
/* Tablet Styles */ }
@media only screen and (min-width: 401px) and (max-width: 960px) { .container-full {
.feature-1, margin: 0 20px 0 20px;
.feature-2,
.feature-3,
.feature-4 {
width: 50%;
} }
} }
/* Desktop Styles */ /* Desktop Styles */
@media only screen and (min-width: 961px) { @media only screen and (min-width: 961px) {
.page { .container-reader {
width: 960px; width: 600px;
margin: 0 auto; margin: 0 auto;
} }
.desktop_width { .container-full {
width: 960px; margin: 0 80px 0 80px;
margin: 0 auto;
} }
.feature-1,
.feature-2,
.feature-3 {
width: 33.3%;
}
.intro {
height: 400px;
}
/* reorder
.feature-1 {
height: 200px;
order: 1;
}
.content {
order: 2;
}
*/
} }