mirror of
https://github.com/offen/website.git
synced 2024-11-22 09:00:28 +01:00
layout
This commit is contained in:
parent
be38243d4e
commit
940c011d6f
@ -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);
|
||||
}
|
@ -32,8 +32,9 @@
|
||||
{% endif %}
|
||||
</head>
|
||||
{% endblock %}
|
||||
<body class="{{ template }}">
|
||||
<div class="menu">
|
||||
<body class="{{ template }} f5 sans-serif dark-gray">
|
||||
<!-- Menu ######################################################### -->
|
||||
<div class="menu cclr-yellow-mid"> <!--menu-->
|
||||
<section class="nav-bar">
|
||||
<div class="nav-container">
|
||||
<div class="icon">
|
||||
@ -65,99 +66,99 @@
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{% block content %}
|
||||
<div class="content">
|
||||
<div class="container-reader">
|
||||
{{ content }}
|
||||
<!-- Content ######################################################### -->
|
||||
{% block content %}
|
||||
<div class="content">
|
||||
<div class="container-reader">
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
{% block outro %}
|
||||
<div class="cta-bottom">
|
||||
<div class="bg" id="bg-cta-bottom">
|
||||
<div class="container-full">
|
||||
<div class="card-deck">
|
||||
<div class="card">
|
||||
<h2>
|
||||
Participate
|
||||
</h2>
|
||||
<p>
|
||||
Development of Offen has just started. Do not hesitate to make a contribution and help us handle data with respect.
|
||||
</p>
|
||||
<div class="btn-wrapper">
|
||||
<a class="btn btn-color-black" href="{{GITHUB_ORG}}" rel="noopener" target="_blank">Get involved</a>
|
||||
{% block outro %}
|
||||
<div class="cta-bottom">
|
||||
<div class="bg" id="bg-cta-bottom">
|
||||
<div class="container-full">
|
||||
<div class="card-deck">
|
||||
<div class="card">
|
||||
<h2>
|
||||
Participate
|
||||
</h2>
|
||||
<p>
|
||||
Development of Offen has just started. Do not hesitate to make a contribution and help us handle data with respect.
|
||||
</p>
|
||||
<div class="btn-wrapper">
|
||||
<a class="btn btn-color-black" href="{{GITHUB_ORG}}" rel="noopener" target="_blank">Get involved</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h2>
|
||||
In the making
|
||||
</h2>
|
||||
<p>
|
||||
Offen is still in alpha. Discover what is already up and running and where we want to go in the coming months.
|
||||
</p>
|
||||
<div class="btn-wrapper">
|
||||
<a class="btn btn-color-black" href="/blog/">Project status</a>
|
||||
<div class="card">
|
||||
<h2>
|
||||
In the making
|
||||
</h2>
|
||||
<p>
|
||||
Offen is still in alpha. Discover what is already up and running and where we want to go in the coming months.
|
||||
</p>
|
||||
<div class="btn-wrapper">
|
||||
<a class="btn btn-color-black" href="/blog/">Project status</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h2>
|
||||
Ethical internet
|
||||
</h2>
|
||||
<p>
|
||||
We're working hard to ensure that Offen is independent, cutting-edge and can be sustained for years to come.
|
||||
</p>
|
||||
<div class="btn-wrapper">
|
||||
<a class="btn btn-color-black" href="{{ PATREON_URL }}" rel="noopener" target="_blank">Support us</a>
|
||||
<div class="card">
|
||||
<h2>
|
||||
Ethical internet
|
||||
</h2>
|
||||
<p>
|
||||
We're working hard to ensure that Offen is independent, cutting-edge and can be sustained for years to come.
|
||||
</p>
|
||||
<div class="btn-wrapper">
|
||||
<a class="btn btn-color-black" href="{{ PATREON_URL }}" rel="noopener" target="_blank">Support us</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer-card-deck">
|
||||
<div class="footer-card">
|
||||
<h3>Offen</h3>
|
||||
<h4>Transparent web analytics</h4>
|
||||
<h4>for everyone</h4>
|
||||
</div>
|
||||
<div class="footer-card">
|
||||
<p>
|
||||
<a href="mailto:{{ CONTACT_EMAIL }}">{{CONTACT_EMAIL}}</a>
|
||||
<a target="_blank" href="/theme/{{ GPG_KEY_FILE }}">[GPG Key]</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="{{ GITHUB_ORG }}" rel="noopener" target="_blank">GitHub</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="{{ PATREON_URL }}" rel="noopener" target="_blank">Patreon</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="footer-card">
|
||||
<p>
|
||||
<a href="{{ LINKEDIN_URL }}" rel="noopener" target="_blank">LinkedIn</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="{{ TWITTER_URL }}" rel="noopener" target="_blank">Twitter</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="/legal-notice/">Legal Notice</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="footer-card">
|
||||
{{ BUILD_DATE }}
|
||||
{% endblock %}
|
||||
<!-- Footer ######################################################### -->
|
||||
<div class="footer">
|
||||
<div class="footer-card-deck">
|
||||
<div class="footer-card">
|
||||
<h3>Offen</h3>
|
||||
<h4>Transparent web analytics</h4>
|
||||
<h4>for everyone</h4>
|
||||
</div>
|
||||
<div class="footer-card">
|
||||
<p>
|
||||
<a href="mailto:{{ CONTACT_EMAIL }}">{{CONTACT_EMAIL}}</a>
|
||||
<a target="_blank" href="/theme/{{ GPG_KEY_FILE }}">[GPG Key]</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="{{ GITHUB_ORG }}" rel="noopener" target="_blank">GitHub</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="{{ PATREON_URL }}" rel="noopener" target="_blank">Patreon</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="footer-card">
|
||||
<p>
|
||||
<a href="{{ LINKEDIN_URL }}" rel="noopener" target="_blank">LinkedIn</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="{{ TWITTER_URL }}" rel="noopener" target="_blank">Twitter</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="/legal-notice/">Legal Notice</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="footer-card">
|
||||
{{ BUILD_DATE }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% block scripts %}
|
||||
{% 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>
|
||||
{% endassets %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
{% block scripts %}
|
||||
{% 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>
|
||||
{% endassets %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,10 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="intro">
|
||||
<div class="bg" id="bg-intro">
|
||||
<div class="container-reader">
|
||||
<div class="spacer-intro">
|
||||
<div class="w100 cclr-yellow-mid"> <!--intro-->
|
||||
<div class="w100" id="bg-intro">
|
||||
<div class="mw8 center">
|
||||
<div class="mw6">
|
||||
<div class="sign">
|
||||
<img src="/theme/images/offen-logo-white.svg" alt="Offen logo" width="152" height="94">
|
||||
</div>
|
||||
@ -22,9 +22,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="feature">
|
||||
<div class="bg" id="bg-feature">
|
||||
<div class="container-full">
|
||||
<div class="w100 cclr-mint-mid"> <!--feature-->
|
||||
<div class="w100" id="bg-feature">
|
||||
<div class="mw8 center">
|
||||
<div class="card-deck">
|
||||
<div class="card">
|
||||
<h2>
|
||||
|
Loading…
Reference in New Issue
Block a user