@adminide-stack/clock-tik-browser 12.0.31 → 12.0.32
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/lib/pages/Home/HomePage.d.ts.map +1 -1
- package/lib/pages/Home/HomePage.js +186 -330
- package/lib/pages/Home/HomePage.js.map +1 -1
- package/lib/pages/Home/__tests__/failure.test.d.ts +2 -0
- package/lib/pages/Home/__tests__/failure.test.d.ts.map +1 -0
- package/lib/pages/Home/__tests__/timeBack.test.d.ts +2 -0
- package/lib/pages/Home/__tests__/timeBack.test.d.ts.map +1 -0
- package/lib/pages/Home/chat/ChoresChat.d.ts.map +1 -1
- package/lib/pages/Home/chat/ChoresChat.js +117 -23
- package/lib/pages/Home/chat/ChoresChat.js.map +1 -1
- package/lib/pages/Home/chat/chatTheme.d.ts.map +1 -1
- package/lib/pages/Home/chat/chatTheme.js +98 -2
- package/lib/pages/Home/chat/chatTheme.js.map +1 -1
- package/lib/pages/Home/chat/failure.d.ts +8 -0
- package/lib/pages/Home/chat/failure.d.ts.map +1 -0
- package/lib/pages/Home/chat/failure.js +24 -0
- package/lib/pages/Home/chat/failure.js.map +1 -0
- package/lib/pages/Home/content.d.ts +11 -18
- package/lib/pages/Home/content.d.ts.map +1 -1
- package/lib/pages/Home/content.js +12 -33
- package/lib/pages/Home/content.js.map +1 -1
- package/lib/pages/Home/homeStyles.d.ts.map +1 -1
- package/lib/pages/Home/homeStyles.js +170 -428
- package/lib/pages/Home/homeStyles.js.map +1 -1
- package/lib/pages/Home/timeBack.d.ts +10 -0
- package/lib/pages/Home/timeBack.d.ts.map +1 -0
- package/lib/pages/Home/timeBack.js +12 -0
- package/lib/pages/Home/timeBack.js.map +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../../src/pages/Home/HomePage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../../src/pages/Home/HomePage.tsx"],"names":[],"mappings":"AAw+BA,MAAM,CAAC,OAAO,UAAU,QAAQ,gCAqmB/B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useRef,useState,useCallback,useEffect,Suspense,lazy}from'react';import {createPortal}from'react-dom';import {
|
|
1
|
+
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useRef,useState,useCallback,useEffect,Suspense,lazy}from'react';import {createPortal}from'react-dom';import {ArrowUpRight,ShieldCheck,PhoneCall,Plane,Wrench,Users,ShoppingCart,RefreshCcw,Receipt,Plus,Briefcase,ArrowUp,PackageOpen,Landmark,Smile,UtensilsCrossed,CalendarClock,ArrowRight,Check,Play,X}from'lucide-react';import {canLogin,beginLogin,captureLoginCallback,reconcileStoredToken,clearCdecliToken,getCdecliToken,hasCdecliToken,tokenExpiringSoon}from'@yantra/surface-kit/auth';import {businessHref}from'./business.js';import {ensurePlatformAnchor,appChatLink,appTextingLink,yantraAppUrl}from'./platform.js';import {HOME_ASSETS}from'./assets.js';import {HomeStyles}from'./homeStyles.js';import {savePendingImessage,savePendingChore,takePendingChore,takePendingImessage,accountKeyFromToken}from'./chat/thread.js';import {MINUTES,TYPED_CHORES,HERO_CHORES,STRIP_CHORES,STEPS,VIDEO_NOTE,TEXT_STEPS,AREAS,HOUSEWORK_MIN,FAQS,FOOTNOTE,CALL_STEPS,TEXT_THREAD,SITE_LINKS}from'./content.js';import {ImessageIcon}from'./imessage/ImessageIcon.js';import {clearTextLinkCodes}from'./imessage/textLink.js';import {Mark,AnimatedMark}from'./Logo.js';import {timeBack}from'./timeBack.js';import {emitAnalyticsEvent}from'../../utils/analytics.js';const AREA_ICONS = {
|
|
2
2
|
bills: Receipt,
|
|
3
3
|
subscriptions: RefreshCcw,
|
|
4
4
|
groceries: ShoppingCart,
|
|
@@ -16,12 +16,6 @@ const CHORE_ICONS = {
|
|
|
16
16
|
bank: Landmark,
|
|
17
17
|
return: PackageOpen
|
|
18
18
|
};
|
|
19
|
-
const BUSINESS_ICONS = {
|
|
20
|
-
time: Timer,
|
|
21
|
-
hr: Users,
|
|
22
|
-
books: BookOpen,
|
|
23
|
-
workflows: Workflow
|
|
24
|
-
};
|
|
25
19
|
const REELS = [{
|
|
26
20
|
src: HOME_ASSETS.reelInternet,
|
|
27
21
|
poster: HOME_ASSETS.reelInternetPoster,
|
|
@@ -38,7 +32,7 @@ const REELS = [{
|
|
|
38
32
|
const STATS = [{
|
|
39
33
|
to: 38,
|
|
40
34
|
unit: 'min',
|
|
41
|
-
label: '
|
|
35
|
+
label: 'every day'
|
|
42
36
|
}, {
|
|
43
37
|
to: 4.4,
|
|
44
38
|
decimals: 1,
|
|
@@ -716,187 +710,97 @@ function PhoneThread() {
|
|
|
716
710
|
})
|
|
717
711
|
});
|
|
718
712
|
}
|
|
719
|
-
|
|
720
|
-
const
|
|
721
|
-
/** This week's hours, Monday to Friday; Thursday is today, still running. */
|
|
722
|
-
const WEEK_HOURS = [['Mon', 7.5], ['Tue', 8.2], ['Wed', 6.4], ['Thu', 4.6], ['Fri', 0]];
|
|
723
|
-
const WEEK_TODAY = 3;
|
|
724
|
-
function TimePreview() {
|
|
725
|
-
const ref = useRef(null);
|
|
726
|
-
const motion = useMotion();
|
|
727
|
-
const inView = useInView(ref);
|
|
728
|
-
const [seconds, setSeconds] = useState(TIMER_START_S);
|
|
729
|
-
useEffect(() => {
|
|
730
|
-
if (!motion || !inView) return undefined;
|
|
731
|
-
const timer = window.setInterval(() => setSeconds(s => s + 1), 1000);
|
|
732
|
-
return () => window.clearInterval(timer);
|
|
733
|
-
}, [motion, inView]);
|
|
734
|
-
const pad = n => String(n).padStart(2, '0');
|
|
735
|
-
const clock = `${pad(Math.floor(seconds / 3600))}:${pad(Math.floor(seconds / 60) % 60)}:${pad(seconds % 60)}`;
|
|
736
|
-
return jsxs("div", {
|
|
737
|
-
ref: ref,
|
|
738
|
-
className: "cbh-biz-ui",
|
|
739
|
-
"aria-hidden": true,
|
|
740
|
-
children: [jsxs("div", {
|
|
741
|
-
className: "cbh-biz-timer",
|
|
742
|
-
children: [jsx("span", {
|
|
743
|
-
className: "cbh-biz-rec"
|
|
744
|
-
}), jsx("span", {
|
|
745
|
-
className: "cbh-biz-timer-name",
|
|
746
|
-
children: "Website redesign"
|
|
747
|
-
}), jsx("b", {
|
|
748
|
-
children: clock
|
|
749
|
-
}), jsx("span", {
|
|
750
|
-
className: "cbh-biz-stop",
|
|
751
|
-
children: jsx(Square, {
|
|
752
|
-
size: 8,
|
|
753
|
-
fill: "currentColor",
|
|
754
|
-
strokeWidth: 0
|
|
755
|
-
})
|
|
756
|
-
})]
|
|
757
|
-
}), jsx("div", {
|
|
758
|
-
className: "cbh-biz-week",
|
|
759
|
-
children: WEEK_HOURS.map(([day, hours], i) => jsxs("span", {
|
|
760
|
-
"data-today": i === WEEK_TODAY || undefined,
|
|
761
|
-
children: [jsx("b", {
|
|
762
|
-
children: jsx("i", {
|
|
763
|
-
style: {
|
|
764
|
-
'--h': hours / 9,
|
|
765
|
-
'--cbh-i': i
|
|
766
|
-
}
|
|
767
|
-
})
|
|
768
|
-
}), day]
|
|
769
|
-
}, day))
|
|
770
|
-
})]
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
function PeoplePreview() {
|
|
774
|
-
return jsxs("div", {
|
|
775
|
-
className: "cbh-biz-ui",
|
|
776
|
-
"aria-hidden": true,
|
|
777
|
-
children: [jsxs("div", {
|
|
778
|
-
className: "cbh-biz-person",
|
|
779
|
-
children: [jsx("span", {
|
|
780
|
-
className: "cbh-biz-avatar",
|
|
781
|
-
children: "PS"
|
|
782
|
-
}), jsxs("span", {
|
|
783
|
-
children: [jsx("b", {
|
|
784
|
-
children: "Priya S. \u00B7 Time off"
|
|
785
|
-
}), jsx("small", {
|
|
786
|
-
children: "Apr 14 \u2013 16 \u00B7 3 days"
|
|
787
|
-
})]
|
|
788
|
-
})]
|
|
789
|
-
}), jsxs("div", {
|
|
790
|
-
className: "cbh-biz-actions",
|
|
791
|
-
children: [jsx("span", {
|
|
792
|
-
className: "cbh-biz-btn",
|
|
793
|
-
children: "Decline"
|
|
794
|
-
}), jsxs("span", {
|
|
795
|
-
className: "cbh-biz-btn cbh-biz-btn-ink",
|
|
796
|
-
children: [jsx(Check, {
|
|
797
|
-
size: 12,
|
|
798
|
-
strokeWidth: 3
|
|
799
|
-
}), "Approve"]
|
|
800
|
-
})]
|
|
801
|
-
}), jsxs("p", {
|
|
802
|
-
className: "cbh-biz-hint",
|
|
803
|
-
children: [jsx(Sparkles, {
|
|
804
|
-
size: 12
|
|
805
|
-
}), "You usually approve these"]
|
|
806
|
-
})]
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
const LEDGER = [['Harbor Studio', 'INV-1042', '$2,480', 'Paid', 'ok'], ['Fernwood Co.', 'INV-1043', '$960', 'Due Friday', 'due'], ['Payroll', 'October', '$18,240', 'Scheduled', 'info']];
|
|
810
|
-
function BooksPreview() {
|
|
811
|
-
return jsx("div", {
|
|
812
|
-
className: "cbh-biz-ui cbh-biz-ledger",
|
|
813
|
-
"aria-hidden": true,
|
|
814
|
-
children: LEDGER.map(([who, ref, amount, status, tone]) => jsxs("div", {
|
|
815
|
-
className: "cbh-biz-line",
|
|
816
|
-
children: [jsxs("span", {
|
|
817
|
-
children: [jsx("b", {
|
|
818
|
-
children: who
|
|
819
|
-
}), jsx("small", {
|
|
820
|
-
children: ref
|
|
821
|
-
})]
|
|
822
|
-
}), jsxs("span", {
|
|
823
|
-
children: [jsx("b", {
|
|
824
|
-
children: amount
|
|
825
|
-
}), jsx("em", {
|
|
826
|
-
className: "cbh-biz-pill",
|
|
827
|
-
"data-tone": tone,
|
|
828
|
-
children: status
|
|
829
|
-
})]
|
|
830
|
-
})]
|
|
831
|
-
}, ref))
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
const FLOW = [['New hire', UserPlus], ['Create accounts', KeyRound], ['Sign-off', ShieldCheck, 'Needs you']];
|
|
835
|
-
function WorkflowPreview() {
|
|
836
|
-
return jsx("div", {
|
|
837
|
-
className: "cbh-biz-ui cbh-biz-flow",
|
|
838
|
-
"aria-hidden": true,
|
|
839
|
-
children: FLOW.map(([label, Icon, flag], i) => jsxs("div", {
|
|
840
|
-
className: "cbh-biz-node",
|
|
841
|
-
style: {
|
|
842
|
-
'--cbh-i': i
|
|
843
|
-
},
|
|
844
|
-
children: [jsx("span", {
|
|
845
|
-
className: "cbh-biz-node-icon",
|
|
846
|
-
children: jsx(Icon, {
|
|
847
|
-
size: 13
|
|
848
|
-
})
|
|
849
|
-
}), jsx("span", {
|
|
850
|
-
children: label
|
|
851
|
-
}), flag ? jsx("em", {
|
|
852
|
-
children: flag
|
|
853
|
-
}) : null]
|
|
854
|
-
}, label))
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
const BUSINESS_PREVIEWS = {
|
|
858
|
-
time: TimePreview,
|
|
859
|
-
hr: PeoplePreview,
|
|
860
|
-
books: BooksPreview,
|
|
861
|
-
workflows: WorkflowPreview
|
|
862
|
-
};
|
|
713
|
+
const MINUTES_MAX = Math.max(...MINUTES.map(m => m.min));
|
|
714
|
+
const MINUTES_ALL = MINUTES.map(m => m.label);
|
|
863
715
|
/**
|
|
864
|
-
*
|
|
865
|
-
*
|
|
866
|
-
*
|
|
716
|
+
* Where the minutes come from, as chores to pick: all of them are handed over to start with (the
|
|
717
|
+
* page the server draws), and taking one back shows what the rest still give back. Housework is
|
|
718
|
+
* not a pick: Clockbook can't do it.
|
|
867
719
|
*/
|
|
868
|
-
function
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
"
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
720
|
+
function MinutesPicker() {
|
|
721
|
+
const [picked, setPicked] = useState(() => new Set(MINUTES_ALL));
|
|
722
|
+
const total = MINUTES.reduce((sum, m) => picked.has(m.label) ? sum + m.min : sum, 0);
|
|
723
|
+
const {
|
|
724
|
+
year
|
|
725
|
+
} = timeBack(total);
|
|
726
|
+
const toggle = label => setPicked(prev => {
|
|
727
|
+
const next = new Set(prev);
|
|
728
|
+
if (!next.delete(label)) next.add(label);
|
|
729
|
+
return next;
|
|
730
|
+
});
|
|
731
|
+
return jsxs(Fragment, {
|
|
732
|
+
children: [jsx("p", {
|
|
733
|
+
className: "cbh-minutes-hint",
|
|
734
|
+
children: "Tap to pick what you\u2019d hand over."
|
|
735
|
+
}), jsxs("ul", {
|
|
736
|
+
className: "cbh-minutes",
|
|
737
|
+
children: [MINUTES.map((m, i) => jsx("li", {
|
|
738
|
+
children: jsxs("button", {
|
|
739
|
+
type: "button",
|
|
740
|
+
className: "cbh-minutes-row",
|
|
741
|
+
"aria-pressed": picked.has(m.label),
|
|
742
|
+
"data-track": "minutes_pick",
|
|
743
|
+
"data-track-item": m.label,
|
|
744
|
+
onClick: () => toggle(m.label),
|
|
745
|
+
children: [jsx("span", {
|
|
746
|
+
className: "cbh-sw",
|
|
747
|
+
style: {
|
|
748
|
+
background: m.color
|
|
749
|
+
},
|
|
750
|
+
"aria-hidden": true
|
|
751
|
+
}), jsx("span", {
|
|
752
|
+
className: "cbh-minutes-label",
|
|
753
|
+
children: m.label
|
|
754
|
+
}), jsx("span", {
|
|
755
|
+
className: "cbh-minutes-bar",
|
|
756
|
+
"aria-hidden": true,
|
|
757
|
+
children: jsx("i", {
|
|
758
|
+
style: {
|
|
759
|
+
width: `${m.min / MINUTES_MAX * 100}%`,
|
|
760
|
+
'--cbh-i': i
|
|
761
|
+
}
|
|
762
|
+
})
|
|
763
|
+
}), jsxs("b", {
|
|
764
|
+
children: [m.min, " min"]
|
|
765
|
+
}), jsx("span", {
|
|
766
|
+
className: "cbh-minutes-check",
|
|
767
|
+
"aria-hidden": true,
|
|
768
|
+
children: jsx(Check, {
|
|
769
|
+
size: 12,
|
|
770
|
+
strokeWidth: 3.2
|
|
771
|
+
})
|
|
772
|
+
})]
|
|
773
|
+
})
|
|
774
|
+
}, m.label)), jsx("li", {
|
|
775
|
+
className: "cbh-minutes-none",
|
|
776
|
+
children: jsxs("span", {
|
|
777
|
+
className: "cbh-minutes-row",
|
|
778
|
+
children: [jsx("span", {
|
|
779
|
+
className: "cbh-sw",
|
|
780
|
+
"aria-hidden": true
|
|
781
|
+
}), jsx("span", {
|
|
782
|
+
className: "cbh-minutes-label",
|
|
783
|
+
children: "Housework"
|
|
784
|
+
}), jsx("span", {
|
|
785
|
+
className: "cbh-minutes-bar",
|
|
786
|
+
"aria-hidden": true
|
|
787
|
+
}), jsx("b", {
|
|
788
|
+
children: "0 min"
|
|
789
|
+
})]
|
|
790
|
+
})
|
|
899
791
|
})]
|
|
792
|
+
}), jsx("p", {
|
|
793
|
+
className: "cbh-minutes-total",
|
|
794
|
+
"aria-live": "polite",
|
|
795
|
+
children: total ? jsxs(Fragment, {
|
|
796
|
+
children: [picked.size === MINUTES.length ? 'All of it' : 'Your pick', ": ", jsxs("b", {
|
|
797
|
+
children: [total, " min"]
|
|
798
|
+
}), " a day, about", ' ', jsxs("b", {
|
|
799
|
+
children: [year, " hours"]
|
|
800
|
+
}), " a year.", jsx("sup", {
|
|
801
|
+
children: "1"
|
|
802
|
+
})]
|
|
803
|
+
}) : 'Pick a chore to see the time it gives back.'
|
|
900
804
|
})]
|
|
901
805
|
});
|
|
902
806
|
}
|
|
@@ -1223,6 +1127,9 @@ function HomePage() {
|
|
|
1223
1127
|
className: "cbh-links",
|
|
1224
1128
|
"aria-label": "Sections",
|
|
1225
1129
|
children: [jsx("a", {
|
|
1130
|
+
href: "#how",
|
|
1131
|
+
children: "How it works"
|
|
1132
|
+
}), jsx("a", {
|
|
1226
1133
|
href: "#calls",
|
|
1227
1134
|
children: "Lucy calls"
|
|
1228
1135
|
}), jsx("a", {
|
|
@@ -1231,16 +1138,14 @@ function HomePage() {
|
|
|
1231
1138
|
}), jsx("a", {
|
|
1232
1139
|
href: "#areas",
|
|
1233
1140
|
children: "What it handles"
|
|
1234
|
-
}), jsx("a", {
|
|
1235
|
-
href: "#how",
|
|
1236
|
-
children: "How it works"
|
|
1237
1141
|
}), jsxs("a", {
|
|
1238
|
-
href:
|
|
1142
|
+
href: yantraAppUrl(),
|
|
1239
1143
|
className: "cbh-link-biz",
|
|
1240
|
-
|
|
1144
|
+
"data-track": "business_yantra",
|
|
1145
|
+
children: ["For business ", jsx(ArrowUpRight, {
|
|
1241
1146
|
size: 15,
|
|
1242
1147
|
"aria-hidden": true
|
|
1243
|
-
})
|
|
1148
|
+
})]
|
|
1244
1149
|
})]
|
|
1245
1150
|
}), jsxs("div", {
|
|
1246
1151
|
className: "cbh-nav-cta",
|
|
@@ -1277,7 +1182,7 @@ function HomePage() {
|
|
|
1277
1182
|
})
|
|
1278
1183
|
}), jsx("p", {
|
|
1279
1184
|
className: "cbh-eyebrow cbh-rise cbh-d1",
|
|
1280
|
-
children: "For
|
|
1185
|
+
children: "For everyone with a to-do list"
|
|
1281
1186
|
}), jsxs("h1", {
|
|
1282
1187
|
className: "cbh-rise cbh-d2",
|
|
1283
1188
|
children: ["Get your evenings ", jsx("em", {
|
|
@@ -1334,6 +1239,39 @@ function HomePage() {
|
|
|
1334
1239
|
onChore: handOverChip('strip'),
|
|
1335
1240
|
reverse: true
|
|
1336
1241
|
})]
|
|
1242
|
+
}), jsx("section", {
|
|
1243
|
+
className: "cbh-section cbh-how-section",
|
|
1244
|
+
id: "how",
|
|
1245
|
+
children: jsxs("div", {
|
|
1246
|
+
className: "cbh-wrap",
|
|
1247
|
+
children: [jsxs("div", {
|
|
1248
|
+
className: "cbh-head cbh-head-center cbh-reveal",
|
|
1249
|
+
children: [jsx("p", {
|
|
1250
|
+
className: "cbh-eyebrow",
|
|
1251
|
+
children: "How it works"
|
|
1252
|
+
}), jsxs("h2", {
|
|
1253
|
+
children: ["Text it. It gets ", jsx("em", {
|
|
1254
|
+
children: "done."
|
|
1255
|
+
})]
|
|
1256
|
+
})]
|
|
1257
|
+
}), jsx("ol", {
|
|
1258
|
+
className: "cbh-steps cbh-reveal",
|
|
1259
|
+
children: STEPS.map((s, i) => jsxs("li", {
|
|
1260
|
+
className: "cbh-step",
|
|
1261
|
+
children: [jsx("span", {
|
|
1262
|
+
className: "cbh-step-n",
|
|
1263
|
+
"aria-hidden": true,
|
|
1264
|
+
children: i + 1
|
|
1265
|
+
}), jsxs("div", {
|
|
1266
|
+
children: [jsx("h3", {
|
|
1267
|
+
children: s.title
|
|
1268
|
+
}), jsx("p", {
|
|
1269
|
+
children: s.body
|
|
1270
|
+
})]
|
|
1271
|
+
})]
|
|
1272
|
+
}, s.title))
|
|
1273
|
+
})]
|
|
1274
|
+
})
|
|
1337
1275
|
}), jsx("section", {
|
|
1338
1276
|
className: "cbh-section cbh-time-section",
|
|
1339
1277
|
"aria-labelledby": "cbh-time-title",
|
|
@@ -1551,46 +1489,7 @@ function HomePage() {
|
|
|
1551
1489
|
}), " chore by ", jsx("em", {
|
|
1552
1490
|
children: "chore."
|
|
1553
1491
|
})]
|
|
1554
|
-
}), jsxs("
|
|
1555
|
-
className: "cbh-minutes",
|
|
1556
|
-
children: [MINUTES.map((m, i) => jsxs("li", {
|
|
1557
|
-
children: [jsx("span", {
|
|
1558
|
-
className: "cbh-sw",
|
|
1559
|
-
style: {
|
|
1560
|
-
background: m.color
|
|
1561
|
-
},
|
|
1562
|
-
"aria-hidden": true
|
|
1563
|
-
}), jsx("span", {
|
|
1564
|
-
className: "cbh-minutes-label",
|
|
1565
|
-
children: m.label
|
|
1566
|
-
}), jsx("span", {
|
|
1567
|
-
className: "cbh-minutes-bar",
|
|
1568
|
-
"aria-hidden": true,
|
|
1569
|
-
children: jsx("i", {
|
|
1570
|
-
style: {
|
|
1571
|
-
width: `${m.min / 17 * 100}%`,
|
|
1572
|
-
'--cbh-i': i
|
|
1573
|
-
}
|
|
1574
|
-
})
|
|
1575
|
-
}), jsxs("b", {
|
|
1576
|
-
children: [m.min, " min"]
|
|
1577
|
-
})]
|
|
1578
|
-
}, m.label)), jsxs("li", {
|
|
1579
|
-
className: "cbh-minutes-none",
|
|
1580
|
-
children: [jsx("span", {
|
|
1581
|
-
className: "cbh-sw",
|
|
1582
|
-
"aria-hidden": true
|
|
1583
|
-
}), jsx("span", {
|
|
1584
|
-
className: "cbh-minutes-label",
|
|
1585
|
-
children: "Housework"
|
|
1586
|
-
}), jsx("span", {
|
|
1587
|
-
className: "cbh-minutes-bar",
|
|
1588
|
-
"aria-hidden": true
|
|
1589
|
-
}), jsx("b", {
|
|
1590
|
-
children: "0 min"
|
|
1591
|
-
})]
|
|
1592
|
-
})]
|
|
1593
|
-
}), jsxs("p", {
|
|
1492
|
+
}), jsx(MinutesPicker, {}), jsxs("p", {
|
|
1594
1493
|
className: "cbh-body cbh-small",
|
|
1595
1494
|
children: ["Clockbook can't fold the laundry. The ", HOUSEWORK_MIN, " minutes a day of cleaning and washing stay yours; the rest you can hand over.", jsx("sup", {
|
|
1596
1495
|
children: "1"
|
|
@@ -1600,92 +1499,6 @@ function HomePage() {
|
|
|
1600
1499
|
})
|
|
1601
1500
|
}), jsx("section", {
|
|
1602
1501
|
className: "cbh-section",
|
|
1603
|
-
id: "how",
|
|
1604
|
-
children: jsxs("div", {
|
|
1605
|
-
className: "cbh-wrap",
|
|
1606
|
-
children: [jsxs("div", {
|
|
1607
|
-
className: "cbh-head cbh-head-center cbh-reveal",
|
|
1608
|
-
children: [jsx("p", {
|
|
1609
|
-
className: "cbh-eyebrow",
|
|
1610
|
-
children: "How it works"
|
|
1611
|
-
}), jsxs("h2", {
|
|
1612
|
-
children: ["Text it. It gets ", jsx("em", {
|
|
1613
|
-
children: "done."
|
|
1614
|
-
})]
|
|
1615
|
-
})]
|
|
1616
|
-
}), jsx("ol", {
|
|
1617
|
-
className: "cbh-steps cbh-reveal",
|
|
1618
|
-
children: STEPS.map((s, i) => jsxs("li", {
|
|
1619
|
-
className: "cbh-step",
|
|
1620
|
-
children: [jsx("span", {
|
|
1621
|
-
className: "cbh-step-n",
|
|
1622
|
-
"aria-hidden": true,
|
|
1623
|
-
children: i + 1
|
|
1624
|
-
}), jsxs("div", {
|
|
1625
|
-
children: [jsx("h3", {
|
|
1626
|
-
children: s.title
|
|
1627
|
-
}), jsx("p", {
|
|
1628
|
-
children: s.body
|
|
1629
|
-
})]
|
|
1630
|
-
})]
|
|
1631
|
-
}, s.title))
|
|
1632
|
-
})]
|
|
1633
|
-
})
|
|
1634
|
-
}), jsx("section", {
|
|
1635
|
-
className: "cbh-section",
|
|
1636
|
-
id: "business",
|
|
1637
|
-
children: jsxs("div", {
|
|
1638
|
-
className: "cbh-wrap",
|
|
1639
|
-
children: [jsxs("div", {
|
|
1640
|
-
className: "cbh-business-head cbh-reveal",
|
|
1641
|
-
children: [jsxs("div", {
|
|
1642
|
-
children: [jsxs("p", {
|
|
1643
|
-
className: "cbh-eyebrow",
|
|
1644
|
-
children: [jsx(Briefcase, {
|
|
1645
|
-
size: 15,
|
|
1646
|
-
"aria-hidden": true
|
|
1647
|
-
}), " Clockbook for business"]
|
|
1648
|
-
}), jsxs("h2", {
|
|
1649
|
-
children: ["The same Clockbook runs the ", jsx("em", {
|
|
1650
|
-
children: "back office."
|
|
1651
|
-
})]
|
|
1652
|
-
}), jsx("p", {
|
|
1653
|
-
className: "cbh-body",
|
|
1654
|
-
children: "Clockbook started as the time tracker teams run their day on. For a business it is the whole back office: time, people, money and the workflows between them, with the paperwork handled and you always in control."
|
|
1655
|
-
})]
|
|
1656
|
-
}), jsxs("div", {
|
|
1657
|
-
className: "cbh-business-ctas",
|
|
1658
|
-
children: [jsxs("a", {
|
|
1659
|
-
className: "cbh-btn",
|
|
1660
|
-
href: businessHref(BUSINESS_LINKS.home),
|
|
1661
|
-
children: ["See Clockbook for business", jsx(ArrowRight, {
|
|
1662
|
-
size: 18,
|
|
1663
|
-
"aria-hidden": true
|
|
1664
|
-
})]
|
|
1665
|
-
}), jsxs("div", {
|
|
1666
|
-
className: "cbh-business-links",
|
|
1667
|
-
children: [jsx("a", {
|
|
1668
|
-
href: businessHref(BUSINESS_LINKS.pricing),
|
|
1669
|
-
children: "Pricing"
|
|
1670
|
-
}), jsx("a", {
|
|
1671
|
-
href: businessHref(BUSINESS_LINKS.demo),
|
|
1672
|
-
children: "Book a demo"
|
|
1673
|
-
}), jsx("a", {
|
|
1674
|
-
href: businessHref(BUSINESS_LINKS.freelancers),
|
|
1675
|
-
children: "For freelancers"
|
|
1676
|
-
})]
|
|
1677
|
-
})]
|
|
1678
|
-
})]
|
|
1679
|
-
}), jsx("div", {
|
|
1680
|
-
className: "cbh-biz-grid",
|
|
1681
|
-
children: BUSINESS_PRODUCTS.map((p, i) => jsx(BusinessCard, {
|
|
1682
|
-
product: p,
|
|
1683
|
-
index: i
|
|
1684
|
-
}, p.key))
|
|
1685
|
-
})]
|
|
1686
|
-
})
|
|
1687
|
-
}), jsx("section", {
|
|
1688
|
-
className: "cbh-section cbh-soft",
|
|
1689
1502
|
id: "faq",
|
|
1690
1503
|
children: jsxs("div", {
|
|
1691
1504
|
className: "cbh-wrap",
|
|
@@ -1753,6 +1566,42 @@ function HomePage() {
|
|
|
1753
1566
|
})
|
|
1754
1567
|
})
|
|
1755
1568
|
})
|
|
1569
|
+
}), jsx("section", {
|
|
1570
|
+
className: "cbh-yantra",
|
|
1571
|
+
id: "business",
|
|
1572
|
+
"aria-labelledby": "cbh-yantra-title",
|
|
1573
|
+
children: jsx("div", {
|
|
1574
|
+
className: "cbh-wrap",
|
|
1575
|
+
children: jsxs("div", {
|
|
1576
|
+
className: "cbh-yantra-card cbh-reveal",
|
|
1577
|
+
children: [jsx("span", {
|
|
1578
|
+
className: "cbh-yantra-icon",
|
|
1579
|
+
"aria-hidden": true,
|
|
1580
|
+
children: jsx(Briefcase, {
|
|
1581
|
+
size: 22
|
|
1582
|
+
})
|
|
1583
|
+
}), jsxs("div", {
|
|
1584
|
+
children: [jsxs("h2", {
|
|
1585
|
+
id: "cbh-yantra-title",
|
|
1586
|
+
className: "cbh-yantra-title",
|
|
1587
|
+
children: ["Running a business? That\u2019s ", jsx("em", {
|
|
1588
|
+
children: "Yantra."
|
|
1589
|
+
})]
|
|
1590
|
+
}), jsx("p", {
|
|
1591
|
+
className: "cbh-yantra-body",
|
|
1592
|
+
children: "Clockbook keeps life admin easy for everyone. For your team\u2019s work, from timesheets and invoices to the workflows between them, there\u2019s Yantra, the AI workspace Clockbook runs on."
|
|
1593
|
+
})]
|
|
1594
|
+
}), jsxs("a", {
|
|
1595
|
+
className: "cbh-btn",
|
|
1596
|
+
href: yantraAppUrl(),
|
|
1597
|
+
"data-track": "business_yantra",
|
|
1598
|
+
children: ["Go to yantra.app", jsx(ArrowUpRight, {
|
|
1599
|
+
size: 18,
|
|
1600
|
+
"aria-hidden": true
|
|
1601
|
+
})]
|
|
1602
|
+
})]
|
|
1603
|
+
})
|
|
1604
|
+
})
|
|
1756
1605
|
})]
|
|
1757
1606
|
}), jsx("footer", {
|
|
1758
1607
|
className: "cbh-footer",
|
|
@@ -1771,19 +1620,26 @@ function HomePage() {
|
|
|
1771
1620
|
})]
|
|
1772
1621
|
}), jsxs("nav", {
|
|
1773
1622
|
className: "cbh-footer-links",
|
|
1774
|
-
"aria-label": "Clockbook
|
|
1775
|
-
children: [
|
|
1776
|
-
href:
|
|
1777
|
-
children:
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1623
|
+
"aria-label": "Clockbook",
|
|
1624
|
+
children: [jsx("a", {
|
|
1625
|
+
href: "#how",
|
|
1626
|
+
children: "How it works"
|
|
1627
|
+
}), jsx("a", {
|
|
1628
|
+
href: "#faq",
|
|
1629
|
+
children: "Questions"
|
|
1781
1630
|
}), jsx("a", {
|
|
1782
|
-
href: businessHref(
|
|
1783
|
-
children: "
|
|
1631
|
+
href: businessHref(SITE_LINKS.privacy),
|
|
1632
|
+
children: "Privacy"
|
|
1784
1633
|
}), jsx("a", {
|
|
1785
|
-
href: businessHref(
|
|
1786
|
-
children: "
|
|
1634
|
+
href: businessHref(SITE_LINKS.contact),
|
|
1635
|
+
children: "Contact"
|
|
1636
|
+
}), jsxs("a", {
|
|
1637
|
+
href: yantraAppUrl(),
|
|
1638
|
+
"data-track": "business_yantra",
|
|
1639
|
+
children: ["Yantra for business ", jsx(ArrowUpRight, {
|
|
1640
|
+
size: 14,
|
|
1641
|
+
"aria-hidden": true
|
|
1642
|
+
})]
|
|
1787
1643
|
})]
|
|
1788
1644
|
})]
|
|
1789
1645
|
}), jsxs("p", {
|