Changes for page Public Web Site

Last modified by Agnease on 2026/05/30 16:24

From version 18.1
edited by Agnease
on 2026/05/28 10:30
Change comment: Upload new image "main-page-hero.png", version 1.1
To version 13.7
edited by Agnease
on 2026/05/26 09:06
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,11 +3,9 @@
1 -{{include reference="PublicWebSite.MacrosAndVariables" /}}
2 -
3 3  {{velocity}}
4 4  #macro (displayPublicContent)
5 5   #set ($discard = $xwiki.ssx.use('PublicWebSite.WebHome'))
6 6   {{html clean="false"}}
7 7  
8 - <section class="hero hero-centered main-page-hero" aria-labelledby="hero-title">
6 + <section class="hero hero-centered" aria-labelledby="hero-title">
9 9   <div class="container hero-inner">
10 10   <h1 id="hero-title">Professional XWiki consulting and engineering</h1>
11 11  
... ... @@ -22,8 +22,7 @@
22 22   </ul>
23 23  
24 24   <div class="hero-actions">
25 - <a class="btn btn-primary" href="$freeXWikiReviewCallURL">$freeXWikiReviewCallLabel</a>
26 - ##<a class="btn btn-primary" href="$xwiki.getURL('contact.WebHome')">Request a consultation</a>
23 + <a class="btn btn-primary" href="$xwiki.getURL('contact.WebHome')">Request a consultation</a>
27 27   <a class="btn btn-secondary" href="$xwiki.getURL('services.WebHome')">View XWiki services</a>
28 28   </div>
29 29   </div>
main-page-hero.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Admin
Size
... ... @@ -1,1 +1,0 @@
1 -1.0 MB
Content
XWiki.StyleSheetExtension[0]
code
... ... @@ -167,9 +167,9 @@
167 167  
168 168  .hero {
169 169   overflow: hidden;
170 + background-repeat: no-repeat;
171 + background-attachment: scroll;
170 170  
171 - overflow: hidden;
172 -
173 173   &.hero-centered {
174 174   text-align: center;
175 175   background:
... ... @@ -181,15 +181,6 @@
181 181   min-height: 330px;
182 182   }
183 183  
184 - &.main-page-hero {
185 - background:
186 - linear-gradient(
187 - rgba(244, 252, 250, 0.74),
188 - rgba(255, 255, 255, 0.86)
189 - ),
190 - url('/bin/download/PublicWebSite/WebHome/main-page-hero.png') center center / cover no-repeat;
191 - }
192 -
193 193   .hero-inner {
194 194   max-width: 860px;
195 195   margin: 0 auto;
... ... @@ -599,6 +599,31 @@
599 599   }
600 600  }
601 601  
593 +.resource-content {
594 + order: 1;
595 +}
596 +
597 +.resource-sidebar {
598 + order: 2;
599 +}
600 +
601 +@media (max-width: 767px) {
602 + .resource-layout {
603 + display: flex;
604 + flex-direction: column;
605 + }
606 +
607 + .resource-sidebar {
608 + order: 0;
609 + position: static;
610 + width: 100%;
611 + }
612 +
613 + .resource-content {
614 + order: 1;
615 + }
616 +}
617 +
602 602  /* ========== Homepage Resource Strip ========== */
603 603  
604 604  .homepage-resource-strip {
... ... @@ -706,50 +706,6 @@
706 706   }
707 707  }
708 708  
709 -.resource-inline-cta {
710 - display: flex;
711 - align-items: center;
712 - justify-content: space-between;
713 - gap: 22px;
714 - margin: 30px 0;
715 - padding: 20px 22px;
716 - border: 1px solid fade(@brand, 22%);
717 - border-radius: @radius;
718 - background: @brand-bg;
719 - box-shadow: @shadow-sm;
720 -
721 - p {
722 - margin: 0;
723 - color: @muted;
724 - line-height: 1.55;
725 - }
726 -
727 - strong {
728 - color: @text;
729 - }
730 -
731 - .btn {
732 - flex-shrink: 0;
733 - }
734 -}
735 -
736 -@media (max-width: 767px) {
737 - .resource-inline-cta {
738 - display: block;
739 - text-align: center;
740 -
741 - p {
742 - margin-bottom: 14px;
743 - }
744 -
745 - .btn {
746 - display: inline-block;
747 - margin-left: auto;
748 - margin-right: auto;
749 - }
750 - }
751 -}
752 -
753 753  /* ========== Responsive ========== */
754 754  
755 755  @media (max-width: 980px) {
... ... @@ -799,15 +799,6 @@
799 799   min-height: 280px;
800 800   }
801 801  
802 - .hero.main-page-hero {
803 - background:
804 - linear-gradient(
805 - rgba(244, 252, 250, 0.92),
806 - rgba(255, 255, 255, 0.97)
807 - ),
808 - url('/bin/download/PublicWebSite/WebHome/main-page-hero.png') center center / cover no-repeat;
809 - }
810 -
811 811   .hero {
812 812   .lead {
813 813   font-size: 17px;
... ... @@ -881,18 +881,15 @@
881 881  }
882 882  
883 883  .resource-layout {
884 - display: block;
847 + display: grid;
848 + grid-template-columns: minmax(0, 760px) 280px;
849 + gap: 42px;
885 885   max-width: 1080px;
886 886   margin: 0 auto;
887 887   padding-top: 28px;
853 + align-items: start;
888 888  }
889 889  
890 -.resource-layout::after {
891 - content: "";
892 - display: block;
893 - clear: both;
894 -}
895 -
896 896  .resource-content {
897 897   color: @text;
898 898   font-size: 16px;
... ... @@ -962,10 +962,6 @@
962 962  }
963 963  
964 964  .resource-sidebar {
965 - float: right;
966 - width: 280px;
967 - margin-left: 42px;
968 - margin-bottom: 28px;
969 969   position: sticky;
970 970   top: 96px;
971 971   border: 1px solid @line;
... ... @@ -995,14 +995,8 @@
995 995  }
996 996  
997 997  .resource-cta {
998 - display: flex;
999 - flex-direction: column;
1000 - align-items: center;
1001 - text-align: center;
1002 -
1003 - max-width: 820px;
1004 - margin: 42px auto 0;
1005 - padding: 28px 30px;
954 + margin-top: 36px;
955 + padding: 22px;
1006 1006   border: 1px solid fade(@brand, 20%);
1007 1007   border-radius: @radius;
1008 1008   background: @brand-bg;
... ... @@ -1009,43 +1009,20 @@
1009 1009  
1010 1010   h3 {
1011 1011   margin-top: 0;
1012 - margin-bottom: 10px;
1013 1013   }
1014 1014  
1015 1015   p {
1016 - max-width: 680px;
1017 - margin-left: auto;
1018 - margin-right: auto;
1019 1019   color: @muted;
1020 1020   }
1021 -
1022 - .btn {
1023 - margin-top: 8px;
1024 - }
1025 1025  }
1026 1026  
1027 -.resource-note,
1028 -.resource-checklist,
1029 -.resource-cta {
1030 - display: flow-root;
1031 -}
1032 -
1033 -@media (max-width: 767px) {
1034 - .resource-cta {
1035 - padding: 24px 20px;
1036 - }
1037 -}
1038 -
1039 1039  @media (max-width: 900px) {
1040 1040   .resource-layout {
971 + grid-template-columns: 1fr;
1041 1041   padding-top: 22px;
1042 1042   }
1043 1043  
1044 1044   .resource-sidebar {
1045 - float: none;
1046 - width: 100%;
1047 - margin-left: 0;
1048 - margin-bottom: 24px;
1049 1049   position: static;
1050 1050   }
1051 1051  }
... ... @@ -1309,41 +1309,41 @@
1309 1309  }
1310 1310  
1311 1311  /* ========== Resources Index ========== */
1312 -
1313 1313  .resources-index-page {
1314 1314   background: #fff;
1315 1315  
1316 - .services-grid {
1242 + /* Resources index: show cards in rows of 2, center the last one if alone */
1243 + .resources-grid {
1244 + display: grid;
1317 1317   grid-template-columns: repeat(2, minmax(0, 1fr));
1246 + justify-content: center;
1247 + align-items: stretch;
1318 1318   }
1319 -}
1320 1320  
1321 -@media (max-width: 980px) {
1322 - .resources-index-page {
1323 - .services-grid {
1324 - grid-template-columns: 1fr;
1325 - }
1250 + .resources-grid .resource-card {
1251 + height: 100%;
1326 1326   }
1253 +
1254 + .resources-grid .resource-card:last-child:nth-child(odd) {
1255 + grid-column: 1 / -1;
1256 + max-width: calc(50% - 12px);
1257 + justify-self: center;
1258 + }
1327 1327  }
1328 1328  
1261 +/* Keep 2 columns on tablets. Only switch to 1 column on smaller mobile screens. */
1329 1329  @media (max-width: 767px) {
1330 1330   .resources-index-page {
1331 1331   padding: @section-padding-mobile;
1332 - }
1333 -}
1334 1334  
1335 -.resource-faq-item {
1336 - border-bottom: 1px solid @line;
1337 - padding: 12px 0;
1266 + .resources-grid {
1267 + grid-template-columns: 1fr;
1268 + }
1338 1338  
1339 - summary {
1340 - cursor: pointer;
1341 - font-weight: 700;
1342 - color: @text;
1270 + .resources-grid .resource-card:last-child:nth-child(odd) {
1271 + grid-column: auto;
1272 + max-width: none;
1273 + justify-self: stretch;
1274 + }
1343 1343   }
1344 -
1345 - p {
1346 - margin: 10px 0 4px;
1347 - color: @muted;
1348 - }
1349 1349  }
XWiki.XWikiRights[0]
allow
... ... @@ -1,0 +1,1 @@
1 +Allow
groups
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiAllGroup
levels
... ... @@ -1,0 +1,1 @@
1 +view
users
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest