2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 17:10:29 +01:00
This commit is contained in:
Hendrik Niefeld 2019-12-22 12:56:02 +01:00
parent be38243d4e
commit 940c011d6f
3 changed files with 292 additions and 92 deletions

View File

@ -0,0 +1,199 @@
/* ---------------------------------------------------
CUSTOM COLORS
----------------------------------------------------*/
.cclr-yellow-mid {
background-color: #F7BF08;
}
.cclr-yellow-bright {
background-color: #fde28c;
}
.cclr-mint-mid {
background-color: #BBD9D3;
}
.cclr-black-mid {
background-color: #39352A;
}
.cclr-grey-mid {
background-color: #898989;
}
.cclr-grey-bright {
background-color: #D5D5D5;
}
/* ---------------------------------------------------
LAYOUT
----------------------------------------------------*/
.menu {
width: 100%;
height: 70px;
position: fixed;
z-index: 1;
top: 0;
right: 0;
}
/* Mobile Styles*/
@media only screen and (max-width: 480px) {
.menu {
position: static;
}
}
/* ---------------------------------------------------
MENU
----------------------------------------------------*/
.nav-list {
margin: 0 10px 40px 0;
}
.nav-bar {
height: 70px;
}
.icon {
position: absolute;
padding: 12px 0 0 20px;
float: left;
line-height: 70px;
}
body.index .icon {
opacity: 0;
}
.nav-container {
margin: 0 auto;
}
nav {
float: right;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
}
nav ul li {
float: left;
position: relative;
}
nav ul li a,
nav ul li a:visited {
display: block;
padding: 0 20px;
line-height: 70px;
text-decoration: none;
font-weight: 700;
background: $yellow-mid;
color: $black-mid;
}
nav ul li a:hover,
nav ul li a:visited:hover {
color: $black-mid;
}
nav ul li a:not(:only-child):after,
nav ul li a:visited:not(:only-child):after {
padding-left: 4px;
content: ' ▾';
}
nav ul li ul li {
min-width: 150px;
}
nav ul li ul li a {
padding: 15px;
line-height: 20px;
}
.nav-dropdown {
position: absolute;
display: none;
z-index: 1;
}
.nav-mobile {
display: none;
position: absolute;
top: 0;
right: 0;
background: $yellow-mid;
height: 70px;
width: 70px;
}
/* Mobile Styles */
@media only screen and (max-width: 960px) {
.nav-list {
margin: 0 0 40px 0;
}
.nav-mobile {
display: block;
}
nav {
width: 100%;
padding: 70px 0 15px;
}
nav ul {
display: none;
}
nav ul li {
float: none;
}
nav ul li a {
padding: 15px;
line-height: 20px;
padding-left: 25%;
}
nav ul li ul li a {
padding-left: 30%;
}
nav ul li:last-child a {
padding-bottom: 60px;
}
nav ul li:last-child a {
box-shadow: 0px 7px 15px -6px rgba(57,53,42,0.2);
}
.nav-dropdown {
position: static;
}
}
/* Desktop Styles */
@media screen and (min-width: 961px) {
.nav-list {
display: block !important;
}
}
#nav-toggle {
position: absolute;
left: 18px;
top: 22px;
cursor: pointer;
padding: 12px 35px 16px 0px;
}
#nav-toggle span,
#nav-toggle span:before,
#nav-toggle span:after {
cursor: pointer;
border-radius: 1px;
height: 2px;
width: 25px;
background: $black-mid;
position: absolute;
display: block;
content: '';
/*
transition: all 300ms ease-in-out;
*/
}
#nav-toggle span:before {
top: -8px;
}
#nav-toggle span:after {
bottom: -8px;
}
#nav-toggle.active span {
background-color: transparent;
}
#nav-toggle.active span:before, #nav-toggle.active span:after {
top: 0;
}
#nav-toggle.active span:before {
transform: rotate(45deg);
}
#nav-toggle.active span:after {
transform: rotate(-45deg);
}

View File

@ -32,8 +32,9 @@
{% endif %} {% endif %}
</head> </head>
{% endblock %} {% endblock %}
<body class="{{ template }}"> <body class="{{ template }} f5 sans-serif dark-gray">
<div class="menu"> <!-- Menu ######################################################### -->
<div class="menu cclr-yellow-mid"> <!--menu-->
<section class="nav-bar"> <section class="nav-bar">
<div class="nav-container"> <div class="nav-container">
<div class="icon"> <div class="icon">
@ -65,99 +66,99 @@
</div> </div>
</section> </section>
</div> </div>
<!-- Content ######################################################### -->
{% block content %} {% block content %}
<div class="content"> <div class="content">
<div class="container-reader"> <div class="container-reader">
{{ content }} {{ content }}
</div>
</div> </div>
</div> {% endblock %}
{% endblock %}
{% block outro %} {% block outro %}
<div class="cta-bottom"> <div class="cta-bottom">
<div class="bg" id="bg-cta-bottom"> <div class="bg" id="bg-cta-bottom">
<div class="container-full"> <div class="container-full">
<div class="card-deck"> <div class="card-deck">
<div class="card"> <div class="card">
<h2> <h2>
Participate Participate
</h2> </h2>
<p> <p>
Development of Offen has just started. Do not hesitate to make a contribution and help us handle data with respect. Development of Offen has just started. Do not hesitate to make a contribution and help us handle data with respect.
</p> </p>
<div class="btn-wrapper"> <div class="btn-wrapper">
<a class="btn btn-color-black" href="{{GITHUB_ORG}}" rel="noopener" target="_blank">Get involved</a> <a class="btn btn-color-black" href="{{GITHUB_ORG}}" rel="noopener" target="_blank">Get involved</a>
</div>
</div> </div>
</div> <div class="card">
<div class="card"> <h2>
<h2> In the making
In the making </h2>
</h2> <p>
<p> Offen is still in alpha. Discover what is already up and running and where we want to go in the coming months.
Offen is still in alpha. Discover what is already up and running and where we want to go in the coming months. </p>
</p> <div class="btn-wrapper">
<div class="btn-wrapper"> <a class="btn btn-color-black" href="/blog/">Project status</a>
<a class="btn btn-color-black" href="/blog/">Project status</a> </div>
</div> </div>
</div> <div class="card">
<div class="card"> <h2>
<h2> Ethical internet
Ethical internet </h2>
</h2> <p>
<p> We're working hard to ensure that Offen is independent, cutting-edge and can be sustained for years to come.
We're working hard to ensure that Offen is independent, cutting-edge and can be sustained for years to come. </p>
</p> <div class="btn-wrapper">
<div class="btn-wrapper"> <a class="btn btn-color-black" href="{{ PATREON_URL }}" rel="noopener" target="_blank">Support us</a>
<a class="btn btn-color-black" href="{{ PATREON_URL }}" rel="noopener" target="_blank">Support us</a> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> {% endblock %}
{% endblock %} <!-- Footer ######################################################### -->
<div class="footer">
<div class="footer"> <div class="footer-card-deck">
<div class="footer-card-deck"> <div class="footer-card">
<div class="footer-card"> <h3>Offen</h3>
<h3>Offen</h3> <h4>Transparent web analytics</h4>
<h4>Transparent web analytics</h4> <h4>for everyone</h4>
<h4>for everyone</h4> </div>
</div> <div class="footer-card">
<div class="footer-card"> <p>
<p> <a href="mailto:{{ CONTACT_EMAIL }}">{{CONTACT_EMAIL}}</a>
<a href="mailto:{{ CONTACT_EMAIL }}">{{CONTACT_EMAIL}}</a> <a target="_blank" href="/theme/{{ GPG_KEY_FILE }}">[GPG Key]</a>
<a target="_blank" href="/theme/{{ GPG_KEY_FILE }}">[GPG Key]</a> </p>
</p> <p>
<p> <a href="{{ GITHUB_ORG }}" rel="noopener" target="_blank">GitHub</a>
<a href="{{ GITHUB_ORG }}" rel="noopener" target="_blank">GitHub</a> </p>
</p> <p>
<p> <a href="{{ PATREON_URL }}" rel="noopener" target="_blank">Patreon</a>
<a href="{{ PATREON_URL }}" rel="noopener" target="_blank">Patreon</a> </p>
</p> </div>
</div> <div class="footer-card">
<div class="footer-card"> <p>
<p> <a href="{{ LINKEDIN_URL }}" rel="noopener" target="_blank">LinkedIn</a>
<a href="{{ LINKEDIN_URL }}" rel="noopener" target="_blank">LinkedIn</a> </p>
</p> <p>
<p> <a href="{{ TWITTER_URL }}" rel="noopener" target="_blank">Twitter</a>
<a href="{{ TWITTER_URL }}" rel="noopener" target="_blank">Twitter</a> </p>
</p> <p>
<p> <a href="/legal-notice/">Legal Notice</a>
<a href="/legal-notice/">Legal Notice</a> </p>
</p> </div>
</div> <div class="footer-card">
<div class="footer-card"> {{ BUILD_DATE }}
{{ BUILD_DATE }} </div>
</div> </div>
</div> </div>
</div>
{% block scripts %} {% block scripts %}
{% assets filters="rjsmin", output="scripts/packed.js", "scripts/jquery-3.4.1.min.js", "scripts/menu.js", "scripts/fade.js" %} {% assets filters="rjsmin", output="scripts/packed.js", "scripts/jquery-3.4.1.min.js", "scripts/menu.js", "scripts/fade.js" %}
<script src="/{{ ASSET_URL }}"></script> <script src="/{{ ASSET_URL }}"></script>
{% endassets %} {% endassets %}
{% endblock %} {% endblock %}
</body> </body>
</html> </html>

View File

@ -1,10 +1,10 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div class="intro"> <div class="w100 cclr-yellow-mid"> <!--intro-->
<div class="bg" id="bg-intro"> <div class="w100" id="bg-intro">
<div class="container-reader"> <div class="mw8 center">
<div class="spacer-intro"> <div class="mw6">
<div class="sign"> <div class="sign">
<img src="/theme/images/offen-logo-white.svg" alt="Offen logo" width="152" height="94"> <img src="/theme/images/offen-logo-white.svg" alt="Offen logo" width="152" height="94">
</div> </div>
@ -22,9 +22,9 @@
</div> </div>
</div> </div>
<div class="feature"> <div class="w100 cclr-mint-mid"> <!--feature-->
<div class="bg" id="bg-feature"> <div class="w100" id="bg-feature">
<div class="container-full"> <div class="mw8 center">
<div class="card-deck"> <div class="card-deck">
<div class="card"> <div class="card">
<h2> <h2>