test links

This commit is contained in:
samaradel
2022-07-27 14:49:08 +02:00
parent c51ad9a7cf
commit b9ce0620ca
8 changed files with 116 additions and 2 deletions

3
content/home/_index.md Normal file
View File

@@ -0,0 +1,3 @@
---
template: "index.html"
---

View File

@@ -0,0 +1,3 @@
---
transparent: true
---

View File

@@ -0,0 +1,11 @@
---
title: "Expand the Peoples Internet"
extra:
subtitle: "and earn TFT"
button: Become a Farmer
link: /farm
imgPath: /images/become_farmer_new.jpg
---
By connecting hardware at your home or office, support the growth of a decentralized Internet and earn a new digital currency, TFT.

View File

@@ -0,0 +1,11 @@
---
title: DECENTRALIZE YOUR
extra:
subtitle: "DATA AND WORKLOADS"
imgPath: /images/network_new.jpg
button: Deploy
link: /cloud
---
Companies and developers have already started using ThreeFold for its autonomous, decentralization and privacy features.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -1,8 +1,19 @@
{% extends "_default/base.html" %}
{% block content %}
<style>
.container-fluid {
width: 100%;
/* padding-right: 15px;
padding-left: 15px; */
margin-right: auto;
margin-left: auto;
}
</style>
<!-- Landing page template, has a banner and rows of page summaries -->
<main>
{{section.content | safe}}
<div class="container-fluid sm:pxi-0 mx-auto overflow-x-hidden">
{% include "partials/partnerships.html" %}
</div>
</main>
{% endblock content %}

View File

@@ -0,0 +1,75 @@
{% set home = get_section(path="home/_index.md") %}
<style>
.bg-gray {
background-color: #f2f2f2
}
</style>
{% if current_path == '/' %}
<div class="
max-w-screen-2xl
mx-auto
py-12
text-center
sm:px-6
lg:px-8
lg:py-20
">
<div class="space-y-12">
<div class="mx-auto grid-cols-2 sm:grid sm:grid-cols-1 lg:grid-cols-2">
{% for page in home.pages %}
<div class="my-5 mx-5 pt-10 bg-gray">
<div class="space-y-2">
<div class="text-lg font-medium space-y-1">
<h2 class="h2 uppercase leading-tight font-light">
{{ page.title }}
<span class="block font-bold"> {{ page.extra.subtitle }}</span>
</h2>
<div class="mx-auto text-xl px-5 mb-5">{{ page.content | safe }}</div>
</div>
{% if page.extra.button %}
<div>
{% if page.extra.button is containing('http') %}
<a target="_blank" href="{{page.extra.link}}" class="
inline-block
lg:text-lg
learn-button
hover:bg-gray-400
px-12
py-1
mr-5
my-10
border-2
shadow
border-black
capitalize
">{{ page.extra.button }}</a>
{% else %}
<a href={{get_url(path=page.extra.link)}} class="
inline-block
lg:text-lg
learn-button
hover:bg-gray-400
px-12
py-1
mr-5
my-10
border-2
shadow
border-black
capitalize
">{{ page.extra.button }}</a>
{% endif %}
</div>
{% endif %}
</div>
<img class="mx-auto w-full" src="{{get_url(path=page.extra.imgPath)}}" />
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}