File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
blabsy/src/components/login
eVoting/src/app/(auth)/login Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -139,12 +139,14 @@ export function LoginMain(): JSX.Element {
139139 separation, where all your personal content is stored in
140140 your own sovereign eVault, not on centralised servers.
141141 </ div >
142+ < a href = "https://metastate.foundation" target = "_blank" rel = "noopener noreferrer" >
142143 < Image
143144 src = '/assets/w3dslogo.svg'
144145 alt = 'W3DS logo'
145146 width = { 100 }
146147 height = { 20 }
147148 />
149+ </ a >
148150 </ div >
149151 </ div >
150152 </ main >
Original file line number Diff line number Diff line change @@ -66,6 +66,17 @@ export default function LoginPage() {
6666 return ( ) => eventSource . close ( ) ;
6767 } , [ sessionId , login ] ) ;
6868
69+ const getAppStoreLink = ( ) => {
70+ const userAgent = navigator . userAgent || navigator . vendor || window . opera ;
71+ if ( / a n d r o i d / i. test ( userAgent ) ) {
72+ return "https://play.google.com/store/apps/details?id=foundation.metastate.eid_wallet" ;
73+ }
74+ if ( / i P a d | i P h o n e | i P o d / . test ( userAgent ) && ! window . MSStream ) {
75+ return "https://apps.apple.com/in/app/eid-for-w3ds/id6747748667"
76+ }
77+ return "https://play.google.com/store/apps/details?id=foundation.metastate.eid_wallet" ;
78+ } ;
79+
6980 return (
7081 < div className = "flex flex-col items-center justify-center gap-4 min-h-screen px-4 pb-safe" >
7182 { /* Logo + Tagline */ }
@@ -89,13 +100,13 @@ export default function LoginPage() {
89100 { isMobile ? (
90101 < >
91102 < span > Click the button below using your</ span >
92- < span className = "font-bold underline" > eID App</ span >
103+ < a href = { getAppStoreLink ( ) } > < span className = "font-bold underline" > eID App</ span > </ a >
93104 < span > to login</ span >
94105 </ >
95106 ) : (
96107 < >
97108 < span > Scan the QR using your</ span >
98- < span className = "font-bold underline" > eID App</ span >
109+ < a href = { getAppStoreLink ( ) } > < span className = "font-bold underline" > eID App</ span > </ a >
99110 < span > to login</ span >
100111 </ >
101112 ) }
@@ -156,8 +167,9 @@ export default function LoginPage() {
156167 </ div >
157168 </ div >
158169 </ Card >
159-
170+ < a href = "https://metastate.foundation" target = "_blank" rel = "noopener noreferrer" >
160171 < img src = "/W3DS.svg" alt = "w3ds Logo" className = "max-h-8" />
172+ </ a >
161173 </ div >
162174 ) ;
163175}
You can’t perform that action at this time.
0 commit comments