|
| 1 | +<div> |
| 2 | + <h1>3762 AppHeader examples using slot property</h1> |
| 3 | +</div> |
| 4 | +<goab-container type="interactive" padding="relaxed"> |
| 5 | + <goab-text tag="h3" size="heading-s">Site chrome</goab-text> |
| 6 | + <goab-column-layout> |
| 7 | + <goab-app-header |
| 8 | + heading="Example 1" |
| 9 | + [navigation]="navigationTemplate" |
| 10 | + [utilities]="utilitiesTemplate" |
| 11 | + [phase]="phaseTemplate" |
| 12 | + [banner]="bannerTemplate" |
| 13 | + > |
| 14 | + </goab-app-header> |
| 15 | + <goab-hero-banner |
| 16 | + heading="Hero banner" |
| 17 | + backgroundUrl="https://picsum.photos/1200/400?random=3" |
| 18 | + [actions]="heroActions" |
| 19 | + > |
| 20 | + <goab-text tag="p" size="body-l"> |
| 21 | + Hero banner demonstrates background imagery and projected actions. |
| 22 | + </goab-text> |
| 23 | + </goab-hero-banner> |
| 24 | + <goab-block direction="row" gap="l" mt="m"> |
| 25 | + <goab-side-menu> |
| 26 | + <goab-side-menu-heading>Menu heading</goab-side-menu-heading> |
| 27 | + <goab-side-menu-group heading="Group one"> |
| 28 | + <a href="#">Link A</a> |
| 29 | + <a href="#">Link B</a> |
| 30 | + </goab-side-menu-group> |
| 31 | + <a href="#">Loose link</a> |
| 32 | + </goab-side-menu> |
| 33 | + <goab-page-block width="full"> |
| 34 | + <goab-text tag="p" size="body-m"> |
| 35 | + Content area with side menu demonstrates layout wrappers. |
| 36 | + </goab-text> |
| 37 | + </goab-page-block> |
| 38 | + </goab-block> |
| 39 | + </goab-column-layout> |
| 40 | +</goab-container> |
| 41 | + |
| 42 | +<hr /> |
| 43 | + |
| 44 | +<div> |
| 45 | + <h1>3762 AppHeader examples using slot property and big Utilities</h1> |
| 46 | +</div> |
| 47 | +<goab-container type="interactive" padding="relaxed"> |
| 48 | + <goab-text tag="h3" size="heading-s">Site chrome</goab-text> |
| 49 | + <goab-column-layout> |
| 50 | + <goab-app-header |
| 51 | + heading="Example 2" |
| 52 | + [navigation]="bigNavigationTemplate" |
| 53 | + [utilities]="bigUtilitiesTemplate" |
| 54 | + [phase]="phaseTemplate" |
| 55 | + [banner]="bannerTemplate" |
| 56 | + > |
| 57 | + </goab-app-header> |
| 58 | + <goab-hero-banner |
| 59 | + heading="Hero banner" |
| 60 | + backgroundUrl="https://picsum.photos/1200/400?random=3" |
| 61 | + [actions]="heroActions" |
| 62 | + > |
| 63 | + <goab-text tag="p" size="body-l"> |
| 64 | + Hero banner demonstrates background imagery and projected actions. |
| 65 | + </goab-text> |
| 66 | + </goab-hero-banner> |
| 67 | + <goab-block direction="row" gap="l" mt="m"> |
| 68 | + <goab-side-menu> |
| 69 | + <goab-side-menu-heading>Menu heading</goab-side-menu-heading> |
| 70 | + <goab-side-menu-group heading="Group one"> |
| 71 | + <a href="#">Link A</a> |
| 72 | + <a href="#">Link B</a> |
| 73 | + </goab-side-menu-group> |
| 74 | + <a href="#">Loose link</a> |
| 75 | + </goab-side-menu> |
| 76 | + <goab-page-block width="full"> |
| 77 | + <goab-text tag="p" size="body-m"> |
| 78 | + Content area with side menu demonstrates layout wrappers. |
| 79 | + </goab-text> |
| 80 | + </goab-page-block> |
| 81 | + </goab-block> |
| 82 | + </goab-column-layout> |
| 83 | +</goab-container> |
| 84 | + |
| 85 | +<hr /> |
| 86 | + |
| 87 | +<h1>AppHeader examples using slot property (Legacy)</h1> |
| 88 | +<p>Ensure the fix did not break old/legacy examples using slot</p> |
| 89 | +<goab-container type="interactive" padding="relaxed"> |
| 90 | + <goab-text tag="h3" size="heading-s">Site chrome</goab-text> |
| 91 | + <goab-column-layout> |
| 92 | + <goab-app-header heading="Example 3"> |
| 93 | + <a href="#">Home</a> |
| 94 | + <goab-app-header-menu heading="Menu"> |
| 95 | + <a href="#">Item 1</a> |
| 96 | + <a href="#">Item 2</a> |
| 97 | + </goab-app-header-menu> |
| 98 | + <a slot="navigation" href="#">Dashboard</a> |
| 99 | + <goab-app-header-menu slotName="navigation" heading="Applications"> |
| 100 | + <a href="#">New application</a> |
| 101 | + <a href="#">Active</a> |
| 102 | + <a href="#">Archived</a> |
| 103 | + </goab-app-header-menu> |
| 104 | + <a slot="navigation" href="#">Reports</a> |
| 105 | + <a slot="navigation" href="#">Settings</a> |
| 106 | + <div slot="utilities"> |
| 107 | + <goab-block alignment="center" direction="row" gap="m"> |
| 108 | + <goab-button type="tertiary" size="compact">Help</goab-button> |
| 109 | + <goab-menu-button text="John Smith" type="tertiary" size="compact"> |
| 110 | + <goab-menu-action text="User settings" action="user-settings"></goab-menu-action> |
| 111 | + <goab-menu-action text="Sign out" action="sign-out"></goab-menu-action> |
| 112 | + </goab-menu-button> |
| 113 | + </goab-block> |
| 114 | + </div> |
| 115 | + </goab-app-header> |
| 116 | + <goab-hero-banner |
| 117 | + heading="Hero banner" |
| 118 | + backgroundUrl="https://picsum.photos/1200/400?random=3" |
| 119 | + [actions]="heroActions" |
| 120 | + > |
| 121 | + <goab-text tag="p" size="body-l"> |
| 122 | + Hero banner demonstrates background imagery and projected actions. |
| 123 | + </goab-text> |
| 124 | + </goab-hero-banner> |
| 125 | + <goab-block direction="row" gap="l" mt="m"> |
| 126 | + <goab-side-menu> |
| 127 | + <goab-side-menu-heading>Menu heading</goab-side-menu-heading> |
| 128 | + <goab-side-menu-group heading="Group one"> |
| 129 | + <a href="#">Link A</a> |
| 130 | + <a href="#">Link B</a> |
| 131 | + </goab-side-menu-group> |
| 132 | + <a href="#">Loose link</a> |
| 133 | + </goab-side-menu> |
| 134 | + <goab-page-block width="full"> |
| 135 | + <goab-text tag="p" size="body-m"> |
| 136 | + Content area with side menu demonstrates layout wrappers. |
| 137 | + </goab-text> |
| 138 | + </goab-page-block> |
| 139 | + </goab-block> |
| 140 | + </goab-column-layout> |
| 141 | +</goab-container> |
| 142 | + |
| 143 | +<hr /> |
| 144 | + |
| 145 | +<h1>AppHeader examples using slot property (Legacy - big utilities)</h1> |
| 146 | +<p>Ensure the fix did not break old/legacy examples using slot</p> |
| 147 | +<goab-container type="interactive" padding="relaxed"> |
| 148 | + <goab-text tag="h3" size="heading-s">Site chrome</goab-text> |
| 149 | + <goab-column-layout> |
| 150 | + <goab-app-header heading="Example 4"> |
| 151 | + <a slot="navigation" href="#">Home</a> |
| 152 | + <div slot="utilities"> |
| 153 | + <goab-button type="tertiary" size="compact">Help</goab-button> |
| 154 | + </div> |
| 155 | + <div slot="utilities"> |
| 156 | + <goab-button type="tertiary" size="compact">Sign in</goab-button> |
| 157 | + </div> |
| 158 | + <div slot="utilities"> |
| 159 | + <goab-menu-button text="John Smith" type="tertiary" size="compact"> |
| 160 | + <goab-menu-action text="User settings" action="user-settings"></goab-menu-action> |
| 161 | + <goab-menu-action text="Sign out" action="sign-out"></goab-menu-action> |
| 162 | + </goab-menu-button> |
| 163 | + </div> |
| 164 | + </goab-app-header> |
| 165 | + <goab-hero-banner |
| 166 | + heading="Hero banner" |
| 167 | + backgroundUrl="https://picsum.photos/1200/400?random=3" |
| 168 | + [actions]="heroActions" |
| 169 | + > |
| 170 | + <goab-text tag="p" size="body-l"> |
| 171 | + Hero banner demonstrates background imagery and projected actions. |
| 172 | + </goab-text> |
| 173 | + </goab-hero-banner> |
| 174 | + <goab-block direction="row" gap="l" mt="m"> |
| 175 | + <goab-side-menu> |
| 176 | + <goab-side-menu-heading>Menu heading</goab-side-menu-heading> |
| 177 | + <goab-side-menu-group heading="Group one"> |
| 178 | + <a href="#">Link A</a> |
| 179 | + <a href="#">Link B</a> |
| 180 | + </goab-side-menu-group> |
| 181 | + <a href="#">Loose link</a> |
| 182 | + </goab-side-menu> |
| 183 | + <goab-page-block width="full"> |
| 184 | + <goab-text tag="p" size="body-m"> |
| 185 | + Content area with side menu demonstrates layout wrappers. |
| 186 | + </goab-text> |
| 187 | + </goab-page-block> |
| 188 | + </goab-block> |
| 189 | + </goab-column-layout> |
| 190 | +</goab-container> |
| 191 | + |
| 192 | +<ng-template #heroActions> |
| 193 | + <goab-button type="primary">Get started</goab-button> |
| 194 | + <goab-button type="secondary">Secondary CTA</goab-button> |
| 195 | +</ng-template> |
| 196 | + |
| 197 | +<ng-template #navigationTemplate> |
| 198 | + <a href="#">Dashboard</a> |
| 199 | + <goab-app-header-menu heading="Applications"> |
| 200 | + <a href="#">New application</a> |
| 201 | + <a href="#">Active</a> |
| 202 | + <a href="#">Archived</a> |
| 203 | + </goab-app-header-menu> |
| 204 | + <a href="#">Help</a> |
| 205 | +</ng-template> |
| 206 | + |
| 207 | +<ng-template #bigNavigationTemplate> |
| 208 | + <a href="#">Dashboard</a> |
| 209 | + <goab-app-header-menu heading="Applications"> |
| 210 | + <a href="#">New application</a> |
| 211 | + <a href="#">Active</a> |
| 212 | + <a href="#">Archived</a> |
| 213 | + </goab-app-header-menu> |
| 214 | + <a href="#">Reports</a> |
| 215 | + <a href="#">Settings</a> |
| 216 | + <a href="#">File</a> |
| 217 | + <a href="#">Edit</a> |
| 218 | + <a href="#">View</a> |
| 219 | + <a href="#">Search</a> |
| 220 | + <a href="#">Filter</a> |
| 221 | + <a href="#">Help</a> |
| 222 | +</ng-template> |
| 223 | + |
| 224 | +<ng-template #utilitiesTemplate> |
| 225 | + <goab-button type="tertiary" size="compact">Help</goab-button> |
| 226 | + <goab-menu-button text="John Smith" type="tertiary" size="compact"> |
| 227 | + <goab-menu-action text="User settings" action="user-settings"></goab-menu-action> |
| 228 | + <goab-menu-action text="Sign out" action="sign-out"></goab-menu-action> |
| 229 | + </goab-menu-button> |
| 230 | +</ng-template> |
| 231 | + |
| 232 | +<ng-template #bigUtilitiesTemplate> |
| 233 | + <goab-button type="tertiary" size="compact">Help</goab-button> |
| 234 | + <goab-button type="tertiary" size="compact" leadingIcon="person">Sign in</goab-button> |
| 235 | + <goab-button type="tertiary" size="compact">User settings</goab-button> |
| 236 | + <goab-button size="compact">Sign out</goab-button> |
| 237 | +</ng-template> |
| 238 | + |
| 239 | +<ng-template #phaseTemplate> |
| 240 | + <goab-badge type="important" content="Service preview" /> |
| 241 | +</ng-template> |
| 242 | + |
| 243 | +<ng-template #bannerTemplate> |
| 244 | + <goab-text tag="span" size="body-xs" maxWidth="100%"> |
| 245 | + v2.3.1 | PR Environment |
| 246 | + </goab-text> |
| 247 | +</ng-template> |
0 commit comments