mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 15:40:06 +00:00
feat(native): app sign-in screen that continues the address screen
Inside the iOS and Android app the sign-in page looked like the web form it is in a browser: a white card on grey, the web header and a language menu, reached through a white page, a grey spinner and another white page, and left through the 2.6 s takeoff animation. - AppLogin: the address screen's landscape with the connected server on its glass card (Change leads back to the address screen), and its fields, buttons and type on the same warm page. Same useLogin hook, so password, remember me, forgot password, SSO, OIDC-only, passkey, demo, MFA, password change, registration and invites all stay as they are. - The app speaks the device language with English as the fallback; no language menu there. - Handover: theme-boot.js marks a page inside the app that nobody signed in to yet, which then starts on the address screen's colour, waits with its spinner, and fades the sign-in screen in. After signing in the screen steps back while the settings load and the app rises in, instead of the takeoff. - Android: the WebView and window keep the address screen's colour across the restart onto the server, and the status bar icons stay readable where an older WebView lays the page out below the bar (shell and sign-in). - loginModel holds the headings, button labels and SSO links both sign-in screens share. The browser's sign-in page is unchanged.
This commit is contained in:
@@ -81,3 +81,50 @@ html[data-touch-input]
|
||||
--tw-ring-offset-shadow: 0 0 #0000;
|
||||
--tw-ring-shadow: 0 0 #0000;
|
||||
}
|
||||
|
||||
/* The handover from the app's address screen to this server's UI
|
||||
(native/appBoot.ts): the waiting states stand on that screen's colour, with
|
||||
its spinner, which fades in only once the wait is long enough to notice. */
|
||||
html[data-app-boot] .app-boot {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: #fffaf5;
|
||||
}
|
||||
html[data-app-boot] .app-boot span {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
border: 2.5px solid #6b5f57;
|
||||
border-top-color: transparent;
|
||||
animation:
|
||||
trek-boot-spin 0.8s linear infinite,
|
||||
trek-image-in 0.3s ease-out 0.6s both;
|
||||
}
|
||||
@keyframes trek-boot-spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Signed in from the app's sign-in screen: the app rises in on the page
|
||||
colour instead of cutting in (native/appBoot.ts endAppBoot). */
|
||||
html[data-app-enter] #root {
|
||||
animation: trek-app-enter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
|
||||
}
|
||||
@keyframes trek-app-enter {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.97);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html[data-app-enter] #root {
|
||||
animation-duration: 0.01s;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user