Changes for page Home
Last modified by Isaac Mejia on 2025/12/15 18:27
From version 27.1
edited by Isaac Mejia
on 2025/12/09 15:57
on 2025/12/09 15:57
Change comment:
There is no comment for this version
To version 31.1
edited by Isaac Mejia
on 2025/12/11 14:47
on 2025/12/11 14:47
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -114,16 +114,18 @@ 114 114 Guides, walkthroughs, and best practices to help you and your team get the most out of the platform. 115 115 </p> 116 116 117 - <!-- Enhancedsearchbox(stillusesXWikisearchunderthe hood)-->117 + <!-- Hero search wired to custom KB search page --> 118 118 <div class="kb-hero-search"> 119 - <form action="$xwiki.getURL('Main.WebHome', 'view', 'xpage=search')" method="get"> 120 - <input 121 - type="text" 122 - name="text" 123 - placeholder="Search for an article (e.g. "family membership")" 124 - aria-label="Search the knowledge base" 125 - /> 126 -</form> 119 + <form action="$xwiki.getURL('Main.KBSearch', 'view')" method="get"> 120 + <input 121 + type="text" 122 + name="text" 123 + placeholder="Search for an article (e.g. "family membership")" 124 + aria-label="Search the knowledge base" 125 + /> 126 + <!-- optional: add a button if you want --> 127 + <!-- <button type="submit" class="kb-search-button">Search</button> --> 128 + </form> 127 127 </div> 128 128 </div> 129 129 ... ... @@ -164,6 +164,59 @@ 164 164 </div> 165 165 166 166 </div> 169 + 170 +<style> 171 +/* HOMEPAGE HERO OVERRIDE – BIGGER + MORE BREATHING ROOM */ 172 + 173 +/* Scope tightly so we only touch KB home hero */ 174 +body.viewbody.page-WebHome[class*="space-Main"] #xwikicontent .kb-hero { 175 + padding: 4.2rem 1rem 3.3rem !important; /* more air above + below */ 176 + max-width: 1100px; 177 + margin: 0 auto; 178 +} 179 + 180 +/* Title */ 181 +body.viewbody.page-WebHome[class*="space-Main"] #xwikicontent .kb-hero-title { 182 + font-size: 3.5rem !important; 183 + font-weight: 800 !important; 184 + line-height: 1.15; 185 + margin-bottom: 1rem !important; 186 + color: #0f172a; 187 +} 188 + 189 +/* Subtitle */ 190 +body.viewbody.page-WebHome[class*="space-Main"] #xwikicontent .kb-hero-subtitle { 191 + font-size: 1.35rem !important; 192 + line-height: 1.7; 193 + color: #4b5563 !important; 194 + max-width: 720px; 195 + margin: 0 auto 2.3rem !important; /* more space before search bar */ 196 +} 197 + 198 +/* Search bar – taller + larger text */ 199 +body.viewbody.page-WebHome[class*="space-Main"] #xwikicontent .kb-hero-search input[type="text"] { 200 + max-width: 650px !important; 201 + padding: 1.25rem 1.6rem !important; 202 + font-size: 1.2rem !important; 203 + border-radius: 999px; 204 + border: 1px solid #d1d5db; 205 + box-shadow: 206 + 0 26px 60px rgba(15, 23, 42, 0.14), 207 + 0 2px 4px rgba(15, 23, 42, 0.06) !important; 208 +} 209 + 210 +/* Placeholder text tone/size */ 211 +body.viewbody.page-WebHome[class*="space-Main"] #xwikicontent .kb-hero-search input[type="text"]::placeholder { 212 + font-size: 1.15rem; 213 + color: #9ca3af; 214 +} 215 + 216 +/* Extra space between hero and "Browse by category" */ 217 +body.viewbody.page-WebHome[class*="space-Main"] #xwikicontent .kb-section { 218 + margin-top: 4.6rem !important; 219 +} 220 +</style> 221 + 167 167 {{/html}} 168 168 {{/velocity}} 169 169