quitar media print css
This commit is contained in:
@@ -0,0 +1,390 @@
|
||||
{% liquid
|
||||
if section.settings.line_1 != blank
|
||||
assign line_1 = section.settings.line_1
|
||||
else
|
||||
assign line_1 = 'distributors.line_1' | t
|
||||
endif
|
||||
|
||||
if section.settings.brand != blank
|
||||
assign brand = section.settings.brand
|
||||
else
|
||||
assign brand = 'distributors.brand' | t
|
||||
endif
|
||||
|
||||
if section.settings.line_2 != blank
|
||||
assign line_2 = section.settings.line_2
|
||||
else
|
||||
assign line_2 = 'distributors.line_2' | t
|
||||
endif
|
||||
|
||||
if section.settings.text != blank
|
||||
assign text = section.settings.text
|
||||
else
|
||||
assign text = 'distributors.text' | t
|
||||
endif
|
||||
|
||||
if section.settings.button_label != blank
|
||||
assign button_label = section.settings.button_label
|
||||
else
|
||||
assign button_label = 'distributors.button' | t
|
||||
endif
|
||||
|
||||
assign photo_alt = 'distributors.photo_alt' | t
|
||||
%}
|
||||
|
||||
<section class="distributors full-width" id="Distributors-{{ section.id }}">
|
||||
<div class="distributors__layout">
|
||||
<div class="distributors__photo">
|
||||
{% if section.settings.image != blank %}
|
||||
{{
|
||||
section.settings.image
|
||||
| image_url: width: 1720
|
||||
| image_tag:
|
||||
class: 'distributors__photo-image',
|
||||
alt: photo_alt,
|
||||
widths: '480, 800, 1200, 1720',
|
||||
sizes: '(max-width: 1024px) 92vw, 45vw',
|
||||
loading: 'lazy'
|
||||
}}
|
||||
{% else %}
|
||||
<img
|
||||
class="distributors__photo-image distributors__photo-image--flip"
|
||||
src="{{ 'distributors-photo.avif' | asset_url }}"
|
||||
alt="{{ photo_alt | escape }}"
|
||||
width="1157"
|
||||
height="1300"
|
||||
loading="lazy"
|
||||
>
|
||||
{% endif %}
|
||||
|
||||
<img
|
||||
class="distributors__wordmark"
|
||||
src="{{ 'distributors-wordmark.svg' | asset_url }}"
|
||||
alt="{{ 'distributors.wordmark' | t }}"
|
||||
width="324"
|
||||
height="210"
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="distributors__panel">
|
||||
<img
|
||||
class="distributors__blob distributors__blob--top"
|
||||
src="{{ 'distributors-blob.avif' | asset_url }}"
|
||||
alt=""
|
||||
width="355"
|
||||
height="403"
|
||||
>
|
||||
<img
|
||||
class="distributors__blob distributors__blob--bottom"
|
||||
src="{{ 'distributors-blob.avif' | asset_url }}"
|
||||
alt=""
|
||||
width="210"
|
||||
height="114"
|
||||
>
|
||||
|
||||
<div class="distributors__copy">
|
||||
<h2 class="distributors__heading">
|
||||
<span class="distributors__line">
|
||||
<span class="distributors__medium">{{ line_1 | escape }}</span>
|
||||
<span class="distributors__bold"> {{ brand | escape }}</span>
|
||||
</span>
|
||||
<span class="distributors__line distributors__line--rest">{{ line_2 | escape }}</span>
|
||||
</h2>
|
||||
|
||||
{% if text != blank %}
|
||||
<p class="distributors__text">{{ text | escape }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% if button_label != blank %}
|
||||
{% if section.settings.button_link != blank %}
|
||||
<a class="distributors__button" href="{{ section.settings.button_link }}">
|
||||
{{ button_label | escape }}
|
||||
</a>
|
||||
{% else %}
|
||||
<span class="distributors__button">{{ button_label | escape }}</span>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% stylesheet %}
|
||||
.distributors {
|
||||
margin-top: 100px;
|
||||
color: #000;
|
||||
font-family: Archivo, sans-serif;
|
||||
}
|
||||
|
||||
.distributors__layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 859fr) minmax(0, 860fr);
|
||||
width: min(1719px, calc(100% - 200px));
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.distributors__photo {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: 10px 0 0 10px;
|
||||
aspect-ratio: 859 / 964;
|
||||
background: #f3f1ee;
|
||||
}
|
||||
|
||||
.distributors__photo-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.distributors__photo-image--flip {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.distributors__wordmark {
|
||||
position: absolute;
|
||||
left: 31.2%;
|
||||
top: 39.1%;
|
||||
display: block;
|
||||
width: 37.7%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.distributors__panel {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
border-radius: 0 10px 10px 0;
|
||||
background: linear-gradient(131deg, #ffffff 0%, #ffffff 35.6%, #e5f4ff 67.9%);
|
||||
}
|
||||
|
||||
.distributors__blob {
|
||||
position: absolute;
|
||||
height: auto;
|
||||
opacity: 0.7;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.distributors__blob--top {
|
||||
top: 5%;
|
||||
right: 4%;
|
||||
width: 41.3%;
|
||||
}
|
||||
|
||||
.distributors__blob--bottom {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.distributors__copy {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 40px;
|
||||
width: min(804px, 100%);
|
||||
padding: 48px 28px;
|
||||
}
|
||||
|
||||
.distributors__heading {
|
||||
margin: 0;
|
||||
font-family: "Roc Grotesk", Archivo, sans-serif;
|
||||
font-size: 60px;
|
||||
font-weight: 500;
|
||||
line-height: 75px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.distributors__line {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.distributors__bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.distributors__text {
|
||||
max-width: 672px;
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.distributors__button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 341px;
|
||||
max-width: 100%;
|
||||
height: 50px;
|
||||
padding: 15px;
|
||||
border-radius: 60px;
|
||||
background: #9dd6c7;
|
||||
color: #000;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.distributors__button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
a.distributors__button:hover {
|
||||
filter: brightness(0.96);
|
||||
}
|
||||
|
||||
a.distributors__button:focus-visible {
|
||||
outline: 2px solid #000;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.distributors__layout {
|
||||
width: min(1719px, calc(100% - 80px));
|
||||
}
|
||||
|
||||
.distributors__heading {
|
||||
font-size: 44px;
|
||||
line-height: 54px;
|
||||
}
|
||||
|
||||
.distributors__text {
|
||||
font-size: 18px;
|
||||
line-height: 26px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.distributors {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.distributors__layout {
|
||||
grid-template-columns: 1fr;
|
||||
width: min(372px, calc(100% - 30px));
|
||||
}
|
||||
|
||||
.distributors__photo {
|
||||
border-radius: 10px 10px 0 0;
|
||||
aspect-ratio: 372 / 420;
|
||||
}
|
||||
|
||||
.distributors__panel {
|
||||
min-height: 420px;
|
||||
border-radius: 0 0 10px 10px;
|
||||
}
|
||||
|
||||
.distributors__blob--top {
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 46%;
|
||||
}
|
||||
|
||||
.distributors__blob--bottom {
|
||||
display: block;
|
||||
bottom: -18%;
|
||||
left: 28%;
|
||||
width: 56%;
|
||||
}
|
||||
|
||||
.distributors__copy {
|
||||
gap: 18px;
|
||||
padding: 48px 10px;
|
||||
}
|
||||
|
||||
.distributors__heading {
|
||||
font-size: 30px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.distributors__bold {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.distributors__line--rest {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.distributors__text {
|
||||
max-width: none;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.distributors__button {
|
||||
width: 300px;
|
||||
height: 45px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:distributors.name",
|
||||
"tag": "section",
|
||||
"class": "distributors-section",
|
||||
"disabled_on": {
|
||||
"groups": ["header", "footer"]
|
||||
},
|
||||
"settings": [
|
||||
{
|
||||
"type": "text",
|
||||
"id": "line_1",
|
||||
"label": "t:distributors.line_1",
|
||||
"default": "Lleva"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "brand",
|
||||
"label": "t:distributors.brand",
|
||||
"default": "Seasons"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "line_2",
|
||||
"label": "t:distributors.line_2",
|
||||
"default": "a más personas"
|
||||
},
|
||||
{
|
||||
"type": "textarea",
|
||||
"id": "text",
|
||||
"label": "t:distributors.text",
|
||||
"default": "Súmate como distribuidor y forma parte de una marca mexicana de skincare que acompaña a cada persona a encontrar productos pensados para su rutina, sus necesidades y su forma de cuidarse."
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "button_label",
|
||||
"label": "t:distributors.button_label",
|
||||
"default": "Regístrate"
|
||||
},
|
||||
{
|
||||
"type": "url",
|
||||
"id": "button_link",
|
||||
"label": "t:distributors.button_link"
|
||||
},
|
||||
{
|
||||
"type": "image_picker",
|
||||
"id": "image",
|
||||
"label": "t:distributors.image",
|
||||
"info": "t:distributors.image_info"
|
||||
}
|
||||
],
|
||||
"presets": [
|
||||
{
|
||||
"name": "t:distributors.name"
|
||||
}
|
||||
]
|
||||
}
|
||||
{% endschema %}
|
||||
Reference in New Issue
Block a user