Skip to content

Commit

Permalink
Use new typography (#194)
Browse files Browse the repository at this point in the history
* Use new typography

* Fix lint
  • Loading branch information
ayinloya authored Jan 29, 2024
1 parent 3771d7c commit 8eb2b7a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import styles from '../../../styles';

function templateString() {
return `
${styles}
<div id="document-instruction-screen" class="flow center">
<section className="main">
${this.showNavigation
Expand Down Expand Up @@ -77,7 +76,7 @@ function templateString() {
</clipPath>
</defs>
</svg>
<h1>${this.title}</h1>
<h1 class='text-2xl color-digital-blue font-bold'>${this.title}</h1>
<p class="description text-sm font-normal">
We'll use it to verify your identity.
</p>
Expand Down Expand Up @@ -286,6 +285,7 @@ function templateString() {
${this.hideAttribution ? '' : '<powered-by-smile-id></powered-by-smile-id>'}
</section>
</div>
${styles}
`;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/components/selfie-capture/SelfieCapture.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ function templateString() {
</button>
</div>
` : ''}
<h1>Take a Selfie</h1>
<h1 class='text-2xl color-digital-blue font-bold'>Take a Selfie</h1>
<div class='section | flow'>
<div class='video-container'>
Expand Down
5 changes: 4 additions & 1 deletion packages/components/selfie-capture/SelfieInstruction.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import styles from '../styles';

function templateString() {
return `
<link rel="preconnect" href="https://fonts.gstatic.com" />
Expand Down Expand Up @@ -305,6 +307,7 @@ function templateString() {
font-weight: 700;
}
</style>
${styles}
<div id="id-entry-screen" class="flow center">
${this.showNavigation ? `
<div class="nav">
Expand Down Expand Up @@ -401,7 +404,7 @@ function templateString() {
</clipPath>
</defs>
</svg>
<h1>Next, we'll take a quick selfie</h1>
<h1 class='text-2xl color-digital-blue font-bold'>Next, we'll take a quick selfie</h1>
</header>
<div class="flow">
<div class="instructions">
Expand Down
3 changes: 2 additions & 1 deletion packages/components/selfie-capture/SelfieReview.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ function templateString() {
line-height: 1.5rem;
}
</style>
${styles}
<div id='id-review-screen' class='flow center'>
${this.showNavigation ? `
<div class="nav justify-right">
Expand All @@ -171,7 +172,7 @@ function templateString() {
</button>
</div>
` : ''}
<h1 class="header-title">
<h1 class="header-title text-2xl color-digital-blue font-bold">
Is you whole face visible
and clear in this photo?
</h1>
Expand Down

0 comments on commit 8eb2b7a

Please sign in to comment.