Main Page: Difference between revisions

Remove empty space left by the hidden Hayom Yom box
Main Page boxes on a fixed grid: equal-height boxes per row, same header height, no empty gap under Portals
Line 14: Line 14:
</div>
</div>
</div>
</div>
 
<div style="display:grid; grid-template-columns:repeat(auto-fit, minmax(360px, 1fr)); gap:1em; align-items:stretch; margin-bottom:1em;">
 
<div style="border:1px solid #8aa6cf; border-radius:8px; background:#f6f9fd; height:100%; box-sizing:border-box; display:flex; flex-direction:column; overflow:hidden;">
<div style="display:flex; flex-wrap:wrap; gap:1em; align-items:flex-start;">
<div style="display:flex; align-items:center; gap:0.5em; height:2.6em; box-sizing:border-box; background:#dde8f6; border-bottom:1px solid #8aa6cf; padding:0 1em; font-size:125%; font-weight:bold; color:#202122;">[[File:אייקון נשיאי חבד.png|x30px|link=Portal:Rebbes of Chabad|Rebbes of Chabad]] Rebbes of Chabad</div>
 
<div style="flex:1; padding:0.8em 0.6em;">
<!-- left column -->
<div style="flex:1 1 360px; min-width:0;">
 
<div style="border:1px solid #8aa6cf; border-radius:8px; background:#f6f9fd; margin-bottom:1em; overflow:hidden;">
<div style="display:flex; align-items:center; gap:0.5em; background:#dde8f6; border-bottom:1px solid #8aa6cf; padding:0.45em 1em; font-size:125%; font-weight:bold; color:#202122;">[[File:אייקון נשיאי חבד.png|30px|link=Portal:Rebbes of Chabad|Rebbes of Chabad]] Rebbes of Chabad</div>
<div style="padding:0.8em 0.6em;">
<div style="text-align:center; font-size:90%; color:#54595d; margin-bottom:0.3em;">The Chassidic Founders</div>
<div style="text-align:center; font-size:90%; color:#54595d; margin-bottom:0.3em;">The Chassidic Founders</div>
<div style="display:flex; flex-wrap:wrap; justify-content:center; gap:0.6em 0.8em; margin-bottom:0.7em;">
<div style="display:flex; flex-wrap:wrap; justify-content:center; gap:0.6em 0.8em; margin-bottom:0.7em;">
Line 40: Line 34:
</div>
</div>
</div>
</div>
<div style="padding:0 1em 0.8em; text-align:right;"><span style="display:inline-block; padding:0.25em 0.9em; border:1px solid #8aa6cf; border-radius:4px; background:#ffffff;">[[Portal:Rebbes of Chabad|Rebbes of Chabad portal]]</span></div>
<div style="margin-top:auto; padding:0 1em 0.8em; text-align:right;"><span style="display:inline-block; padding:0.25em 0.9em; border:1px solid #8aa6cf; border-radius:4px; background:#ffffff;">[[Portal:Rebbes of Chabad|Rebbes of Chabad portal]]</span></div>
</div>
</div>
 
<div style="border:1px solid #7ea7d8; border-radius:8px; background:#f5f9fe; height:100%; box-sizing:border-box; display:flex; flex-direction:column; overflow:hidden;">
<div style="border:1px solid #8cc08a; border-radius:8px; background:#f6fbf5; margin-bottom:1em; overflow:hidden;">
<div style="display:flex; align-items:center; gap:0.5em; height:2.6em; box-sizing:border-box; background:#d6e6f8; border-bottom:1px solid #7ea7d8; padding:0 1em; font-size:125%; font-weight:bold; color:#202122;">[[File:סימן שאלה11.png|x30px|Did You Know?|link=Special:Random]] Did You Know?</div>
<div style="background:#d9eed5; border-bottom:1px solid #8cc08a; padding:0.5em 1em; font-size:125%; font-weight:bold; color:#202122;">New Articles</div>
<div style="flex:1; padding:0.8em 1em; line-height:1.6;">
<div style="padding:0.8em 1em;">
{{New Entries}}
</div>
</div>
 
</div>
 
<!-- right column -->
<div style="flex:1 1 360px; min-width:0;">
 
<div style="border:1px solid #7ea7d8; border-radius:8px; background:#f5f9fe; margin-bottom:1em; overflow:hidden;">
<div style="display:flex; align-items:center; gap:0.5em; background:#d6e6f8; border-bottom:1px solid #7ea7d8; padding:0.45em 1em; font-size:125%; font-weight:bold; color:#202122;">[[File:סימן שאלה11.png|20px|Did You Know?|link=Special:Random]] Did You Know?</div>
<div style="padding:0.8em 1em; line-height:1.6;">
* …that the [[Tanya]], the foundational work of Chabad thought, was written by the [[Alter Rebbe]] and first printed in Slavita on 20 [[Kislev]] 5557 (1796)?
* …that the [[Tanya]], the foundational work of Chabad thought, was written by the [[Alter Rebbe]] and first printed in Slavita on 20 [[Kislev]] 5557 (1796)?
* …that the Alter Rebbe's release from imprisonment in Petersburg on [[Yud Tes Kislev]] 5559 (1798) is celebrated to this day as the "[[Rosh Hashanah]] of Chassidus"?
* …that the Alter Rebbe's release from imprisonment in Petersburg on [[Yud Tes Kislev]] 5559 (1798) is celebrated to this day as the "[[Rosh Hashanah]] of Chassidus"?
Line 64: Line 45:
* …that [[770 Eastern Parkway]] became the world headquarters of Chabad after the [[Rebbe Rayatz|Frierdiker Rebbe]], the Previous Rebbe, arrived in America in 5700 (1940)?
* …that [[770 Eastern Parkway]] became the world headquarters of Chabad after the [[Rebbe Rayatz|Frierdiker Rebbe]], the Previous Rebbe, arrived in America in 5700 (1940)?
</div>
</div>
<div style="display:flex; flex-wrap:wrap; justify-content:space-between; gap:0.5em; padding:0 1em 0.8em;">
<div style="margin-top:auto; display:flex; flex-wrap:wrap; justify-content:space-between; gap:0.5em; padding:0 1em 0.8em;">
<span style="display:inline-block; padding:0.25em 0.9em; border:1px solid #7ea7d8; border-radius:4px; background:#ffffff;">[[Special:Random|Random article]]</span>
<span style="display:inline-block; padding:0.25em 0.9em; border:1px solid #7ea7d8; border-radius:4px; background:#ffffff;">[[Special:Random|Random article]]</span>
<span style="display:inline-block; padding:0.25em 0.9em; border:1px solid #7ea7d8; border-radius:4px; background:#ffffff;">[[Special:AllPages|All articles]]</span>
<span style="display:inline-block; padding:0.25em 0.9em; border:1px solid #7ea7d8; border-radius:4px; background:#ffffff;">[[Special:AllPages|All articles]]</span>
</div>
</div>
<div style="border:1px solid #8cc08a; border-radius:8px; background:#f6fbf5; height:100%; box-sizing:border-box; display:flex; flex-direction:column; overflow:hidden;">
<div style="display:flex; align-items:center; gap:0.5em; height:2.6em; box-sizing:border-box; background:#d9eed5; border-bottom:1px solid #8cc08a; padding:0 1em; font-size:125%; font-weight:bold; color:#202122;">New Articles</div>
<div style="flex:1; padding:0.8em 1em;">
{{New Entries}}
</div>
</div>
<div style="border:1px solid #a58bd1; border-radius:8px; background:#faf7fd; height:100%; box-sizing:border-box; display:flex; flex-direction:column; overflow:hidden;">
<div style="display:flex; align-items:center; gap:0.5em; height:2.6em; box-sizing:border-box; background:#e6ddf4; border-bottom:1px solid #a58bd1; padding:0 1em; font-size:125%; font-weight:bold; color:#202122;">Chabadpedia Projects</div>
<div style="flex:1; padding:0.8em 1em; line-height:1.6;">
{{Main Page/Projects}}
</div>
</div>
</div>
</div><!-- Hayom Yom box hidden for now (not active yet):
</div><!-- Hayom Yom box hidden for now (not active yet):
Line 76: Line 70:
<div style="padding:0 1em 0.8em; text-align:right;"><span style="display:inline-block; padding:0.25em 0.9em; border:1px solid #d996ad; border-radius:4px; background:#ffffff;">[https://www.chabad.org/dailystudy/hayomyom.asp Read today's Hayom Yom]</span></div>
<div style="padding:0 1em 0.8em; text-align:right;"><span style="display:inline-block; padding:0.25em 0.9em; border:1px solid #d996ad; border-radius:4px; background:#ffffff;">[https://www.chabad.org/dailystudy/hayomyom.asp Read today's Hayom Yom]</span></div>
</div>
</div>
--><div style="border:1px solid #a58bd1; border-radius:8px; background:#faf7fd; margin-bottom:1em; overflow:hidden;">
-->
<div style="background:#e6ddf4; border-bottom:1px solid #a58bd1; padding:0.5em 1em; font-size:125%; font-weight:bold; color:#202122;">Chabadpedia Projects</div>
<div style="padding:0.8em 1em; line-height:1.6;">
{{Main Page/Projects}}
</div>
</div>
 
</div>
</div>
 
<!-- footer -->
<!-- footer -->
<div style="border:1px solid #a2a9b1; border-radius:8px; background:#f8f9fa; margin:0.5em 0 1em; overflow:hidden; clear:both;">
<div style="border:1px solid #a2a9b1; border-radius:8px; background:#f8f9fa; margin:0.5em 0 1em; overflow:hidden; clear:both;">