Skip to content

Commit 5704d14

Browse files
committed
feat: added disclaimer to pictique's login screen.
1 parent f03f10d commit 5704d14

File tree

4 files changed

+108
-110
lines changed

4 files changed

+108
-110
lines changed

platforms/pictique/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"axios": "^1.6.7",
5757
"moment": "^2.30.1",
5858
"svelte-qrcode": "^1.0.1",
59+
"svelte-qrcode-action": "^1.0.2",
5960
"tailwind-merge": "^3.0.2"
6061
}
6162
}
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
declare module 'svelte-qrcode' {
2-
import { SvelteComponentTyped } from 'svelte';
3-
export default class QRCode extends SvelteComponentTyped<{ value: string; size?: number }> {}
1+
declare module "svelte-qrcode" {
2+
import { SvelteComponentTyped } from "svelte";
3+
export default class QRCode extends SvelteComponentTyped<{
4+
value: string;
5+
size?: number;
6+
}> {}
47
}

platforms/pictique/src/routes/(auth)/auth/+page.svelte

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import { Qr } from '$lib/ui';
55
import { apiClient, setAuthId, setAuthToken } from '$lib/utils';
66
import { onMount } from 'svelte';
7+
import { qrcode } from 'svelte-qrcode-action';
78
89
let qrData: string;
910
@@ -37,14 +38,49 @@
3738
class="align-center flex h-full w-full flex-col content-center items-center
3839
justify-center"
3940
>
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>
4045
<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"
4347
>
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>
4985
</div>
5086
</div>

0 commit comments

Comments
 (0)