Jump to content

Template:Home section: Difference between revisions

From Fedoverse Wiki, the free encyclopedia
No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<div class="fed-home-section {{{Section class|}}}" style="width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); padding:0; box-sizing:border-box; background:transparent;">


<includeonly>
<div class="fed-home-section-inner" style="width:100%; max-width:1500px; margin:0 auto; padding:clamp(55px,7vw,110px) clamp(20px,5vw,75px); box-sizing:border-box;">
<div style="width:100%; max-width:1280px; margin:0 auto; padding:65px 24px; box-sizing:border-box;">


{{#switch: {{{Layout|Image left / text right}}}
{{#switch: {{{Layout|Text left / image right}}}


|Text left / image right=
|Text left / image right=


<div style="display:flex; flex-wrap:wrap; align-items:center; gap:clamp(30px,5vw,75px);">
<div class="fed-home-row" style="display:flex; flex-wrap:wrap; align-items:center; gap:clamp(35px,6vw,90px);">
<div style="flex:1 1 380px; min-width:0;">
 
{{#if:{{{Title|}}}|<h2 style="font-family:Georgia,serif; font-size:clamp(2rem,4vw,3.4rem); font-weight:normal; line-height:1.12; margin:0 0 24px;">{{{Title}}}</h2>}}
<div class="fed-home-copy" style="flex:1 1 450px; min-width:0; text-align:right; padding-right:0;">
<div style="font-family:Inter,system-ui,sans-serif; font-size:1.12rem; line-height:1.85;">
 
{{#if:{{{Title|}}}|
<div class="fed-home-title" style="font-family:Georgia,'Times New Roman',serif; font-size:clamp(44px,5.2vw,82px); font-weight:400; line-height:1.06; letter-spacing:-1.8px; margin:0 0 35px; padding:0; border:0; box-shadow:none;">
{{{Title}}}
</div>
}}
 
<div class="fed-home-body" style="font-family:Inter,system-ui,sans-serif; font-size:clamp(18px,1.5vw,25px); line-height:1.65; text-align:right;">
{{{Text|}}}
{{{Text|}}}
</div>
</div>
{{#if:{{{Button text|}}}|<p style="margin-top:30px;"><span class="plainlinks">[{{{Button URL}}} <span class="btn btn-blue">{{{Button text}}}</span>]</span></p>}}
 
{{#if:{{{Button text|}}}|
{{#if:{{{Button URL|}}}|
<p style="margin-top:38px;">
<span class="plainlinks">[{{{Button URL}}} <span style="display:inline-block; background:#111; color:white; padding:16px 30px; border-radius:9px; font-family:Inter,system-ui,sans-serif; font-size:19px; font-weight:500;">{{{Button text}}}</span>]</span>
</p>
}}
}}
 
</div>
</div>
<div style="flex:1 1 450px; min-width:0;">
 
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|center|600px|alt={{{Title|}}}]]}}
{{#if:{{{Image|}}}|
<div class="fed-home-image" style="aspect-ratio:4 / 3;">
[[File:{{{Image}}}|frameless|800px|link=|alt={{{Title|}}}]]
</div>
</div>
}}
</div>
|Image left / text right=
<div class="fed-home-row" style="display:flex; flex-wrap:wrap; align-items:center; gap:clamp(35px,6vw,90px);">
{{#if:{{{Image|}}}|
<div class="fed-home-image" style="aspect-ratio:4 / 3;">
[[File:{{{Image}}}|frameless|800px|link=|alt={{{Title|}}}]]
</div>
</div>
}}


|Centered=
<div class="fed-home-copy" style="flex:1 1 450px; min-width:0; text-align:left;">
 
{{#if:{{{Title|}}}|
<div class="fed-home-title" style="font-family:Georgia,'Times New Roman',serif; font-size:clamp(44px,5.2vw,82px); font-weight:400; line-height:1.06; letter-spacing:-1.8px; margin:0 0 35px; padding:0; border:0; box-shadow:none;">
{{{Title}}}
</div>
}}


<div style="max-width:1100px; margin:0 auto; text-align:center;">
<div class="fed-home-body" style="font-family:Inter,system-ui,sans-serif; font-size:clamp(18px,1.5vw,25px); line-height:1.65;">
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|center|1000px|alt={{{Title|}}}]]}}
{{#if:{{{Title|}}}|<h2 style="font-family:Georgia,serif; font-size:clamp(2rem,4vw,3.5rem); font-weight:normal; line-height:1.15; margin:35px 0 20px;">{{{Title}}}</h2>}}
<div style="font-family:Inter,system-ui,sans-serif; font-size:1.12rem; line-height:1.85; max-width:750px; margin:auto;">
{{{Text|}}}
{{{Text|}}}
</div>
</div>
{{#if:{{{Button text|}}}|<p style="margin-top:30px;"><span class="plainlinks">[{{{Button URL}}} <span class="btn btn-blue">{{{Button text}}}</span>]</span></p>}}
 
{{#if:{{{Button text|}}}|
{{#if:{{{Button URL|}}}|
<p style="margin-top:38px;">
<span class="plainlinks">[{{{Button URL}}} <span style="display:inline-block; background:#111; color:white; padding:16px 30px; border-radius:9px; font-family:Inter,system-ui,sans-serif; font-size:19px; font-weight:500;">{{{Button text}}}</span>]</span>
</p>
}}
}}
 
</div>
</div>
</div>


|#default=
|Centered=


<div style="display:flex; flex-wrap:wrap; align-items:center; gap:clamp(30px,5vw,75px);">
<div style="width:100%; max-width:1150px; margin:0 auto; text-align:center;">
<div style="flex:1 1 450px; min-width:0;">
 
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|center|600px|alt={{{Title|}}}]]}}
{{#if:{{{Image|}}}|
<div class="fed-home-image fed-home-image-centered" style="aspect-ratio:14 / 7;">
[[File:{{{Image}}}|frameless|1200px|link=|alt={{{Title|}}}]]
</div>
</div>
<div style="flex:1 1 380px; min-width:0;">
}}
{{#if:{{{Title|}}}|<h2 style="font-family:Georgia,serif; font-size:clamp(2rem,4vw,3.4rem); font-weight:normal; line-height:1.12; margin:0 0 24px;">{{{Title}}}</h2>}}
 
<div style="font-family:Inter,system-ui,sans-serif; font-size:1.12rem; line-height:1.85;">
{{#if:{{{Title|}}}|
<div class="fed-home-title" style="font-family:Georgia,'Times New Roman',serif; font-size:clamp(38px,4.5vw,72px); font-weight:400; line-height:1.1; margin:35px 0 20px; border:0;">
{{{Title}}}
</div>
}}
 
<div class="fed-home-body" style="font-family:Inter,system-ui,sans-serif; font-size:clamp(18px,1.5vw,24px); line-height:1.7;">
{{{Text|}}}
{{{Text|}}}
</div>
</div>
{{#if:{{{Button text|}}}|<p style="margin-top:30px;"><span class="plainlinks">[{{{Button URL}}} <span class="btn btn-blue">{{{Button text}}}</span>]</span></p>}}
 
</div>
{{#if:{{{Button text|}}}|
{{#if:{{{Button URL|}}}|
<p style="margin-top:35px;">
<span class="plainlinks">[{{{Button URL}}} <span style="display:inline-block; background:#111; color:white; padding:16px 30px; border-radius:9px;">{{{Button text}}}</span>]</span>
</p>
}}
}}
 
</div>
</div>


}}
}}


</div>
</div>
</div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Homepage editorial section template.
Editorial homepage section layouts.
</noinclude>
</noinclude>

Latest revision as of 09:40, 3 December 2026


Editorial homepage section layouts.