Merge branch 'development' into development_sam
This commit is contained in:
@@ -2,10 +2,14 @@
|
||||
| trim_end_matches(pat='"') %}
|
||||
|
||||
{% if 'https' in url %}
|
||||
<button onclick="window.open('{{url}}', '_blank');"
|
||||
class="leading-6 border-transparent flex flex-col border-2 w-full items-start rounded transition hover:first:text-gray-500 hover:border-stone-200 hover:bg-stone-100 p-2 text-left">
|
||||
{{ body | trim_start_matches(pat="<p>") | safe}}
|
||||
</button>
|
||||
{% if url is not containing("threefold") %}
|
||||
{% if url is not containing("localhost") %}
|
||||
<button onclick="window.open('{{url}}', '_blank');"
|
||||
class="leading-6 border-transparent flex flex-col border-2 w-full items-start rounded transition hover:first:text-gray-500 hover:border-stone-200 hover:bg-stone-100 p-2 text-left">
|
||||
{{ body | trim_start_matches(pat="<p>") | safe}}
|
||||
</button>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
<button onclick="window.location='{{get_url(path=url)}}'"
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
class="text-5xl font-extrabold uppercase">Store</a>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
{% if base is containing("www_threefold_io") %}
|
||||
{% if 'www_threefold_io' in base %}
|
||||
{% set path = base ~ '/' ~ 'images/cloud_header_seprated.png' %}
|
||||
|
||||
<img class="mx-auto sm:w-1/2 lg:w-full" src="{{path}}" alt="TF Cloud" />
|
||||
{% else %}
|
||||
<img class="mx-auto sm:w-1/2 lg:w-full" src="images/cloud_header_seprated.png" alt="TF Cloud" />
|
||||
<img class="mx-auto sm:w-1/2 lg:w-full" src="/images/cloud_header_seprated.png" alt="TF Cloud" />
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="w-full mb-4 border-b border-gray-600">
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
{% if '127.0.0.1:1111' in config.base_url %}
|
||||
{% set img_url = 'developer/' %}
|
||||
{% else %}
|
||||
{% set img_url = '' %}
|
||||
{% endif %}
|
||||
|
||||
{% if 'www_threefold_io' in config.base_url %}
|
||||
{% set url = '/www_threefold_io' %}
|
||||
{% else %}
|
||||
{% set url = '' %}
|
||||
{% endif %}
|
||||
|
||||
<div class="my-5 lg:my-40 lg:mx-40 mx-4">
|
||||
<div class="w-full text-center">
|
||||
<h2 class="lg:text-6xl uppercase font-normal leading-tight">
|
||||
@@ -19,8 +31,8 @@
|
||||
duration-500
|
||||
bg-gray-100
|
||||
">
|
||||
<a href="/developer/os">
|
||||
<img src="developer/operating_system.png" />
|
||||
<a href={{ url ~ "/developer/os" }}>
|
||||
<img src={{ img_url ~ 'operating_system.png' }} />
|
||||
<div class="font-bold text-xl py-5 mx-4 text-black">
|
||||
Operating System
|
||||
</div>
|
||||
@@ -36,8 +48,8 @@
|
||||
duration-500
|
||||
bg-gray-100
|
||||
">
|
||||
<a href="/developer/automation">
|
||||
<img src="developer/automation.png" />
|
||||
<a href={{ url ~ "/developer/automation" }}>
|
||||
<img src={{ img_url ~ 'automation.png' }} />
|
||||
<div class="font-bold text-xl py-5 mx-4 text-black">
|
||||
Autonomous Components
|
||||
</div>
|
||||
@@ -53,8 +65,8 @@
|
||||
duration-500
|
||||
bg-gray-100
|
||||
">
|
||||
<a href="/developer/tooling">
|
||||
<img src="developer/tooling.png" />
|
||||
<a href={{ url ~ "/developer/tooling" }}>
|
||||
<img src={{ img_url ~ 'tooling.png' }} />
|
||||
<div class="font-bold text-xl py-5 mx-4 text-black">
|
||||
Developer tooling
|
||||
</div>
|
||||
@@ -70,8 +82,8 @@
|
||||
duration-500
|
||||
bg-gray-100
|
||||
">
|
||||
<a href="/developer/qsfs">
|
||||
<img src="developer/qsfs.png" />
|
||||
<a href={{ url ~ "/developer/qsfs" }}>
|
||||
<img src={{ img_url ~ 'qsfs.png' }} />
|
||||
<div class="font-bold text-xl py-5 mx-4 text-black">
|
||||
Quantum-Safe Storage
|
||||
</div>
|
||||
@@ -87,8 +99,8 @@
|
||||
duration-500
|
||||
bg-gray-100
|
||||
">
|
||||
<a href="/developer/blockchain">
|
||||
<img src="developer/blockchain.png" />
|
||||
<a href={{ url ~ "/developer/blockchain" }}>
|
||||
<img src={{ img_url ~ 'blockchain.png' }} />
|
||||
<div class="font-bold text-xl py-5 mx-4 text-black">
|
||||
ThreeFold Blockchain
|
||||
</div>
|
||||
@@ -104,8 +116,8 @@
|
||||
duration-500
|
||||
bg-gray-100
|
||||
">
|
||||
<a href="/developer/planetarynw">
|
||||
<img src="developer/planetary_network.jpg" />
|
||||
<a href={{ url ~ "/developer/planetarynw" }}>
|
||||
<img src={{ img_url ~ 'planetary_network.jpg' }} />
|
||||
<div class="font-bold text-xl py-5 mx-4 text-black">
|
||||
Planetary Network
|
||||
</div>
|
||||
|
||||
@@ -10,8 +10,10 @@ Parameters:
|
||||
-->
|
||||
|
||||
<!-- This fixes link paths in prod -->
|
||||
|
||||
{% if page %}
|
||||
{% if "](" in body %}
|
||||
|
||||
{% set body_arr = body | split(pat="](") %}
|
||||
{% set body = body_arr[0] %}
|
||||
{% for i in body_arr %}
|
||||
@@ -33,10 +35,12 @@ Parameters:
|
||||
|
||||
{% endif %}
|
||||
|
||||
<!-- This fixes image paths in local -->
|
||||
|
||||
|
||||
<!-- makes external links in row open in new tabs-->
|
||||
{% set body = body | markdown | replace(from='href="', to='target="_blank" href="') | safe %}
|
||||
{% set base_url = get_url(path="")%}
|
||||
{% set body = body | markdown | replace(from='target="_blank" href="' ~ base_url , to='href="' ~ base_url) | safe %}
|
||||
|
||||
<!-- Splits body to columns -->
|
||||
{% set columns = body | safe | markdown | split(pat="|||") %}
|
||||
{% set row_class = "relative pt-6 p-4 flex flex-col sm:grid sm:grid-cols-2 sm:gap-10 xl:flex xl:flex-row"%}
|
||||
|
||||
@@ -109,10 +113,12 @@ Parameters:
|
||||
{% set row_class = row_class ~ "w-screen -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20" %}
|
||||
{% endif %}
|
||||
|
||||
{% set url = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"') %}
|
||||
|
||||
<div class="{{row_class}}" style="{{styles}}" id="{{row_id}}">
|
||||
|
||||
{% for column in columns%}
|
||||
|
||||
{% for column in columns %}
|
||||
|
||||
<!-- Hides empty columns if displayed vertically in small screen -->
|
||||
{% if column | as_str | length < 10 %}
|
||||
<div class="hidden md:block flex-1 md:mb-0 md:mx-8 sm:flex-1">
|
||||
|
||||
Reference in New Issue
Block a user