-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add content landing-b * Add new landing * Modify title display * change folder name, update css * modify folder name
- Loading branch information
1 parent
b754f99
commit df4a597
Showing
3 changed files
with
225 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
--- | ||
permalink: /inicio/ | ||
title: Virto Network | ||
layout: landing.liquid | ||
data: | ||
route: inicio | ||
--- | ||
|
||
<style> | ||
img:not(#build_machine) { | ||
width: 20px !important; | ||
display: inline-block; | ||
vertical-align: middle; | ||
} | ||
.logo.img-c svg { width: 700px; } | ||
ul li, .auto-grid li { display: flex; align-items: center; gap: 1.75em; } | ||
#section-c ul li { margin-bottom: 1em; } | ||
#section-a .text-section { max-width: clamp(300px, 50%, 700px); } | ||
#section-a figure.logo { align-items: start; } | ||
#section-a .arrow-right { | ||
position: absolute; | ||
right: clamp(37%, 2vw, 45%); | ||
top: -20px; | ||
} | ||
#section-b h2 { max-width: 700px; margin-left: 20px; } | ||
#section-b .logo { margin-top: 2em; margin-left: 20px; } | ||
#section-b .text-section { gap: 5em; } | ||
#section-c, #section-b { align-items: center; flex-wrap: wrap; } | ||
#section-c { padding: 0 1rem; } | ||
#section-c .logo { margin-top: 2em; } | ||
#section-d { display: grid; } | ||
#section-d article div { max-width: 41rem; } | ||
#section-d article div:nth-child(2) { margin-bottom: 1em; } | ||
#section-d .max .text-section { | ||
gap: 2rem; | ||
align-self: flex-end; | ||
} | ||
#section-d .max { flex-wrap: wrap; } | ||
/*MOBILE*/ | ||
@media only screen and (max-width: 767px) { | ||
article div { width: 90%; } | ||
.text-section { max-width: 85%; } | ||
} | ||
@media only screen and (max-width: 1490px) { | ||
.column { order: -1; width: fit-content(300px); } | ||
} | ||
</style> | ||
|
||
{% for landing_b in site.data.landings.landing_b %} | ||
<section {% if landing_b.id == "section-a" %} id="section-a" class="light-green-bg"> | ||
<article class="max animated"> | ||
<div class="text-section dark-olive-text"> | ||
<p>¡Bienvenido a Virto!</p> | ||
<h1>{{ landing_b.title }}</h1> | ||
<p>{{ landing_b.question }}</p> | ||
<p>{{ landing_b.paragraph }}</p> | ||
<button><a href={{ landing_b.href }}>{{ landing_b.call_to_action }}</a></button> | ||
</div> | ||
<figure class="arrow-right"> | ||
{% include "arrow_right.svg" %} | ||
</figure> | ||
<figure class="logo image"> | ||
{% include "a.svg" %} | ||
</figure> | ||
</article> | ||
</section> | ||
{% endif %} | ||
|
||
<section {% if landing_b.id == "section-b" %} id="section-b"> | ||
<article class="max animated"> | ||
<div class="column"> | ||
<h2 class="light-green-text">{{ landing_b.title }}</h2> | ||
<figure class="logo"> | ||
{% include "presentamos_virto.svg" %} | ||
</figure> | ||
</div> | ||
<div class="text-section light-green-text"> | ||
<h3>{{ landing_b.subtitle }}</h3> | ||
<ul class="auto-grid"> | ||
{% for item in landing_b.list %} | ||
<li class="animated"> | ||
<img src="{{ item.icon }}" alt="{{ item.alt }}" ></img> | ||
<p>{{ item.content }}</p> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<a href={{ landing_b.href }} class="bold light-lavender-text center-arrow">{{ landing_b.call_to_action }} | ||
<figure class="link-arrow light-lavender-text"> | ||
{% include "see_more.svg" %} | ||
</figure> | ||
</a> | ||
</div> | ||
</article> | ||
</section> | ||
{% endif %} | ||
|
||
<section {% if landing_b.id == "section-c" %} id="section-c"> | ||
<article class="max animated"> | ||
<div class="text-section light-green-text"> | ||
<h3 class="light-lavender-text">{{ landing_b.subtitle }}</h3> | ||
<ul> | ||
{% for item in landing_b.list %} | ||
<li class="animated"> | ||
<img src="{{ item.icon }}" alt="{{ item.alt }}"></img> | ||
<p>{{ item.content }}</p> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<a href={{ landing_b.href }} class="bold light-lavender-text center-arrow">{{ landing_b.call_to_action }} | ||
<figure class="link-arrow light-lavender-text"> | ||
{% include "see_more.svg" %} | ||
</figure> | ||
</a> | ||
</div> | ||
|
||
<div class="column"> | ||
<h2 class="light-green-text">{{ landing_b.title }}</h2> | ||
<figure class="logo img-c"> | ||
{% include "c.svg" %} | ||
</figure> | ||
</div> | ||
</article> | ||
</section> | ||
{% endif %} | ||
|
||
<section {% if landing_b.id == "section-d" %} id="section-d" class="whitest-bg"> | ||
<article class="max animated"> | ||
<div class="text-section"> | ||
<h2 class="dark-olive-text">{{ landing_b.title }}</h2> | ||
<figure class="logo build-machine"> | ||
<img id="build_machine" src="/img/build_machine.svg" alt="Construir comunidad"/> | ||
</figure> | ||
</div> | ||
<div class="text-section"> | ||
<h3 class="dark-olive-text">Transforma tu organización con facilidad.</h3> | ||
<p class="dark-olive-text">{{ landing_b.paragraph }}</p> | ||
<a class="dark-olive-text center-arrow" href={{ landing_b.href }}>{{ landing_b.call_to_action }} | ||
<figure class="link-arrow">{% include "see_more.svg" %}</figure> | ||
</a> | ||
</div> | ||
</article> | ||
</section> | ||
{% endif %} | ||
|
||
{% endfor %} | ||
|
||
|
||
<script> | ||
const $ = document.querySelector.bind(document), | ||
$$ = document.querySelectorAll.bind(document); | ||
const addViewedClass = ([e], ob) => { | ||
e.target.classList.add('viewed'); | ||
ob.unobserve(e.target); | ||
}; | ||
const whenVisible = (elements, fn, opts) => { | ||
const ob = new IntersectionObserver(fn, opts); | ||
$$(elements).forEach(e => ob.observe(e)); | ||
}; | ||
const makeSticky = ([br]) => | ||
br.target.nextElementSibling.classList.toggle('fixed', br.intersectionRatio === 1); | ||
whenVisible('main>section', addViewedClass, { threshold: 0.2 }); | ||
whenVisible('.sticky-hack', makeSticky, { threshold: [0, 1] }); | ||
</script> |