|
4 | 4 | import { Qr } from '$lib/ui';
|
5 | 5 | import { apiClient, setAuthId, setAuthToken } from '$lib/utils';
|
6 | 6 | import { onMount } from 'svelte';
|
| 7 | + import { qrcode } from 'svelte-qrcode-action'; |
7 | 8 |
|
8 | 9 | let qrData: string;
|
9 | 10 |
|
|
37 | 38 | class="align-center flex h-full w-full flex-col content-center items-center
|
38 | 39 | justify-center"
|
39 | 40 | >
|
| 41 | + <div class="mb-5 flex flex-col items-center gap-2"> |
| 42 | + <img src="/images/Logo.svg" alt="logo" class="w-30" /> |
| 43 | + <p>Connect Socially in the Metastate</p> |
| 44 | + </div> |
40 | 45 | <div
|
41 |
| - class="h-max-[600px] bg-grey flex w-[300px] flex-col items-center gap-5 |
42 |
| - rounded-md p-5" |
| 46 | + class="h-max-[600px] w-max-[400px] flex flex-col items-center gap-5 rounded-xl bg-[#F476481A] p-5" |
43 | 47 | >
|
44 |
| - <img src="/images/Logo.svg" alt="logo" /> |
45 |
| - |
46 |
| - <Qr data={qrData}></Qr> |
47 |
| - |
48 |
| - <h1>Scan the QR to Login</h1> |
| 48 | + <h2>Scan the QR code using your <b><u>eID App</u></b> to login</h2> |
| 49 | + <article |
| 50 | + class="overflow-hidden rounded-2xl" |
| 51 | + use:qrcode={{ |
| 52 | + data: qrData, |
| 53 | + width: 250, |
| 54 | + height: 250, |
| 55 | + margin: 12, |
| 56 | + type: 'canvas', |
| 57 | + dotsOptions: { |
| 58 | + type: 'rounded', |
| 59 | + color: '#fff' |
| 60 | + }, |
| 61 | + backgroundOptions: { |
| 62 | + gradient: { |
| 63 | + type: 'linear', |
| 64 | + rotation: 50, |
| 65 | + colorStops: [ |
| 66 | + { offset: 0, color: '#4D44EF' }, |
| 67 | + { offset: 0.65, color: '#F35B5B' }, |
| 68 | + { offset: 1, color: '#F7A428' } |
| 69 | + ] |
| 70 | + } |
| 71 | + } |
| 72 | + }} |
| 73 | + ></article> |
| 74 | + <p> |
| 75 | + <span class="mb-1 block font-bold text-gray-600">The code is valid for 60 seconds</span> |
| 76 | + <span class="block font-light text-gray-600">Please refresh the page if it expires</span |
| 77 | + > |
| 78 | + </p> |
| 79 | + <p class="w-[350px] bg-white/60 p-4 leading-4 text-black/60"> |
| 80 | + You are entering Pictique - a social network built on the Web 3.0 Data Space (W3DS) |
| 81 | + architecture. This system is designed around the principle of data-platform separation, |
| 82 | + where all your personal content is stored in your own sovereign eVault, not on |
| 83 | + centralised servers. |
| 84 | + </p> |
49 | 85 | </div>
|
50 | 86 | </div>
|
0 commit comments