Jump to content

Template:Home section: Difference between revisions

From Fedoverse Wiki, the free encyclopedia
No edit summary
Tag: Reverted
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); padding:0; box-sizing:border-box; background:transparent;">
<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;">


<div style="width:100%; max-width:1500px; margin:0 auto; padding:clamp(55px,7vw,110px) clamp(20px,5vw,75px); box-sizing:border-box;">
<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;">


{{#switch: {{{Layout|Text left / image right}}}
{{#switch: {{{Layout|Text left / image right}}}
Line 9: Line 8:
|Text left / image right=
|Text left / image right=


<div style="display:flex; flex-wrap:wrap; align-items:center; gap:clamp(35px,6vw,90px);">
<div class="fed-home-row" style="display:flex; flex-wrap:wrap; align-items:center; gap:clamp(35px,6vw,90px);">


<div style="flex:1 1 450px; min-width:0; text-align:right; padding-right:0;">
<div class="fed-home-copy" style="flex:1 1 450px; min-width:0; text-align:right; padding-right:0;">


{{#if:{{{Title|}}}|
{{#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;">
<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}}}
{{{Title}}}
</div>
</div>
}}
}}


<div style="font-family:Inter,system-ui,sans-serif; font-size:clamp(18px,1.5vw,25px); line-height:1.65; text-align:right;">
<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>
Line 43: Line 42:
|Image left / text right=
|Image left / text right=


<div style="display:flex; flex-wrap:wrap; align-items:center; gap:clamp(35px,6vw,90px);">
<div class="fed-home-row" style="display:flex; flex-wrap:wrap; align-items:center; gap:clamp(35px,6vw,90px);">


{{#if:{{{Image|}}}|
{{#if:{{{Image|}}}|
Line 51: Line 50:
}}
}}


<div style="flex:1 1 450px; min-width:0; text-align:left;">
<div class="fed-home-copy" style="flex:1 1 450px; min-width:0; text-align:left;">


{{#if:{{{Title|}}}|
{{#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;">
<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}}}
{{{Title}}}
</div>
</div>
}}
}}


<div style="font-family:Inter,system-ui,sans-serif; font-size:clamp(18px,1.5vw,25px); line-height:1.65;">
<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|}}}
{{{Text|}}}
</div>
</div>
Line 79: Line 78:


{{#if:{{{Image|}}}|
{{#if:{{{Image|}}}|
<div class="fed-home-image fed-home-image-centered" style="aspect-ratio:21 / 7;">
<div class="fed-home-image fed-home-image-centered" style="aspect-ratio:14 / 7;">
[[File:{{{Image}}}|frameless|500px|link=|alt={{{Title|}}}]]
[[File:{{{Image}}}|frameless|1200px|link=|alt={{{Title|}}}]]
</div>
</div>
}}
}}


{{#if:{{{Title|}}}|
{{#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;">
<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}}}
{{{Title}}}
</div>
</div>
}}
}}


<div style="font-family:Inter,system-ui,sans-serif; font-size:clamp(18px,1.5vw,24px); line-height:1.7;">
<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>

Latest revision as of 09:40, 3 December 2026


Editorial homepage section layouts.