initial commit
This commit is contained in:
@@ -0,0 +1,136 @@
|
||||
{%- style -%}
|
||||
/* Import Brand Fonts */
|
||||
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');
|
||||
|
||||
#linumiq-hero-{{ section.id }} {
|
||||
/* Brand Typography Scale */
|
||||
--font-main: 'Inter', sans-serif;
|
||||
--font-heading: 'Roboto', sans-serif;
|
||||
--text-sm: 0.875rem;
|
||||
--text-base: 1rem;
|
||||
--text-lg: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
|
||||
--text-xl: clamp(1.5rem, 3vw + 0.5rem, 2.0rem);
|
||||
--text-2xl: clamp(2.5rem, 5vw + 1rem, 3.0rem);
|
||||
--text-3xl: clamp(3.5rem, 6vw + 1.5rem, 4.0rem);
|
||||
|
||||
font-family: var(--font-main);
|
||||
padding: 2rem 1rem 2rem;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
line-height: 1.5;
|
||||
border-bottom: 1px solid rgba(var(--color-foreground), 0.1);
|
||||
}
|
||||
|
||||
#linumiq-hero-{{ section.id }} .hero-container {
|
||||
max-width: 80rem;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#linumiq-hero-{{ section.id }} .hero-badge {
|
||||
display: inline-block;
|
||||
padding: 0.35rem 1rem;
|
||||
border-radius: 9999px;
|
||||
background-color: rgba(var(--color-button), 0.1);
|
||||
color: rgb(var(--color-button));
|
||||
font-size: var(--text-xl);
|
||||
font-weight: 600;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
#linumiq-hero-{{ section.id }} h1 {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--text-3xl);
|
||||
font-weight: 700;
|
||||
margin-bottom: 1.5rem;
|
||||
line-height: 1.2;
|
||||
color: rgb(var(--color-foreground));
|
||||
}
|
||||
|
||||
#linumiq-hero-{{ section.id }} .highlight-text {
|
||||
color: rgb(var(--color-button));
|
||||
}
|
||||
|
||||
#linumiq-hero-{{ section.id }} .hero-description {
|
||||
margin-top: 1rem;
|
||||
color: rgba(var(--color-foreground), 0.75);
|
||||
max-width: 48rem;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
font-size: var(--text-xl);
|
||||
font-weight: 400;
|
||||
line-height: 1.6;
|
||||
}
|
||||
{%- endstyle -%}
|
||||
|
||||
<div id="linumiq-hero-{{ section.id }}" class="color-{{ section.settings.color_scheme }} gradient">
|
||||
<div class="hero-container">
|
||||
|
||||
{% if section.settings.hero_badge != blank %}
|
||||
<span class="hero-badge">
|
||||
{{ section.settings.hero_badge | escape }}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<h1>
|
||||
{{ section.settings.heading_main | escape }}<br>
|
||||
<span class="highlight-text">
|
||||
{{ section.settings.heading_highlight | escape }}
|
||||
</span>
|
||||
</h1>
|
||||
|
||||
{% if section.settings.description != blank %}
|
||||
<p class="hero-description">
|
||||
{{ section.settings.description | escape }}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "LinumIQ Hero Section",
|
||||
"tag": "section",
|
||||
"class": "section-hero",
|
||||
"settings": [
|
||||
{
|
||||
"type": "color_scheme",
|
||||
"id": "color_scheme",
|
||||
"label": "Color scheme",
|
||||
"default": "background-1"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "hero_badge",
|
||||
"label": "Badge Text",
|
||||
"default": "Be smart. Start easy."
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "heading_main",
|
||||
"label": "Main Headline",
|
||||
"default": "Dein Smart Home."
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"id": "heading_highlight",
|
||||
"label": "Highlighted Headline Part",
|
||||
"default": "Einfach. Sicher. Offline."
|
||||
},
|
||||
{
|
||||
"type": "textarea",
|
||||
"id": "description",
|
||||
"label": "Description",
|
||||
"default": "Das erste Smart Home System, das komplett vorkonfiguriert zu dir kommt. Keine Cloud, kein Datenklau, kein IT-Studium nötig. Einstecken und loslegen."
|
||||
}
|
||||
],
|
||||
"presets": [
|
||||
{
|
||||
"name": "LinumIQ Hero Section",
|
||||
"category": "Custom Elements"
|
||||
}
|
||||
]
|
||||
}
|
||||
{% endschema %}
|
||||
Reference in New Issue
Block a user