Jump to content

Template:Home section: Difference between revisions

From Fedoverse Wiki, the free encyclopedia
No edit summary
No edit summary
Line 1: Line 1:


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


{{#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 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 style="flex:1 1 450px; min-width:0; text-align:left;">
<div style="font-family:Inter,system-ui,sans-serif; font-size:1.12rem; line-height:1.85;">
 
{{#if:{{{Title|}}}|
<div 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="font-family:Inter,system-ui,sans-serif; font-size:clamp(18px,1.5vw,25px); line-height:1.65; text-align:left;">
{{{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 style="flex:1 1 520px; min-width:0;">
<div style="width:100%; overflow:hidden; border-radius:38px; line-height:0;">
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|800px|alt={{{Title|}}}]]}}
</div>
</div>
</div>
<div style="flex:1 1 450px; min-width:0;">
 
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|center|600px|alt={{{Title|}}}]]}}
</div>
 
|Image left / text right=
 
<div style="display:flex; flex-wrap:wrap; align-items:center; gap:clamp(35px,6vw,90px);">
 
<div style="flex:1 1 520px; min-width:0;">
<div style="width:100%; overflow:hidden; border-radius:38px; line-height:0;">
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|800px|alt={{{Title|}}}]]}}
</div>
</div>
</div>
</div>


|Centered=
<div style="flex:1 1 450px; min-width:0; text-align:left;">
 
{{#if:{{{Title|}}}|
<div 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 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="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 style="overflow:hidden; border-radius:38px; line-height:0;">
[[File:{{{Image}}}|frameless|1100px|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 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 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>


Line 50: Line 106:
</div>
</div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Homepage editorial section template.
Editorial homepage section layouts.
</noinclude>
</noinclude>

Revision as of 12:28, 16 November 2026



Editorial homepage section layouts.