-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #764 from WestpacGEL/kate-header-page
Kate header page
- Loading branch information
Showing
13 changed files
with
184 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
apps/site/src/content/design-system/components/header/code/center-at-xsl/content.mdoc
This file was deleted.
Oops, something went wrong.
137 changes: 137 additions & 0 deletions
137
apps/site/src/content/design-system/components/header/code/development-examples/content.mdoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
### Default | ||
|
||
Default usage example | ||
|
||
```tsx | ||
<> | ||
<Header brand="wbc" /> | ||
</> | ||
``` | ||
|
||
### Right button | ||
|
||
Example with a button on the right | ||
|
||
```tsx | ||
<> | ||
<Header brand="wbc"> | ||
<Button | ||
look="faint" | ||
onClick={function Ya(){}} | ||
size={{ | ||
initial: 'small', | ||
sm: 'medium' | ||
}} | ||
soft | ||
> | ||
Sign Out | ||
</Button> | ||
</Header> | ||
</> | ||
``` | ||
|
||
### Centre at XSL | ||
|
||
Example of logo centering when XSL | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
logoCenter | ||
/> | ||
</> | ||
``` | ||
|
||
### Logo onClick | ||
|
||
Example of logo with onClick | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
logoOnClick={function Ya(){}} | ||
/> | ||
</> | ||
``` | ||
|
||
### Logo with skiplink | ||
|
||
Example of header with skiplink | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
skipToContentId="#" | ||
/> | ||
</> | ||
``` | ||
|
||
### Fixed | ||
|
||
Example fixed header. Does not show correctly in Docs view as it will show how it looks when scrolled, check specific story for non-scrolled view. | ||
|
||
```tsx | ||
<div className="h-10"> | ||
<Header | ||
brand="wbc" | ||
fixed | ||
/> | ||
</div> | ||
``` | ||
|
||
### With back arrow | ||
|
||
Example of header with arrow button | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
leftIcon="arrow" | ||
/> | ||
</> | ||
``` | ||
|
||
### With back arrow onClick | ||
|
||
Example of header with back arrow button with onClick | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
leftIcon="arrow" | ||
leftOnClick={function Ya(){}} | ||
/> | ||
</> | ||
``` | ||
|
||
### With hamburger | ||
|
||
Example of header with hamburger (only visible below xsl) with onClick | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
leftIcon="hamburger" | ||
/> | ||
</> | ||
``` | ||
|
||
### With hamburger onClick | ||
|
||
Example of header with hamburger (only visible below xsl) with onClick | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
leftIcon="hamburger" | ||
leftOnClick={function Ya(){}} | ||
/> | ||
</> | ||
``` |
10 changes: 0 additions & 10 deletions
10
apps/site/src/content/design-system/components/header/code/fixed/content.mdoc
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
apps/site/src/content/design-system/components/header/code/logo-on-click/content.mdoc
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
apps/site/src/content/design-system/components/header/code/logo-with-skip-link/content.mdoc
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
apps/site/src/content/design-system/components/header/code/right-button/content.mdoc
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...te/src/content/design-system/components/header/code/with-back-arrow-on-click/content.mdoc
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
apps/site/src/content/design-system/components/header/code/with-back-arrow/content.mdoc
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ite/src/content/design-system/components/header/code/with-hamburger-on-click/content.mdoc
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
apps/site/src/content/design-system/components/header/code/with-hamburger/content.mdoc
This file was deleted.
Oops, something went wrong.
45 changes: 44 additions & 1 deletion
45
apps/site/src/content/design-system/components/header/design/header/content.mdoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,48 @@ | ||
```tsx | ||
<div className="flex flex-col gap-4"> | ||
<div><ComponentTitle>Default</ComponentTitle> | ||
<> | ||
<Header brand="wbc" /> | ||
</> | ||
</></div> | ||
|
||
<div><ComponentTitle>With Sign Out </ComponentTitle> | ||
<> | ||
<Header brand="wbc"> | ||
<Button | ||
look="faint" | ||
onClick={function Ya(){}} | ||
size={{ | ||
initial: 'small', | ||
sm: 'medium' | ||
}} | ||
soft | ||
> | ||
Sign Out | ||
</Button> | ||
</Header> | ||
</></div> | ||
|
||
<div><ComponentTitle>Logo in centre at small views (see demo)</ComponentTitle> | ||
<> | ||
<Header | ||
brand="wbc" | ||
logoCenter | ||
/> | ||
</></div> | ||
<div> <ComponentTitle>With back arrow</ComponentTitle> | ||
<> | ||
<Header | ||
brand="wbc" | ||
leftIcon="arrow" | ||
/> | ||
</></div> | ||
<div> | ||
<ComponentTitle>With hamburger at small views (see demo)</ComponentTitle> | ||
<> | ||
<Header | ||
brand="wbc" | ||
leftIcon="hamburger" | ||
/> | ||
</></div> | ||
</div> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters