-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kenji Shiroma
committed
Dec 8, 2023
1 parent
2503b0f
commit 6136eee
Showing
13 changed files
with
211 additions
and
25 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
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
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,9 @@ | ||
import { useSearchParams } from 'next/navigation'; | ||
|
||
import { BANK_OPTIONS } from '@/constants/bank-options'; | ||
|
||
export function useBrand() { | ||
const searchParams = useSearchParams(); | ||
const brand = searchParams.get('brand') ?? 'wbc'; | ||
return BANK_OPTIONS.find(({ key }) => key === brand); | ||
} |
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
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
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
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
8 changes: 7 additions & 1 deletion
8
...ite/src/content/design-system/foundation/pictogram/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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
### Body text styling | ||
|
||
```tsx | ||
// TODO: write example | ||
<Fragment> | ||
<ComponentTitle>Resize by width</ComponentTitle> | ||
<DriversLicencePictogram /> | ||
<hr className="border-t border-t-border my-4" /> | ||
<ComponentTitle>Responsive width resize</ComponentTitle> | ||
<DriversLicencePictogram className="h-auto w-5 sm:w-10 md:w-20 lg:w-30" /> | ||
</Fragment> | ||
``` |
64 changes: 60 additions & 4 deletions
64
.../src/content/design-system/foundation/text-styling/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 |
---|---|---|
@@ -1,7 +1,63 @@ | ||
```tsx | ||
<DesktopComputerPictogram /> | ||
``` | ||
### Body text styling | ||
|
||
```tsx | ||
// TODO: write the examples | ||
<Fragment> | ||
<div className="text-heading font-bold flex flex-col gap-3 mb-4"> | ||
<h1 className="typography-body-5">Heading 1</h1> | ||
<h2 className="typography-body-6">Heading 2</h2> | ||
<h3 className="typography-body-7">Heading 3</h3> | ||
<h4 className="typography-body-8">Heading 4</h4> | ||
<h5 className="typography-body-9">Heading 5</h5> | ||
<h6 className="typography-body-10">Heading 6</h6> | ||
</div> | ||
<Body> | ||
<p> | ||
<strong>Paragraph</strong> | ||
</p> | ||
<p>The baseline body text.</p> | ||
<Hr /> | ||
<p> | ||
<strong>Link</strong> | ||
</p> | ||
<a href="#" className="underline text-primary"> | ||
Link a snippet of text | ||
</a> | ||
. The default text styling being underlined and primary colour. | ||
<Hr /> | ||
<p> | ||
<strong>Small</strong> | ||
</p> | ||
<p> | ||
<small>De-emphasise</small> inline or blocks of text. | ||
</p> | ||
<Hr /> | ||
<p> | ||
<strong>Strong</strong> | ||
</p> | ||
<p> | ||
<strong>Emphasise a snippet of text.</strong> The default text styling being a heavier font weight. | ||
</p> | ||
<Hr /> | ||
<p> | ||
<strong>Emphasis</strong> | ||
</p> | ||
<p> | ||
<em>Emphasise a snippet of text.</em> The default text styling being italics. | ||
</p> | ||
<Hr /> | ||
<p> | ||
<strong>Mark</strong> | ||
</p> | ||
<p> | ||
<mark className="bg-primary-20">Highlight</mark> a portion of text. | ||
</p> | ||
<Hr /> | ||
<p> | ||
<strong>Del/Ins</strong> | ||
</p> | ||
<p> | ||
Show changes by marking up what has been <del>deleted</del> and what has been <ins>inserted</ins>. | ||
</p> | ||
</Body> | ||
</Fragment> | ||
``` |
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
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
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
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