Merge branch 'timurgordon:main' into master

This commit is contained in:
timurgordon 2022-06-09 18:09:05 +03:00 committed by GitHub
commit d390b522a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 98 additions and 40 deletions

View File

@ -12,35 +12,51 @@ extra:
{% row(style="invert-color" bgPath="/images/ow_lp1.jpg" bgStyle="full") %} {% row(style="invert-color" bgPath="/images/ow_lp1.jpg" bgStyle="full") %}
![TF Logo](/images/ow_lp_logo.png#small)
<br>
<br>
<br>
<br> <br>
## Be at the source of WEB4 Movement ## Power the WEB4 Movement
<br> <br>
<br> <br>
#### Shaping the future internet #### The Internet of Internets
#### open, green, resilient, inclusive #### Open, regenerative & inclusive
<br> <br>
<br>
<a href="/"><button class="dark">PLAN A MEETING</button></a>
{% end %} {% end %}
{% row(style="lean") %} {% row(style="moderate center") %}
![Image](images/ow_lp.png) ## SPRING CAMPAIGN
{% end %}
{% row(style="invert-color" bgPath="/images/ow_lp2.jpg" bgStyle="full") %}
<br> <br>
## The Foundation for a ![Image](images/ow_lp40.jpg)
## Decentralized World. <br>
**4 MILLION € ALREADY RAISED**
{% end %}
![Tech image](/images/ow_lp2.jpg#mobile)
{% row(style="invert-color" bgPath="/images/ow_lp2.jpg#desktop" bgStyle="full") %}
<br>
## The Foundation for
## a Decentralized World.
<br> <br>
<br> <br>
@ -49,7 +65,7 @@ Power to change everything. Discover a sovereign, secure and regenerative Intern
<br> <br>
The Internet of Internets is bringing a new paradigm for people, enterprises and governements. The Internet of Internets is bringing a new paradigm for people, enterprises and governments.
||| |||
@ -63,7 +79,7 @@ The Internet of Internets is bringing a new paradigm for people, enterprises and
{% row(style="moderate")%} {% row(style="moderate")%}
![Image](/images/ow_lp3.jpg) ![Image](/images/ow_lp3.jpg#desktop)
<br> <br>

View File

@ -8,15 +8,14 @@
@import "tailwindcss/components"; @import "tailwindcss/components";
@import "admonition.css"; @import "admonition.css";
@import "tailwindcss/utilities"; @import "tailwindcss/utilities";
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
/* Custom CSS for header partial */ /* Custom CSS for header partial */
.backdrop-blur { .backdrop-blur {
-webkit-backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
} }
* { * {
font-family: "Exo", sans-serif; font-family: "Montserrat", sans-serif;
} }
a { a {
@ -33,7 +32,7 @@ img[src*="#mx-auto"] {
} }
img[src*="#small"] { img[src*="#small"] {
width: 68px; width: 60px;
} }
@ -47,6 +46,22 @@ img[src*="#medium"] {
margin: auto; margin: auto;
} }
img[src*="#mobile"] {
display: none;
}
@media (max-width: 440px) {
img[src*="#mobile"] {
display: block;
}
}
@media (max-width: 440px) {
img[src*="#desktop"] {
display: none;
}
}
img[src*="#logo"] { img[src*="#logo"] {
max-width: min(250px, 100%); max-width: min(250px, 100%);
margin: auto; margin: auto;
@ -74,7 +89,7 @@ img[src*="#tft_img"] {
@apply font-semibold; @apply font-semibold;
} }
h2 { h2 {
@apply text-4xl md:text-4xl lg:text-5xl xl:text-6xl font-semibold leading-none; @apply text-2xl md:text-4xl lg:text-5xl font-semibold leading-none;
} }
h2 strong { h2 strong {
@apply font-medium; @apply font-medium;
@ -95,7 +110,7 @@ img[src*="#tft_img"] {
@apply text-md not-italic font-normal my-1; @apply text-md not-italic font-normal my-1;
} }
p { p {
@apply text-md lg:text-md font-normal tracking-wide leading-normal; @apply text-sm lg:text-md font-normal tracking-wide leading-normal;
font-family: "Lato", sans-serif; font-family: "Lato", sans-serif;
} }
blockquote { blockquote {
@ -109,17 +124,27 @@ img[src*="#tft_img"] {
} }
button { button {
@apply inline-block @apply inline-block
lg:text-lg font-sans
px-12 text-sm
lg:text-xl
px-6
lg:px-16
py-1 py-1
mr-5 mr-5
my-10 my-10
border-2 border-2
rounded-3xl
shadow shadow
font-bold
capitalize; capitalize;
} }
} }
button.dark {
background-color: #1a1a1a;
}
button:hover :is(:where(a)) { button:hover :is(:where(a)) {
color: #c6f8ff; color: #c6f8ff;
} }
@ -129,6 +154,7 @@ button :is(:where(p)) {
font-weight: 400; font-weight: 400;
} }
/*
button { button {
background-color: #1a1a1a; background-color: #1a1a1a;
border-radius: 20px; border-radius: 20px;
@ -136,6 +162,7 @@ button {
box-shadow: none; box-shadow: none;
font-size: 20px; font-size: 20px;
} }
*/
button a { button a {
color: white; color: white;

View File

@ -128,19 +128,13 @@ h1,
h2, h2,
.h2, .h2,
h3, h3,
.h3 { .h3,
font-family: "Exo", sans-serif;
}
h4, h4,
.h4, .h4,
h5, h5,
.h5, .h5,
h6, h6,
.h6 { .h6,
@apply font-sans leading-none tracking-tight;
font-family: "Lato", sans-serif;
}
h1, h1,
.h1 { .h1 {

BIN
static/images/ow_lp40.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@ -1,6 +1,7 @@
const colors = require('tailwindcss/colors') const colors = require('tailwindcss/colors')
module.exports = { module.exports = {
important: '#content',
content: [ content: [
'./templates/**/*.html' './templates/**/*.html'
], ],
@ -12,6 +13,13 @@ module.exports = {
} }
}, },
theme: { theme: {
fontFamily: {
'sans': ['Montserrat', 'system-ui'],
'serif': ['ui-serif', 'Georgia'],
'mono': ['ui-monospace', 'SFMono-Regular'],
'display': ['Montserrat'],
'body': ['"Montserrat"']
},
fontSize: { fontSize: {
'xs': '.75rem', 'xs': '.75rem',
'sm': '.875rem', 'sm': '.875rem',

View File

@ -2,11 +2,9 @@
<html lang="en" charset="utf-8"> <html lang="en" charset="utf-8">
{% include "partials/head.html" %} {% include "partials/head.html" %}
{% include "partials/header.html" %}
<body> <body>
<div id="content" class="p-8 pt-12 sm:p-12 md:p-16 lg:p-20"> <div id="content">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>

View File

@ -31,10 +31,10 @@ Parameters:
<!-- makes row full screen width, strips margins --> <!-- makes row full screen width, strips margins -->
{% if "lean" in style %} {% if "lean" in style %}
{% if "lean-left" in style %} {% if "lean-left" in style %}
{% set col_class = col_class ~ " last:px-20 max-w-[50%] " %} {% set col_class = col_class ~ " last:px-20 lg:max-w-[50%] " %}
{% set row_class = row_class ~ " sm:gap-0 " %} {% set row_class = row_class ~ " sm:gap-0 " %}
{% elif "lean-right" in style %} {% elif "lean-right" in style %}
{% set col_class = col_class ~ " first:px-20 max-w-[50%] " %} {% set col_class = col_class ~ " first:px-20 lg:max-w-[50%] " %}
{% set row_class = row_class ~ " sm:gap-0 " %} {% set row_class = row_class ~ " sm:gap-0 " %}
{% else %} {% else %}
{% set row_class = row_class ~ " md:py-0 " %} {% set row_class = row_class ~ " md:py-0 " %}
@ -74,32 +74,47 @@ Parameters:
{% set anchor_link = anchor %} {% set anchor_link = anchor %}
{% endif %} {% endif %}
<!-- makes row full screen width and adds background img --> <!-- makes row full screen width and adds background img -->
{% set styles = "" %} {% set styles = "" %}
{% set div_class = " " %}
{% if bgPath %} {% if bgPath %}
{% set styles = "background: url('" ~ bgPath ~ "'); background-size: cover;" %} {% set styles = "background: url('" ~ bgPath ~ "'); background-size: cover; background-position: center;" %}
{% if "#desktop" in bgPath %}
{% set div_class = " !bg-[length:0px_0px] !bg-no-repeat lg:!bg-cover " %}
{% set row_class = row_class | replace(from='text-white', to='') %}
{% endif %}
{% endif %} {% endif %}
{% if bgStyle %} {% if bgStyle %}
{% set styles = "background: url('" ~ bgPath ~ "'); background-size: cover; height: -webkit-fill-available" %} {% if "full" in bgStyle %}
{% set styles = styles ~ "height: -webkit-fill-available; height: 100vh;" %}
{% endif %}
{% endif %} {% endif %}
{% if bgColor %} {% if bgColor %}
{% set styles = "background-color: " ~ bgColor ~ "; background-size: cover" %} {% set styles = "background-color: " ~ bgColor ~ "; background-size: cover" %}
{% set row_class = row_class ~ " py-0 " %} {% set row_class = row_class ~ " py-0 " %}
{% endif %} {% endif %}
<div id="{{anchor_link}}" class="w-screen -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20 justify-center flex" style="{{styles}}">
<div id="{{anchor_link}}" class="{{'w-screen justify-center flex ' ~ div_class}}" style="{{styles}}">
<div class="{{row_class}}" style="width: -webkit-fill-available"> <div class="{{row_class}}" style="width: -webkit-fill-available">
{% for column in columns%} {% for column in columns%}
<!-- Hides empty columns if displayed vertically in small screen --> <!-- Hides empty columns if displayed vertically in small screen -->
{% if column | as_str | length < 10 %} {% if column | as_str | length < 10 %}
<div class="hidden md:block flex-1 md:mb-0 md:mx-8 sm:flex-1"> <div class="hidden md:block flex-1 md:mb-0 md:mx-8 sm:flex-1 ">
{{ column | safe }} {{ column | safe }}
</div> </div>
{% else %} {% else %}
<div class="{{col_class}}"> <div class="{{col_class}}">
<!-- handles mermaid markdown content display --> <!-- handles mermaid markdown content display -->
{% set claim = "yo there is no img" %}
{% if "img" in column %}
{% set claim = "yo there iis img" %}
{% endif %}
{{claim}}
{% if "{% mermaid() %}" in column %} {% if "{% mermaid() %}" in column %}
{% set mermaid_section = column | safe | markdown | split(pat="{% mermaid() %}") %} {% set mermaid_section = column | safe | markdown | split(pat="{% mermaid() %}") %}
{% set mermaid_content = mermaid_section[1] | striptags | replace(from="", to="--")%} {% set mermaid_content = mermaid_section[1] | striptags | replace(from="", to="--")%}