@adminide-stack/clock-tik-mobile 0.0.0-stage → 12.0.37-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-flow/data/pending-insights.jsonl +43 -0
- package/.claude-flow/sessions/session-1794323376548.json +14 -0
- package/CHANGELOG.md +41 -0
- package/jest.config.cjs +22 -0
- package/lib/assets/home/loop-day.jpg +0 -0
- package/lib/assets/home/loop-day.mp4 +0 -0
- package/lib/assets/home/loop-time-back.jpg +0 -0
- package/lib/assets/home/loop-time-back.mp4 +0 -0
- package/lib/assets/home/loop-where.jpg +0 -0
- package/lib/assets/home/loop-where.mp4 +0 -0
- package/lib/assets/home/reel-gym.jpg +0 -0
- package/lib/assets/home/reel-gym.mp4 +0 -0
- package/lib/assets/home/reel-internet.jpg +0 -0
- package/lib/assets/home/reel-internet.mp4 +0 -0
- package/lib/assets/icon.png +0 -0
- package/lib/assets/lottie/.claude-flow/data/pending-insights.jsonl +1 -0
- package/lib/assets/lottie/lucy-mark-calendar.json +1827 -0
- package/lib/assets/lottie/lucy-mark-call.json +1470 -0
- package/lib/assets/lottie/lucy-mark-connect.json +2552 -0
- package/lib/assets/lottie/lucy-mark-details.json +1735 -0
- package/lib/assets/lottie/lucy-mark-email.json +1363 -0
- package/lib/assets/lottie/lucy-mark-message.json +1154 -0
- package/lib/assets/lottie/lucy-mark-search.json +1067 -0
- package/lib/assets/lottie/lucy-mark-think.json +1253 -0
- package/lib/assets/lottie/lucy-mark-write.json +1532 -0
- package/lib/assets/lottie/time-back.json +16458 -0
- package/lib/assets/lottie/where-lucy-works-chat.json +6170 -0
- package/lib/assets/lottie/where-lucy-works-cloud.json +10066 -0
- package/lib/assets/lottie/where-lucy-works-mine-none.json +2478 -0
- package/lib/assets/lottie/where-lucy-works-mine-offline.json +2373 -0
- package/lib/assets/lottie/where-lucy-works-mine-online.json +7881 -0
- package/lib/assets/sounds/hours-back.m4a +0 -0
- package/lib/assets/sounds/meet-lucy.m4a +0 -0
- package/lib/assets/sounds/power-on.m4a +0 -0
- package/lib/assets/sounds/wind-back.m4a +0 -0
- package/lib/assets/sounds/youre-in.m4a +0 -0
- package/lib/chat/agent.js +358 -0
- package/lib/chat/agent.js.map +1 -0
- package/lib/chat/appFront.js +32 -0
- package/lib/chat/appFront.js.map +1 -0
- package/lib/chat/auth.js +370 -0
- package/lib/chat/auth.js.map +1 -0
- package/lib/chat/chores.js +360 -0
- package/lib/chat/chores.js.map +1 -0
- package/lib/chat/connectors.js +45 -0
- package/lib/chat/connectors.js.map +1 -0
- package/lib/chat/jobs.js +223 -0
- package/lib/chat/jobs.js.map +1 -0
- package/lib/chat/lucyMotion.js +6 -0
- package/lib/chat/lucyMotion.js.map +1 -0
- package/lib/chat/protocol.js +111 -0
- package/lib/chat/protocol.js.map +1 -0
- package/lib/chat/results.js +133 -0
- package/lib/chat/results.js.map +1 -0
- package/lib/chat/store.js +81 -0
- package/lib/chat/store.js.map +1 -0
- package/lib/chat/useDictation.js +168 -0
- package/lib/chat/useDictation.js.map +1 -0
- package/lib/chat/useLucyChat.js +451 -0
- package/lib/chat/useLucyChat.js.map +1 -0
- package/lib/chat/useMyComputer.js +32 -0
- package/lib/chat/useMyComputer.js.map +1 -0
- package/lib/chat/whereLucyWorks.js +52 -0
- package/lib/chat/whereLucyWorks.js.map +1 -0
- package/lib/chat/workspace.js +124 -0
- package/lib/chat/workspace.js.map +1 -0
- package/lib/components/AreaShot.js +289 -0
- package/lib/components/AreaShot.js.map +1 -0
- package/lib/components/Backdrops.js +262 -0
- package/lib/components/Backdrops.js.map +1 -0
- package/lib/components/BottomSheet.js +61 -0
- package/lib/components/BottomSheet.js.map +1 -0
- package/lib/components/ChatSheets.js +429 -0
- package/lib/components/ChatSheets.js.map +1 -0
- package/lib/components/ConnectorLogo.js +91 -0
- package/lib/components/ConnectorLogo.js.map +1 -0
- package/lib/components/CustomDrawer.js +534 -0
- package/lib/components/CustomDrawer.js.map +1 -0
- package/lib/components/IdeasPane.js +394 -0
- package/lib/components/IdeasPane.js.map +1 -0
- package/lib/components/ImessageSheet.js +261 -0
- package/lib/components/ImessageSheet.js.map +1 -0
- package/lib/components/KeyboardAvoider.js +29 -0
- package/lib/components/KeyboardAvoider.js.map +1 -0
- package/lib/components/Logo.js +81 -0
- package/lib/components/Logo.js.map +1 -0
- package/lib/components/LucyWorking.js +67 -0
- package/lib/components/LucyWorking.js.map +1 -0
- package/lib/components/Markdown.js +260 -0
- package/lib/components/Markdown.js.map +1 -0
- package/lib/components/Media.js +93 -0
- package/lib/components/Media.js.map +1 -0
- package/lib/components/MessagesAppIcon.js +23 -0
- package/lib/components/MessagesAppIcon.js.map +1 -0
- package/lib/components/MicButton.js +71 -0
- package/lib/components/MicButton.js.map +1 -0
- package/lib/components/ResultCards.js +974 -0
- package/lib/components/ResultCards.js.map +1 -0
- package/lib/components/SignInPrompt.js +148 -0
- package/lib/components/SignInPrompt.js.map +1 -0
- package/lib/components/SignedOut.js +38 -0
- package/lib/components/SignedOut.js.map +1 -0
- package/lib/components/TalkToLucyHero.js +487 -0
- package/lib/components/TalkToLucyHero.js.map +1 -0
- package/lib/components/TalkToLucySheet.js +182 -0
- package/lib/components/TalkToLucySheet.js.map +1 -0
- package/lib/components/WhereLucyWorks.js +277 -0
- package/lib/components/WhereLucyWorks.js.map +1 -0
- package/lib/components/WorkspaceSection.js +271 -0
- package/lib/components/WorkspaceSection.js.map +1 -0
- package/lib/components/YantraMark.js +13 -0
- package/lib/components/YantraMark.js.map +1 -0
- package/lib/components/drawerHeader.js +38 -0
- package/lib/components/drawerHeader.js.map +1 -0
- package/lib/components/lottieInstalled.js +6 -0
- package/lib/components/lottieInstalled.js.map +1 -0
- package/lib/components/ui.js +550 -0
- package/lib/components/ui.js.map +1 -0
- package/lib/components/useSignOut.js +7 -0
- package/lib/components/useSignOut.js.map +1 -0
- package/lib/components/viewport.js +121 -0
- package/lib/components/viewport.js.map +1 -0
- package/lib/components/voiceDial.js +10 -0
- package/lib/components/voiceDial.js.map +1 -0
- package/lib/compute.js +157 -0
- package/lib/compute.js.map +1 -0
- package/lib/config/env-config.js +27 -0
- package/lib/config/env-config.js.map +1 -0
- package/lib/config/routes.js +15 -0
- package/lib/config/routes.js.map +1 -0
- package/lib/content.js +25 -0
- package/lib/content.js.map +1 -0
- package/lib/hooks/keyboardCover.js +39 -0
- package/lib/hooks/keyboardCover.js.map +1 -0
- package/lib/hooks/useKeyboard.js +121 -0
- package/lib/hooks/useKeyboard.js.map +1 -0
- package/lib/hooks/useReducedMotion.js +13 -0
- package/lib/hooks/useReducedMotion.js.map +1 -0
- package/lib/imessage/openMessages.js +25 -0
- package/lib/imessage/openMessages.js.map +1 -0
- package/lib/imessage/platform.js +12 -0
- package/lib/imessage/platform.js.map +1 -0
- package/lib/imessage/textLink.js +262 -0
- package/lib/imessage/textLink.js.map +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -0
- package/lib/live/card.js +28 -0
- package/lib/live/card.js.map +1 -0
- package/lib/live/liveActivity.js +144 -0
- package/lib/live/liveActivity.js.map +1 -0
- package/lib/module.js +3 -0
- package/lib/module.js.map +1 -0
- package/lib/offer/BlackFridayOffer.js +378 -0
- package/lib/offer/BlackFridayOffer.js.map +1 -0
- package/lib/offer/blackFriday.js +78 -0
- package/lib/offer/blackFriday.js.map +1 -0
- package/lib/offer/parts.js +624 -0
- package/lib/offer/parts.js.map +1 -0
- package/lib/offer/state.js +63 -0
- package/lib/offer/state.js.map +1 -0
- package/lib/push/push.js +142 -0
- package/lib/push/push.js.map +1 -0
- package/lib/push/usePushNotifications.js +39 -0
- package/lib/push/usePushNotifications.js.map +1 -0
- package/lib/routes.json +175 -0
- package/lib/screens/Account/index.js +209 -0
- package/lib/screens/Account/index.js.map +1 -0
- package/lib/screens/Chat/index.js +710 -0
- package/lib/screens/Chat/index.js.map +1 -0
- package/lib/screens/Chores/index.js +18 -0
- package/lib/screens/Chores/index.js.map +1 -0
- package/lib/screens/Connectors/index.js +17 -0
- package/lib/screens/Connectors/index.js.map +1 -0
- package/lib/screens/History/index.js +380 -0
- package/lib/screens/History/index.js.map +1 -0
- package/lib/screens/Home/index.js +2715 -0
- package/lib/screens/Home/index.js.map +1 -0
- package/lib/screens/Home/media.js +25 -0
- package/lib/screens/Home/media.js.map +1 -0
- package/lib/screens/Welcome/index.js +1066 -0
- package/lib/screens/Welcome/index.js.map +1 -0
- package/lib/talk/talkToLucy.js +139 -0
- package/lib/talk/talkToLucy.js.map +1 -0
- package/lib/theme/colors.js +29 -0
- package/lib/theme/colors.js.map +1 -0
- package/lib/theme/fonts.js +17 -0
- package/lib/theme/fonts.js.map +1 -0
- package/lib/theme/muse.js +134 -0
- package/lib/theme/muse.js.map +1 -0
- package/lib/utils/links.js +54 -0
- package/lib/utils/links.js.map +1 -0
- package/lib/utils/yantraLinks.js +68 -0
- package/lib/utils/yantraLinks.js.map +1 -0
- package/lib/welcome/flow.js +375 -0
- package/lib/welcome/flow.js.map +1 -0
- package/lib/welcome/haptics.js +125 -0
- package/lib/welcome/haptics.js.map +1 -0
- package/lib/welcome/parts.js +1996 -0
- package/lib/welcome/parts.js.map +1 -0
- package/lib/welcome/powerOn.js +29 -0
- package/lib/welcome/powerOn.js.map +1 -0
- package/lib/welcome/seen.js +41 -0
- package/lib/welcome/seen.js.map +1 -0
- package/lib/welcome/sound.js +110 -0
- package/lib/welcome/sound.js.map +1 -0
- package/package.json +66 -5
- package/rollup.config.mjs +42 -0
- package/src/.claude-flow/data/pending-insights.jsonl +19 -0
- package/src/.claude-flow/sessions/session-1795013028422.json +14 -0
- package/src/__tests__/auth.test.ts +94 -0
- package/src/__tests__/blackFriday.test.ts +75 -0
- package/src/__tests__/cardTokens.test.ts +77 -0
- package/src/__tests__/chores.test.ts +188 -0
- package/src/__tests__/choresList.test.ts +100 -0
- package/src/__tests__/connectLink.test.ts +21 -0
- package/src/__tests__/content.test.ts +54 -0
- package/src/__tests__/dictation.test.ts +186 -0
- package/src/__tests__/envConfig.test.ts +14 -0
- package/src/__tests__/haptics.test.ts +202 -0
- package/src/__tests__/jobs.test.ts +130 -0
- package/src/__tests__/keyboardCover.test.ts +84 -0
- package/src/__tests__/liveCard.test.ts +39 -0
- package/src/__tests__/lockedPhone.test.ts +355 -0
- package/src/__tests__/lucyMotion.test.ts +34 -0
- package/src/__tests__/platform.test.ts +32 -0
- package/src/__tests__/powerOn.test.ts +62 -0
- package/src/__tests__/protocol.test.ts +125 -0
- package/src/__tests__/push.test.ts +111 -0
- package/src/__tests__/results.test.ts +256 -0
- package/src/__tests__/sound.test.ts +248 -0
- package/src/__tests__/talkToLucy.test.ts +205 -0
- package/src/__tests__/textLink.test.ts +91 -0
- package/src/__tests__/voiceDial.test.ts +53 -0
- package/src/__tests__/welcomeFlow.test.ts +157 -0
- package/src/__tests__/whereLucyWorks.test.ts +81 -0
- package/src/__tests__/yantraLinks.test.ts +96 -0
- package/src/assets/home/loop-day.jpg +0 -0
- package/src/assets/home/loop-day.mp4 +0 -0
- package/src/assets/home/loop-time-back.jpg +0 -0
- package/src/assets/home/loop-time-back.mp4 +0 -0
- package/src/assets/home/loop-where.jpg +0 -0
- package/src/assets/home/loop-where.mp4 +0 -0
- package/src/assets/home/reel-gym.jpg +0 -0
- package/src/assets/home/reel-gym.mp4 +0 -0
- package/src/assets/home/reel-internet.jpg +0 -0
- package/src/assets/home/reel-internet.mp4 +0 -0
- package/src/assets/icon.png +0 -0
- package/src/assets/lottie/.claude-flow/data/pending-insights.jsonl +1 -0
- package/src/assets/lottie/lucy-mark-calendar.json +1827 -0
- package/src/assets/lottie/lucy-mark-call.json +1470 -0
- package/src/assets/lottie/lucy-mark-connect.json +2552 -0
- package/src/assets/lottie/lucy-mark-details.json +1735 -0
- package/src/assets/lottie/lucy-mark-email.json +1363 -0
- package/src/assets/lottie/lucy-mark-message.json +1154 -0
- package/src/assets/lottie/lucy-mark-search.json +1067 -0
- package/src/assets/lottie/lucy-mark-think.json +1253 -0
- package/src/assets/lottie/lucy-mark-write.json +1532 -0
- package/src/assets/lottie/time-back.json +16458 -0
- package/src/assets/lottie/where-lucy-works-chat.json +6170 -0
- package/src/assets/lottie/where-lucy-works-cloud.json +10066 -0
- package/src/assets/lottie/where-lucy-works-mine-none.json +2478 -0
- package/src/assets/lottie/where-lucy-works-mine-offline.json +2373 -0
- package/src/assets/lottie/where-lucy-works-mine-online.json +7881 -0
- package/src/assets/sounds/hours-back.m4a +0 -0
- package/src/assets/sounds/meet-lucy.m4a +0 -0
- package/src/assets/sounds/power-on.m4a +0 -0
- package/src/assets/sounds/wind-back.m4a +0 -0
- package/src/assets/sounds/youre-in.m4a +0 -0
- package/src/chat/.claude-flow/data/pending-insights.jsonl +1 -0
- package/src/chat/agent.ts +376 -0
- package/src/chat/appFront.ts +39 -0
- package/src/chat/auth.ts +433 -0
- package/src/chat/chores.ts +394 -0
- package/src/chat/connectors.ts +75 -0
- package/src/chat/jobs.ts +228 -0
- package/src/chat/lucyMotion.ts +33 -0
- package/src/chat/protocol.ts +192 -0
- package/src/chat/results.ts +224 -0
- package/src/chat/store.ts +87 -0
- package/src/chat/useDictation.ts +201 -0
- package/src/chat/useLucyChat.ts +458 -0
- package/src/chat/useMyComputer.ts +41 -0
- package/src/chat/whereLucyWorks.ts +97 -0
- package/src/chat/workspace.ts +127 -0
- package/src/components/.claude-flow/data/pending-insights.jsonl +3 -0
- package/src/components/AreaShot.tsx +239 -0
- package/src/components/Backdrops.tsx +323 -0
- package/src/components/BottomSheet.tsx +96 -0
- package/src/components/ChatSheets.tsx +565 -0
- package/src/components/ConnectorLogo.tsx +116 -0
- package/src/components/CustomDrawer.tsx +526 -0
- package/src/components/IdeasPane.tsx +318 -0
- package/src/components/ImessageSheet.tsx +280 -0
- package/src/components/KeyboardAvoider.tsx +45 -0
- package/src/components/Logo.tsx +97 -0
- package/src/components/LucyWorking.tsx +122 -0
- package/src/components/Markdown.tsx +219 -0
- package/src/components/Media.tsx +173 -0
- package/src/components/MessagesAppIcon.tsx +51 -0
- package/src/components/MicButton.tsx +92 -0
- package/src/components/ResultCards.tsx +1067 -0
- package/src/components/SignInPrompt.tsx +182 -0
- package/src/components/SignedOut.tsx +47 -0
- package/src/components/TalkToLucyHero.tsx +540 -0
- package/src/components/TalkToLucySheet.tsx +208 -0
- package/src/components/VoiceOrb.tsx +364 -0
- package/src/components/WhereLucyWorks.tsx +261 -0
- package/src/components/WorkspaceSection.tsx +307 -0
- package/src/components/YantraMark.tsx +30 -0
- package/src/components/drawerHeader.tsx +46 -0
- package/src/components/kit.tsx +309 -0
- package/src/components/lottieInstalled.ts +7 -0
- package/src/components/ui.tsx +700 -0
- package/src/components/useSignOut.ts +21 -0
- package/src/components/viewport.tsx +166 -0
- package/src/components/voiceDial.ts +45 -0
- package/src/compute.ts +168 -0
- package/src/config/env-config.ts +50 -0
- package/src/config/routes.ts +28 -0
- package/src/content.ts +217 -0
- package/src/hooks/keyboardCover.ts +70 -0
- package/src/hooks/useKeyboard.ts +135 -0
- package/src/hooks/useReducedMotion.ts +19 -0
- package/src/imessage/openMessages.ts +53 -0
- package/src/imessage/platform.ts +32 -0
- package/src/imessage/textLink.ts +307 -0
- package/src/index.ts +24 -0
- package/src/live/card.ts +62 -0
- package/src/live/liveActivity.ts +192 -0
- package/src/module.ts +8 -0
- package/src/offer/BlackFridayOffer.tsx +394 -0
- package/src/offer/blackFriday.ts +109 -0
- package/src/offer/parts.tsx +650 -0
- package/src/offer/state.ts +78 -0
- package/src/push/push.ts +171 -0
- package/src/push/usePushNotifications.ts +47 -0
- package/src/screens/Account/index.tsx +310 -0
- package/src/screens/Chat/.claude-flow/data/pending-insights.jsonl +4 -0
- package/src/screens/Chat/index.tsx +891 -0
- package/src/screens/Chores/index.tsx +35 -0
- package/src/screens/Connectors/index.tsx +35 -0
- package/src/screens/History/index.tsx +346 -0
- package/src/screens/Home/index.tsx +2776 -0
- package/src/screens/Home/media.ts +31 -0
- package/src/screens/Welcome/index.tsx +1182 -0
- package/src/talk/talkToLucy.ts +187 -0
- package/src/theme/colors.ts +38 -0
- package/src/theme/fonts.ts +30 -0
- package/src/theme/muse.ts +86 -0
- package/src/utils/links.ts +84 -0
- package/src/utils/yantraLinks.ts +94 -0
- package/src/welcome/flow.ts +418 -0
- package/src/welcome/haptics.ts +179 -0
- package/src/welcome/parts.tsx +2160 -0
- package/src/welcome/powerOn.ts +84 -0
- package/src/welcome/seen.ts +68 -0
- package/src/welcome/sound.ts +173 -0
- package/tools/lottie/chat.motion +0 -0
- package/tools/lottie/cloud.motion +0 -0
- package/tools/lottie/generate.mjs +1209 -0
- package/tools/lottie/inter-glyphs.json +4416 -0
- package/tools/lottie/lucy-mark-calendar.motion +0 -0
- package/tools/lottie/lucy-mark-call.motion +0 -0
- package/tools/lottie/lucy-mark-connect.motion +0 -0
- package/tools/lottie/lucy-mark-details.motion +0 -0
- package/tools/lottie/lucy-mark-email.motion +0 -0
- package/tools/lottie/lucy-mark-message.motion +0 -0
- package/tools/lottie/lucy-mark-search.motion +0 -0
- package/tools/lottie/lucy-mark-think.motion +0 -0
- package/tools/lottie/lucy-mark-write.motion +0 -0
- package/tools/lottie/mark.json +1 -0
- package/tools/lottie/mine-none.motion +0 -0
- package/tools/lottie/mine-offline.motion +0 -0
- package/tools/lottie/mine-online.motion +0 -0
- package/tools/lottie/time-back.mjs +604 -0
- package/tools/sounds/render.mjs +730 -0
- package/tsconfig.json +17 -0
- package/README.md +0 -3
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The picture at the top of the Talk to Lucy sheet, as designed on the canvas (VoiceShortcut.dc.html): an iPhone,
|
|
3
|
+
* cropped, doing the thing in one 8 s loop. The Action Button is held (or, on an iPhone without one, Lucy's control is
|
|
4
|
+
* tapped in Control Center). Clockbook then opens with the big mic listening and the words arrive. Last, the phone is
|
|
5
|
+
* back where it was, with Lucy's chore in the Dynamic Island. Drawn, not a screenshot. Under Reduce Motion it holds
|
|
6
|
+
* still on the moment Clockbook listens (on Control Center, for an iPhone without an Action Button).
|
|
7
|
+
*/
|
|
8
|
+
import React, { useEffect, useRef } from 'react';
|
|
9
|
+
import { Animated, Easing, StyleSheet, Text, View } from 'react-native';
|
|
10
|
+
import Svg, { Circle, Defs, Line, LinearGradient, RadialGradient, Rect, Stop } from 'react-native-svg';
|
|
11
|
+
import { Mark } from './Logo';
|
|
12
|
+
import { dialTicks } from './voiceDial';
|
|
13
|
+
import { useReducedMotion } from '../hooks/useReducedMotion';
|
|
14
|
+
import { ui } from '../theme/muse';
|
|
15
|
+
import type { TalkPlace } from '../talk/talkToLucy';
|
|
16
|
+
|
|
17
|
+
const LOOP_MS = 8000;
|
|
18
|
+
const HEIGHT = 196;
|
|
19
|
+
const PHONE_W = 196;
|
|
20
|
+
const PHONE_H = 320;
|
|
21
|
+
const BEZEL = 6;
|
|
22
|
+
const SCREEN_W = PHONE_W - BEZEL * 2;
|
|
23
|
+
const DIAL = 88;
|
|
24
|
+
const SPHERE = 46;
|
|
25
|
+
const BOX_W = SCREEN_W - 24;
|
|
26
|
+
const WORDS = 'Remind me to send the deck at 4';
|
|
27
|
+
/** Clockbook orange as it reads on black: the Dynamic Island's timer, the tap around Lucy's control. */
|
|
28
|
+
const ORANGE_ON_INK = '#FF8A3D';
|
|
29
|
+
const FILL = { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 } as const;
|
|
30
|
+
|
|
31
|
+
/** The mini dial's sixty ticks, as Home's big mic draws its own. */
|
|
32
|
+
const TICKS = dialTicks().map((tick) => {
|
|
33
|
+
const rad = (tick.deg * Math.PI) / 180;
|
|
34
|
+
const c = DIAL / 2;
|
|
35
|
+
const r1 = c - 1;
|
|
36
|
+
const r2 = r1 - (tick.major ? 5.5 : 3);
|
|
37
|
+
return {
|
|
38
|
+
key: tick.i,
|
|
39
|
+
major: tick.major,
|
|
40
|
+
x1: c + r1 * Math.sin(rad),
|
|
41
|
+
y1: c - r1 * Math.cos(rad),
|
|
42
|
+
x2: c + r2 * Math.sin(rad),
|
|
43
|
+
y2: c - r2 * Math.cos(rad),
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
type Frames = readonly (readonly [number, number])[];
|
|
48
|
+
|
|
49
|
+
/** A value over the loop from [time 0 to 1, value] keyframes: the canvas's CSS keyframes (voice-shortcut.css). */
|
|
50
|
+
function over(t: Animated.Value, frames: Frames) {
|
|
51
|
+
return t.interpolate({
|
|
52
|
+
inputRange: frames.map((f) => f[0]),
|
|
53
|
+
outputRange: frames.map((f) => f[1]),
|
|
54
|
+
extrapolate: 'clamp',
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const HOLD: Frames = [
|
|
59
|
+
[0, 0],
|
|
60
|
+
[0.03, 0],
|
|
61
|
+
[0.06, 1],
|
|
62
|
+
[0.12, 1],
|
|
63
|
+
[0.16, 0],
|
|
64
|
+
[1, 0],
|
|
65
|
+
];
|
|
66
|
+
const HOLD_SCALE: Frames = [
|
|
67
|
+
[0, 0.6],
|
|
68
|
+
[0.03, 0.6],
|
|
69
|
+
[0.06, 1],
|
|
70
|
+
[0.12, 1],
|
|
71
|
+
[0.16, 1.5],
|
|
72
|
+
[1, 1.5],
|
|
73
|
+
];
|
|
74
|
+
const GLOW: Frames = [
|
|
75
|
+
[0, 0.3],
|
|
76
|
+
[0.03, 0.3],
|
|
77
|
+
[0.06, 1],
|
|
78
|
+
[0.12, 1],
|
|
79
|
+
[0.16, 0.3],
|
|
80
|
+
[1, 0.3],
|
|
81
|
+
];
|
|
82
|
+
const CONTROL_CENTER: Frames = [
|
|
83
|
+
[0, 0],
|
|
84
|
+
[0.02, 1],
|
|
85
|
+
[0.12, 1],
|
|
86
|
+
[0.15, 0],
|
|
87
|
+
[1, 0],
|
|
88
|
+
];
|
|
89
|
+
const TAP: Frames = [
|
|
90
|
+
[0, 0],
|
|
91
|
+
[0.03, 0],
|
|
92
|
+
[0.05, 1],
|
|
93
|
+
[0.11, 0],
|
|
94
|
+
[1, 0],
|
|
95
|
+
];
|
|
96
|
+
const TAP_SCALE: Frames = [
|
|
97
|
+
[0, 0.6],
|
|
98
|
+
[0.03, 0.6],
|
|
99
|
+
[0.05, 1],
|
|
100
|
+
[0.11, 1.5],
|
|
101
|
+
[1, 1.5],
|
|
102
|
+
];
|
|
103
|
+
const LISTEN: Frames = [
|
|
104
|
+
[0, 0],
|
|
105
|
+
[0.13, 0],
|
|
106
|
+
[0.17, 1],
|
|
107
|
+
[0.58, 1],
|
|
108
|
+
[0.62, 0],
|
|
109
|
+
[1, 0],
|
|
110
|
+
];
|
|
111
|
+
const LISTEN_SCALE: Frames = [
|
|
112
|
+
[0, 1.04],
|
|
113
|
+
[0.13, 1.04],
|
|
114
|
+
[0.17, 1],
|
|
115
|
+
[1, 1],
|
|
116
|
+
];
|
|
117
|
+
/** The cover over the words slides off them, so they arrive left to right. */
|
|
118
|
+
const TYPED: Frames = [
|
|
119
|
+
[0, 0],
|
|
120
|
+
[0.2, 0],
|
|
121
|
+
[0.48, BOX_W],
|
|
122
|
+
[1, BOX_W],
|
|
123
|
+
];
|
|
124
|
+
const ISLAND: Frames = [
|
|
125
|
+
[0, 0],
|
|
126
|
+
[0.62, 0],
|
|
127
|
+
[0.67, 1],
|
|
128
|
+
[0.94, 1],
|
|
129
|
+
[0.98, 0],
|
|
130
|
+
[1, 0],
|
|
131
|
+
];
|
|
132
|
+
const ISLAND_SCALE: Frames = [
|
|
133
|
+
[0, 0.45],
|
|
134
|
+
[0.62, 0.45],
|
|
135
|
+
[0.67, 1],
|
|
136
|
+
[0.94, 1],
|
|
137
|
+
[0.98, 0.45],
|
|
138
|
+
[1, 0.45],
|
|
139
|
+
];
|
|
140
|
+
|
|
141
|
+
export function TalkToLucyHero({ place, cue }: { place: TalkPlace; cue: string }) {
|
|
142
|
+
const reduced = useReducedMotion();
|
|
143
|
+
const t = useRef(new Animated.Value(0)).current;
|
|
144
|
+
const spin = useRef(new Animated.Value(0)).current;
|
|
145
|
+
const pulse = useRef(new Animated.Value(0)).current;
|
|
146
|
+
const controlCenter = place === 'control-center';
|
|
147
|
+
|
|
148
|
+
useEffect(() => {
|
|
149
|
+
if (reduced) return undefined;
|
|
150
|
+
const loops = [
|
|
151
|
+
Animated.loop(
|
|
152
|
+
Animated.timing(t, { toValue: 1, duration: LOOP_MS, easing: Easing.linear, useNativeDriver: true }),
|
|
153
|
+
),
|
|
154
|
+
Animated.loop(
|
|
155
|
+
Animated.timing(spin, { toValue: 1, duration: 1500, easing: Easing.linear, useNativeDriver: true }),
|
|
156
|
+
),
|
|
157
|
+
Animated.loop(
|
|
158
|
+
Animated.timing(pulse, {
|
|
159
|
+
toValue: 1,
|
|
160
|
+
duration: 1400,
|
|
161
|
+
easing: Easing.out(Easing.quad),
|
|
162
|
+
useNativeDriver: true,
|
|
163
|
+
}),
|
|
164
|
+
),
|
|
165
|
+
];
|
|
166
|
+
loops.forEach((loop) => loop.start());
|
|
167
|
+
return () => loops.forEach((loop) => loop.stop());
|
|
168
|
+
}, [reduced, t, spin, pulse]);
|
|
169
|
+
|
|
170
|
+
const still = reduced;
|
|
171
|
+
let listenOpacity: number | Animated.AnimatedInterpolation<number> = over(t, LISTEN);
|
|
172
|
+
if (still) listenOpacity = controlCenter ? 0 : 1;
|
|
173
|
+
|
|
174
|
+
return (
|
|
175
|
+
<View
|
|
176
|
+
style={s.hero}
|
|
177
|
+
pointerEvents="none"
|
|
178
|
+
accessibilityElementsHidden
|
|
179
|
+
importantForAccessibility="no-hide-descendants"
|
|
180
|
+
>
|
|
181
|
+
<View style={s.phone}>
|
|
182
|
+
{/* Its sides: from the front, the Action Button (or the ring switch) is top left. */}
|
|
183
|
+
{controlCenter ? (
|
|
184
|
+
<View style={[s.key, s.left, s.ringSwitch]} />
|
|
185
|
+
) : (
|
|
186
|
+
<>
|
|
187
|
+
<Animated.View style={[s.glow, { opacity: still ? 1 : over(t, GLOW) }]} />
|
|
188
|
+
<View style={[s.key, s.left, s.actionButton]} />
|
|
189
|
+
</>
|
|
190
|
+
)}
|
|
191
|
+
<View style={[s.key, s.left, s.volumeUp]} />
|
|
192
|
+
<View style={[s.key, s.left, s.volumeDown]} />
|
|
193
|
+
<View style={[s.key, s.right, s.side]} />
|
|
194
|
+
{controlCenter ? null : (
|
|
195
|
+
<Animated.View
|
|
196
|
+
style={[
|
|
197
|
+
s.ring,
|
|
198
|
+
{
|
|
199
|
+
opacity: still ? 1 : over(t, HOLD),
|
|
200
|
+
transform: [{ scale: still ? 1 : over(t, HOLD_SCALE) }],
|
|
201
|
+
},
|
|
202
|
+
]}
|
|
203
|
+
/>
|
|
204
|
+
)}
|
|
205
|
+
<Text style={[s.cue, controlCenter && s.cueTap]}>{cue}</Text>
|
|
206
|
+
|
|
207
|
+
<View style={s.screen}>
|
|
208
|
+
{/* The app you are in. */}
|
|
209
|
+
<View style={s.app}>
|
|
210
|
+
<View style={s.appBlock} />
|
|
211
|
+
<View style={[s.appBar, { width: '78%' }]} />
|
|
212
|
+
<View style={s.appBar} />
|
|
213
|
+
<View style={[s.appBar, { width: '90%' }]} />
|
|
214
|
+
<View style={[s.appBar, { width: '58%' }]} />
|
|
215
|
+
</View>
|
|
216
|
+
|
|
217
|
+
{controlCenter ? (
|
|
218
|
+
<Animated.View
|
|
219
|
+
style={[FILL, s.controlCenter, { opacity: still ? 1 : over(t, CONTROL_CENTER) }]}
|
|
220
|
+
>
|
|
221
|
+
<View style={s.controls}>
|
|
222
|
+
{Array.from({ length: 9 }, (_, i) =>
|
|
223
|
+
i === 0 ? (
|
|
224
|
+
<View key={i} style={[s.control, s.lucyControl]}>
|
|
225
|
+
<Mark size={20} />
|
|
226
|
+
</View>
|
|
227
|
+
) : (
|
|
228
|
+
<View key={i} style={s.control} />
|
|
229
|
+
),
|
|
230
|
+
)}
|
|
231
|
+
</View>
|
|
232
|
+
<Animated.View
|
|
233
|
+
style={[
|
|
234
|
+
s.tap,
|
|
235
|
+
{
|
|
236
|
+
opacity: still ? 1 : over(t, TAP),
|
|
237
|
+
transform: [{ scale: still ? 1 : over(t, TAP_SCALE) }],
|
|
238
|
+
},
|
|
239
|
+
]}
|
|
240
|
+
/>
|
|
241
|
+
</Animated.View>
|
|
242
|
+
) : null}
|
|
243
|
+
|
|
244
|
+
{/* Clockbook, listening: Home's big mic in miniature, the words arriving in its box. */}
|
|
245
|
+
<Animated.View
|
|
246
|
+
style={[
|
|
247
|
+
FILL,
|
|
248
|
+
s.listening,
|
|
249
|
+
{ opacity: listenOpacity, transform: [{ scale: still ? 1 : over(t, LISTEN_SCALE) }] },
|
|
250
|
+
]}
|
|
251
|
+
>
|
|
252
|
+
<View style={s.dial}>
|
|
253
|
+
<Svg width={DIAL} height={DIAL} style={StyleSheet.absoluteFill}>
|
|
254
|
+
{TICKS.map((tick) => (
|
|
255
|
+
<Line
|
|
256
|
+
key={tick.key}
|
|
257
|
+
x1={tick.x1}
|
|
258
|
+
y1={tick.y1}
|
|
259
|
+
x2={tick.x2}
|
|
260
|
+
y2={tick.y2}
|
|
261
|
+
stroke={tick.major ? 'rgba(26,23,20,0.38)' : 'rgba(26,23,20,0.16)'}
|
|
262
|
+
strokeWidth={tick.major ? 1.1 : 0.7}
|
|
263
|
+
strokeLinecap="round"
|
|
264
|
+
/>
|
|
265
|
+
))}
|
|
266
|
+
</Svg>
|
|
267
|
+
<Animated.View
|
|
268
|
+
style={[
|
|
269
|
+
FILL,
|
|
270
|
+
{
|
|
271
|
+
transform: [
|
|
272
|
+
{
|
|
273
|
+
rotate: still
|
|
274
|
+
? '48deg'
|
|
275
|
+
: spin.interpolate({
|
|
276
|
+
inputRange: [0, 1],
|
|
277
|
+
outputRange: ['0deg', '360deg'],
|
|
278
|
+
}),
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
]}
|
|
283
|
+
>
|
|
284
|
+
<View style={s.hand} />
|
|
285
|
+
</Animated.View>
|
|
286
|
+
<Animated.View
|
|
287
|
+
style={[
|
|
288
|
+
s.pulse,
|
|
289
|
+
{
|
|
290
|
+
opacity: still
|
|
291
|
+
? 0.2
|
|
292
|
+
: pulse.interpolate({ inputRange: [0, 1], outputRange: [0.4, 0] }),
|
|
293
|
+
transform: [
|
|
294
|
+
{
|
|
295
|
+
scale: still
|
|
296
|
+
? 1.25
|
|
297
|
+
: pulse.interpolate({ inputRange: [0, 1], outputRange: [1, 1.5] }),
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
},
|
|
301
|
+
]}
|
|
302
|
+
/>
|
|
303
|
+
<View style={s.sphere}>
|
|
304
|
+
<Svg width={SPHERE} height={SPHERE} style={StyleSheet.absoluteFill}>
|
|
305
|
+
<Defs>
|
|
306
|
+
<RadialGradient id="talkSphere" cx="38%" cy="30%" r="75%">
|
|
307
|
+
<Stop offset="0" stopColor="#FFB383" />
|
|
308
|
+
<Stop offset="0.45" stopColor="#FF6A1A" />
|
|
309
|
+
<Stop offset="1" stopColor="#D94600" />
|
|
310
|
+
</RadialGradient>
|
|
311
|
+
</Defs>
|
|
312
|
+
<Circle cx={SPHERE / 2} cy={SPHERE / 2} r={SPHERE / 2} fill="url(#talkSphere)" />
|
|
313
|
+
</Svg>
|
|
314
|
+
<View style={s.stop} />
|
|
315
|
+
</View>
|
|
316
|
+
</View>
|
|
317
|
+
<Text style={s.listeningLabel}>Listening…</Text>
|
|
318
|
+
<View style={s.box}>
|
|
319
|
+
<Text style={s.words} numberOfLines={1}>
|
|
320
|
+
{WORDS}
|
|
321
|
+
</Text>
|
|
322
|
+
{still ? null : (
|
|
323
|
+
<Animated.View
|
|
324
|
+
style={[FILL, s.cover, { transform: [{ translateX: over(t, TYPED) }] }]}
|
|
325
|
+
/>
|
|
326
|
+
)}
|
|
327
|
+
</View>
|
|
328
|
+
</Animated.View>
|
|
329
|
+
|
|
330
|
+
<View style={s.island} />
|
|
331
|
+
{/* Back where it was: Lucy's chore in the Dynamic Island. */}
|
|
332
|
+
<Animated.View
|
|
333
|
+
style={[
|
|
334
|
+
s.liveActivity,
|
|
335
|
+
{
|
|
336
|
+
opacity: still ? 0 : over(t, ISLAND),
|
|
337
|
+
transform: [{ scaleX: still ? 1 : over(t, ISLAND_SCALE) }],
|
|
338
|
+
},
|
|
339
|
+
]}
|
|
340
|
+
>
|
|
341
|
+
<Mark size={12} />
|
|
342
|
+
<Text style={s.liveTime}>0:04</Text>
|
|
343
|
+
</Animated.View>
|
|
344
|
+
</View>
|
|
345
|
+
</View>
|
|
346
|
+
|
|
347
|
+
{/* The phone runs off the foot of the picture into the sheet. */}
|
|
348
|
+
<Svg style={s.fade} width="100%" height={32}>
|
|
349
|
+
<Defs>
|
|
350
|
+
<LinearGradient id="talkFade" x1="0" y1="0" x2="0" y2="1">
|
|
351
|
+
<Stop offset="0" stopColor={ui.surface} stopOpacity={0} />
|
|
352
|
+
<Stop offset="1" stopColor={ui.surface} stopOpacity={1} />
|
|
353
|
+
</LinearGradient>
|
|
354
|
+
</Defs>
|
|
355
|
+
<Rect x="0" y="0" width="100%" height="32" fill="url(#talkFade)" />
|
|
356
|
+
</Svg>
|
|
357
|
+
</View>
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
const s = StyleSheet.create({
|
|
362
|
+
hero: { height: HEIGHT, overflow: 'hidden', alignItems: 'center' },
|
|
363
|
+
phone: {
|
|
364
|
+
marginTop: 6,
|
|
365
|
+
width: PHONE_W,
|
|
366
|
+
height: PHONE_H,
|
|
367
|
+
borderWidth: BEZEL,
|
|
368
|
+
borderColor: 'rgba(26,23,20,0.88)',
|
|
369
|
+
borderRadius: 38,
|
|
370
|
+
backgroundColor: ui.bg,
|
|
371
|
+
shadowColor: '#301C08',
|
|
372
|
+
shadowOpacity: 0.25,
|
|
373
|
+
shadowRadius: 24,
|
|
374
|
+
shadowOffset: { width: 0, height: 18 },
|
|
375
|
+
},
|
|
376
|
+
key: { position: 'absolute', width: 4, backgroundColor: 'rgba(26,23,20,0.24)' },
|
|
377
|
+
left: { left: -10, borderTopLeftRadius: 3, borderBottomLeftRadius: 3 },
|
|
378
|
+
right: { right: -10, borderTopRightRadius: 3, borderBottomRightRadius: 3 },
|
|
379
|
+
actionButton: { top: 50, height: 20, backgroundColor: ui.accent },
|
|
380
|
+
glow: {
|
|
381
|
+
position: 'absolute',
|
|
382
|
+
left: -13,
|
|
383
|
+
top: 46,
|
|
384
|
+
width: 10,
|
|
385
|
+
height: 28,
|
|
386
|
+
borderRadius: 5,
|
|
387
|
+
backgroundColor: 'rgba(255,90,0,0.35)',
|
|
388
|
+
},
|
|
389
|
+
ringSwitch: { top: 52, height: 14 },
|
|
390
|
+
volumeUp: { top: 84, height: 30 },
|
|
391
|
+
volumeDown: { top: 122, height: 30 },
|
|
392
|
+
side: { top: 96, height: 46 },
|
|
393
|
+
ring: {
|
|
394
|
+
position: 'absolute',
|
|
395
|
+
left: -22,
|
|
396
|
+
top: 46,
|
|
397
|
+
width: 28,
|
|
398
|
+
height: 28,
|
|
399
|
+
borderRadius: 14,
|
|
400
|
+
borderWidth: 2,
|
|
401
|
+
borderColor: ui.accent,
|
|
402
|
+
},
|
|
403
|
+
cue: {
|
|
404
|
+
position: 'absolute',
|
|
405
|
+
right: SCREEN_W + 30,
|
|
406
|
+
top: 53,
|
|
407
|
+
fontSize: 10.5,
|
|
408
|
+
lineHeight: 14,
|
|
409
|
+
fontWeight: '600',
|
|
410
|
+
letterSpacing: 1.5,
|
|
411
|
+
textTransform: 'uppercase',
|
|
412
|
+
color: ui.accentText,
|
|
413
|
+
},
|
|
414
|
+
cueTap: { top: 51 },
|
|
415
|
+
screen: { ...FILL, borderRadius: 32, overflow: 'hidden' },
|
|
416
|
+
app: { position: 'absolute', left: 12, right: 12, top: 34, gap: 7 },
|
|
417
|
+
appBlock: { height: 66, borderRadius: 13, backgroundColor: 'rgba(26,23,20,0.06)' },
|
|
418
|
+
appBar: { height: 8, borderRadius: 4, backgroundColor: 'rgba(26,23,20,0.07)' },
|
|
419
|
+
controlCenter: { backgroundColor: 'rgba(43,38,34,0.86)' },
|
|
420
|
+
controls: {
|
|
421
|
+
position: 'absolute',
|
|
422
|
+
left: 20,
|
|
423
|
+
right: 20,
|
|
424
|
+
top: 40,
|
|
425
|
+
flexDirection: 'row',
|
|
426
|
+
flexWrap: 'wrap',
|
|
427
|
+
columnGap: 18,
|
|
428
|
+
rowGap: 14,
|
|
429
|
+
},
|
|
430
|
+
control: { width: 36, height: 36, borderRadius: 18, backgroundColor: 'rgba(255,255,255,0.16)' },
|
|
431
|
+
lucyControl: {
|
|
432
|
+
backgroundColor: '#FFFFFF',
|
|
433
|
+
borderWidth: 2,
|
|
434
|
+
borderColor: 'rgba(255,138,61,0.9)',
|
|
435
|
+
alignItems: 'center',
|
|
436
|
+
justifyContent: 'center',
|
|
437
|
+
},
|
|
438
|
+
tap: {
|
|
439
|
+
position: 'absolute',
|
|
440
|
+
left: 16,
|
|
441
|
+
top: 36,
|
|
442
|
+
width: 44,
|
|
443
|
+
height: 44,
|
|
444
|
+
borderRadius: 22,
|
|
445
|
+
borderWidth: 2,
|
|
446
|
+
borderColor: ORANGE_ON_INK,
|
|
447
|
+
},
|
|
448
|
+
listening: { backgroundColor: ui.bg },
|
|
449
|
+
dial: {
|
|
450
|
+
position: 'absolute',
|
|
451
|
+
top: 32,
|
|
452
|
+
left: (SCREEN_W - DIAL) / 2,
|
|
453
|
+
width: DIAL,
|
|
454
|
+
height: DIAL,
|
|
455
|
+
alignItems: 'center',
|
|
456
|
+
justifyContent: 'center',
|
|
457
|
+
},
|
|
458
|
+
hand: {
|
|
459
|
+
position: 'absolute',
|
|
460
|
+
top: 1,
|
|
461
|
+
left: DIAL / 2 - 0.8,
|
|
462
|
+
width: 1.6,
|
|
463
|
+
height: 7,
|
|
464
|
+
borderRadius: 1,
|
|
465
|
+
backgroundColor: ui.accent,
|
|
466
|
+
},
|
|
467
|
+
pulse: {
|
|
468
|
+
position: 'absolute',
|
|
469
|
+
top: (DIAL - SPHERE) / 2,
|
|
470
|
+
left: (DIAL - SPHERE) / 2,
|
|
471
|
+
width: SPHERE,
|
|
472
|
+
height: SPHERE,
|
|
473
|
+
borderRadius: SPHERE / 2,
|
|
474
|
+
backgroundColor: ui.accent,
|
|
475
|
+
},
|
|
476
|
+
sphere: {
|
|
477
|
+
width: SPHERE,
|
|
478
|
+
height: SPHERE,
|
|
479
|
+
borderRadius: SPHERE / 2,
|
|
480
|
+
alignItems: 'center',
|
|
481
|
+
justifyContent: 'center',
|
|
482
|
+
shadowColor: ui.accent,
|
|
483
|
+
shadowOpacity: 0.35,
|
|
484
|
+
shadowRadius: 6,
|
|
485
|
+
shadowOffset: { width: 0, height: 4 },
|
|
486
|
+
},
|
|
487
|
+
stop: { width: 11, height: 11, borderRadius: 2.5, backgroundColor: '#FFFFFF' },
|
|
488
|
+
listeningLabel: {
|
|
489
|
+
position: 'absolute',
|
|
490
|
+
top: 126,
|
|
491
|
+
left: 0,
|
|
492
|
+
right: 0,
|
|
493
|
+
textAlign: 'center',
|
|
494
|
+
fontSize: 9.5,
|
|
495
|
+
lineHeight: 12,
|
|
496
|
+
fontWeight: '600',
|
|
497
|
+
color: ui.accentText,
|
|
498
|
+
},
|
|
499
|
+
box: {
|
|
500
|
+
position: 'absolute',
|
|
501
|
+
top: 144,
|
|
502
|
+
left: 12,
|
|
503
|
+
right: 12,
|
|
504
|
+
height: 34,
|
|
505
|
+
paddingVertical: 6,
|
|
506
|
+
paddingHorizontal: 8,
|
|
507
|
+
borderRadius: 12,
|
|
508
|
+
backgroundColor: '#FFF6F0',
|
|
509
|
+
borderWidth: 1,
|
|
510
|
+
borderColor: 'rgba(255,90,0,0.35)',
|
|
511
|
+
overflow: 'hidden',
|
|
512
|
+
},
|
|
513
|
+
words: { fontSize: 9, lineHeight: 12, color: ui.ink },
|
|
514
|
+
cover: { backgroundColor: '#FFF6F0' },
|
|
515
|
+
island: {
|
|
516
|
+
position: 'absolute',
|
|
517
|
+
top: 7,
|
|
518
|
+
left: (SCREEN_W - 58) / 2,
|
|
519
|
+
width: 58,
|
|
520
|
+
height: 17,
|
|
521
|
+
borderRadius: 9,
|
|
522
|
+
backgroundColor: '#000000',
|
|
523
|
+
},
|
|
524
|
+
liveActivity: {
|
|
525
|
+
position: 'absolute',
|
|
526
|
+
top: 7,
|
|
527
|
+
left: (SCREEN_W - 128) / 2,
|
|
528
|
+
width: 128,
|
|
529
|
+
height: 17,
|
|
530
|
+
borderRadius: 9,
|
|
531
|
+
backgroundColor: '#000000',
|
|
532
|
+
flexDirection: 'row',
|
|
533
|
+
alignItems: 'center',
|
|
534
|
+
justifyContent: 'space-between',
|
|
535
|
+
paddingLeft: 3,
|
|
536
|
+
paddingRight: 7,
|
|
537
|
+
},
|
|
538
|
+
liveTime: { fontSize: 7.5, fontWeight: '600', color: ORANGE_ON_INK, fontVariant: ['tabular-nums'] },
|
|
539
|
+
fade: { position: 'absolute', left: 0, right: 0, bottom: 0 },
|
|
540
|
+
});
|