|
1 | 1 | <!DOCTYPE html>
|
2 |
| -<html lang="en"> |
| 2 | +<html class="yoti-html"> |
| 3 | + |
3 | 4 | <head>
|
4 |
| - <!-- Your header content --> |
5 |
| - <script src="https://sdk.yoti.com/clients/browser.2.2.0.js"></script> |
6 |
| - <meta charset="UTF-8"> |
7 |
| - <title>Index</title> |
| 5 | + <meta charset="utf-8" /> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> |
| 7 | + <title>Yoti client example</title> |
| 8 | + <link rel="stylesheet" type="text/css" href="/static/index.css" /> |
| 9 | + <link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet" /> |
8 | 10 | </head>
|
9 | 11 |
|
10 |
| -<body> |
11 |
| -<!-- Your website content --> |
| 12 | +<body class="yoti-body"> |
| 13 | + |
| 14 | + <main> |
| 15 | + <section class="yoti-top-section"> |
| 16 | + <div class="yoti-logo-section"> |
| 17 | + <img |
| 18 | + class="yoti-logo-image" |
| 19 | + src="/static/assets/logo.png" |
| 20 | + srcset=" /static/assets/[email protected] 2x" |
| 21 | + alt="Yoti"/> |
| 22 | + </div> |
| 23 | + |
| 24 | + <h1 class="yoti-top-header">We now accept Yoti</h1> |
| 25 | + |
| 26 | + <div class="yoti-sdk-integration-section"> |
| 27 | + <div id="yoti-share-button"></div> |
| 28 | + </div> |
| 29 | + |
| 30 | + <div class="yoti-login-or-separator">or</div> |
| 31 | + |
| 32 | + <div class="yoti-login-dialog"> |
| 33 | + <h2 class="yoti-login-dialog-header">Login with your email:</h2> |
| 34 | + |
| 35 | + <input class="yoti-input" type="text" placeholder="Name"/> |
12 | 36 |
|
13 |
| -<!-- This span will create the Yoti button --> |
14 |
| -<span data-yoti-application-id="{{app_id}}"> |
15 |
| - Log in with Yoti |
16 |
| -</span> |
| 37 | + <input class="yoti-input" type="text" placeholder="Email address"/> |
17 | 38 |
|
18 |
| -<!-- This script snippet will also be required in your HTML body --> |
19 |
| -<script> |
20 |
| - _ybg.init() |
| 39 | + <div class="yoti-login-actions"> |
| 40 | + <span class="yoti-login-forgot-button">forgot password?</span> |
21 | 41 |
|
| 42 | + <button class="yoti-login-button">login</button> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + </section> |
22 | 46 |
|
| 47 | + <section class="yoti-sponsor-app-section"> |
| 48 | + <h3 class="yoti-sponsor-app-header">The Yoti app is free to download and use:</h3> |
| 49 | + |
| 50 | + <div class="yoti-store-buttons-section"> |
| 51 | + <a href="https://itunes.apple.com/us/app/yoti/id983980808?ls=1&mt=8" class="yoti-app-button-link"> |
| 52 | + <img |
| 53 | + src="/static/assets/app-store-badge.png" |
| 54 | + srcset=" /static/assets/[email protected] 2x" |
| 55 | + alt="Download on the App Store"/> |
| 56 | + </a> |
| 57 | + |
| 58 | + <a href="https://play.google.com/store/apps/details?id=com.yoti.mobile.android.live" class="yoti-app-button-link"> |
| 59 | + <img |
| 60 | + src="/static/assets/google-play-badge.png" |
| 61 | + srcset=" /static/assets/[email protected] 2x" |
| 62 | + alt="get it on Google Play"/> |
| 63 | + </a> |
| 64 | + </div> |
| 65 | + </section> |
| 66 | + </main> |
| 67 | + |
| 68 | + <script src="https://www.yoti.com/share/client/"></script> |
| 69 | + <script> |
| 70 | + window.Yoti.Share.init({ |
| 71 | + "elements": [{ |
| 72 | + "domId": "yoti-share-button", |
| 73 | + "scenarioId": "{{scenario_id}}", |
| 74 | + "button": { |
| 75 | + "label": "Use Yoti" |
| 76 | + } |
| 77 | + }] |
| 78 | + }); |
23 | 79 | </script>
|
| 80 | + |
24 | 81 | </body>
|
| 82 | + |
25 | 83 | </html>
|
0 commit comments