Changes for page Public Web Site

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

From version 13.5
edited by Agnease
on 2026/05/26 09:03
Change comment: There is no comment for this version
To version 16.3
edited by Agnease
on 2026/05/28 10:14
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,9 +1,11 @@
1 +{{include reference="PublicWebSite.MacrosAndVariables" /}}
2 +
1 1  {{velocity}}
2 2  #macro (displayPublicContent)
3 3   #set ($discard = $xwiki.ssx.use('PublicWebSite.WebHome'))
4 4   {{html clean="false"}}
5 5  
6 - <section class="hero hero-centered" aria-labelledby="hero-title">
8 + <section class="hero hero-centered main-page-hero" aria-labelledby="hero-title">
7 7   <div class="container hero-inner">
8 8   <h1 id="hero-title">Professional XWiki consulting and engineering</h1>
9 9  
... ... @@ -20,7 +20,8 @@
20 20   </ul>
21 21  
22 22   <div class="hero-actions">
23 - <a class="btn btn-primary" href="$xwiki.getURL('contact.WebHome')">Request a consultation</a>
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>
24 24   <a class="btn btn-secondary" href="$xwiki.getURL('services.WebHome')">View XWiki services</a>
25 25   </div>
26 26   </div>
main-page-hero.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Admin
Size
... ... @@ -1,0 +1,1 @@
1 +959.7 KB
Content
XWiki.StyleSheetExtension[0]
code
... ... @@ -167,8 +167,6 @@
167 167  
168 168  .hero {
169 169   overflow: hidden;
170 - background-repeat: no-repeat;
171 - background-attachment: scroll;
172 172  
173 173   &.hero-centered {
174 174   text-align: center;
... ... @@ -181,6 +181,15 @@
181 181   min-height: 330px;
182 182   }
183 183  
182 + &.main-page-hero {
183 + background:
184 + linear-gradient(
185 + rgba(244, 252, 250, 0.94),
186 + rgba(255, 255, 255, 0.97)
187 + ),
188 + url('/path/to/agnease-hero-bg.png') center center / cover no-repeat;
189 + }
190 +
184 184   .hero-inner {
185 185   max-width: 860px;
186 186   margin: 0 auto;
... ... @@ -590,31 +590,6 @@
590 590   }
591 591  }
592 592  
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 -
618 618  /* ========== Homepage Resource Strip ========== */
619 619  
620 620  .homepage-resource-strip {
... ... @@ -722,6 +722,50 @@
722 722   }
723 723  }
724 724  
707 +.resource-inline-cta {
708 + display: flex;
709 + align-items: center;
710 + justify-content: space-between;
711 + gap: 22px;
712 + margin: 30px 0;
713 + padding: 20px 22px;
714 + border: 1px solid fade(@brand, 22%);
715 + border-radius: @radius;
716 + background: @brand-bg;
717 + box-shadow: @shadow-sm;
718 +
719 + p {
720 + margin: 0;
721 + color: @muted;
722 + line-height: 1.55;
723 + }
724 +
725 + strong {
726 + color: @text;
727 + }
728 +
729 + .btn {
730 + flex-shrink: 0;
731 + }
732 +}
733 +
734 +@media (max-width: 767px) {
735 + .resource-inline-cta {
736 + display: block;
737 + text-align: center;
738 +
739 + p {
740 + margin-bottom: 14px;
741 + }
742 +
743 + .btn {
744 + display: inline-block;
745 + margin-left: auto;
746 + margin-right: auto;
747 + }
748 + }
749 +}
750 +
725 725  /* ========== Responsive ========== */
726 726  
727 727  @media (max-width: 980px) {
... ... @@ -771,6 +771,15 @@
771 771   min-height: 280px;
772 772   }
773 773  
800 + .hero.main-page-hero {
801 + background:
802 + linear-gradient(
803 + rgba(244, 252, 250, 0.98),
804 + rgba(255, 255, 255, 1)
805 + ),
806 + url('https://agnease.com/bin/download/PublicWebSite/WebHome/main-page-hero.png?rev=1.1') center center / cover no-repeat;
807 + }
808 +
774 774   .hero {
775 775   .lead {
776 776   font-size: 17px;
... ... @@ -844,15 +844,18 @@
844 844  }
845 845  
846 846  .resource-layout {
847 - display: grid;
848 - grid-template-columns: minmax(0, 760px) 280px;
849 - gap: 42px;
882 + display: block;
850 850   max-width: 1080px;
851 851   margin: 0 auto;
852 852   padding-top: 28px;
853 - align-items: start;
854 854  }
855 855  
888 +.resource-layout::after {
889 + content: "";
890 + display: block;
891 + clear: both;
892 +}
893 +
856 856  .resource-content {
857 857   color: @text;
858 858   font-size: 16px;
... ... @@ -922,6 +922,10 @@
922 922  }
923 923  
924 924  .resource-sidebar {
963 + float: right;
964 + width: 280px;
965 + margin-left: 42px;
966 + margin-bottom: 28px;
925 925   position: sticky;
926 926   top: 96px;
927 927   border: 1px solid @line;
... ... @@ -951,8 +951,14 @@
951 951  }
952 952  
953 953  .resource-cta {
954 - margin-top: 36px;
955 - padding: 22px;
996 + display: flex;
997 + flex-direction: column;
998 + align-items: center;
999 + text-align: center;
1000 +
1001 + max-width: 820px;
1002 + margin: 42px auto 0;
1003 + padding: 28px 30px;
956 956   border: 1px solid fade(@brand, 20%);
957 957   border-radius: @radius;
958 958   background: @brand-bg;
... ... @@ -959,20 +959,43 @@
959 959  
960 960   h3 {
961 961   margin-top: 0;
1010 + margin-bottom: 10px;
962 962   }
963 963  
964 964   p {
1014 + max-width: 680px;
1015 + margin-left: auto;
1016 + margin-right: auto;
965 965   color: @muted;
966 966   }
1019 +
1020 + .btn {
1021 + margin-top: 8px;
1022 + }
967 967  }
968 968  
1025 +.resource-note,
1026 +.resource-checklist,
1027 +.resource-cta {
1028 + display: flow-root;
1029 +}
1030 +
1031 +@media (max-width: 767px) {
1032 + .resource-cta {
1033 + padding: 24px 20px;
1034 + }
1035 +}
1036 +
969 969  @media (max-width: 900px) {
970 970   .resource-layout {
971 - grid-template-columns: 1fr;
972 972   padding-top: 22px;
973 973   }
974 974  
975 975   .resource-sidebar {
1043 + float: none;
1044 + width: 100%;
1045 + margin-left: 0;
1046 + margin-bottom: 24px;
976 976   position: static;
977 977   }
978 978  }
... ... @@ -1236,41 +1236,41 @@
1236 1236  }
1237 1237  
1238 1238  /* ========== Resources Index ========== */
1310 +
1239 1239  .resources-index-page {
1240 1240   background: #fff;
1241 1241  
1242 - /* Resources index: show cards in rows of 2, center the last one if alone */
1243 - .resources-grid {
1244 - display: grid;
1314 + .services-grid {
1245 1245   grid-template-columns: repeat(2, minmax(0, 1fr));
1246 - justify-content: center;
1247 - align-items: stretch;
1248 1248   }
1317 +}
1249 1249  
1250 - .resources-grid .resource-card {
1251 - height: 100%;
1319 +@media (max-width: 980px) {
1320 + .resources-index-page {
1321 + .services-grid {
1322 + grid-template-columns: 1fr;
1323 + }
1252 1252   }
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 - }
1259 1259  }
1260 1260  
1261 -/* Keep 2 columns on tablets. Only switch to 1 column on smaller mobile screens. */
1262 1262  @media (max-width: 767px) {
1263 1263   .resources-index-page {
1264 1264   padding: @section-padding-mobile;
1330 + }
1331 +}
1265 1265  
1266 - .resources-grid {
1267 - grid-template-columns: 1fr;
1268 - }
1333 +.resource-faq-item {
1334 + border-bottom: 1px solid @line;
1335 + padding: 12px 0;
1269 1269  
1270 - .resources-grid .resource-card:last-child:nth-child(odd) {
1271 - grid-column: auto;
1272 - max-width: none;
1273 - justify-self: stretch;
1274 - }
1337 + summary {
1338 + cursor: pointer;
1339 + font-weight: 700;
1340 + color: @text;
1275 1275   }
1342 +
1343 + p {
1344 + margin: 10px 0 4px;
1345 + color: @muted;
1346 + }
1276 1276  }
XWiki.XWikiRights[0]
allow
... ... @@ -1,1 +1,0 @@
1 -Allow
groups
... ... @@ -1,1 +1,0 @@
1 -XWiki.XWikiAllGroup
levels
... ... @@ -1,1 +1,0 @@
1 -view
users
... ... @@ -1,1 +1,0 @@
1 -XWiki.XWikiGuest