tangled
alpha
login
or
join now
stream.place
/
streamplace
Live video on the AT Protocol
74
fork
atom
overview
issues
1
pulls
pipelines
re-add offline counter
Natalie B.
6 months ago
99c0591e
fed3ab72
+63
1 changed file
expand all
collapse all
unified
split
js
app
components
mobile
desktop-ui.tsx
+63
js/app/components/mobile/desktop-ui.tsx
···
32
32
useSharedValue,
33
33
withTiming,
34
34
} from "react-native-reanimated";
35
35
+
import { OfflineCounter } from "./offline-counter";
35
36
import { useResponsiveLayout } from "./useResponsiveLayout";
36
37
37
38
const { borders, colors, gap, h, layout, position, w, px, py, r, p, bg, text } =
···
523
524
description="We're notifying your followers that you just went live."
524
525
duration={5}
525
526
/>
527
527
+
{offline && <OfflineCounter />}
528
528
+
529
529
+
{muteWasForced && (
530
530
+
<View
531
531
+
style={[
532
532
+
layout.position.absolute,
533
533
+
layout.flex.center,
534
534
+
h.percent[100],
535
535
+
w.percent[100],
536
536
+
]}
537
537
+
>
538
538
+
<Pressable
539
539
+
onPress={() => {
540
540
+
if (muteWasForced) {
541
541
+
setMuted(false);
542
542
+
setMuteWasForced(false);
543
543
+
}
544
544
+
}}
545
545
+
style={[
546
546
+
{
547
547
+
flexDirection: "column",
548
548
+
alignItems: "center",
549
549
+
justifyContent: "center",
550
550
+
gap: 8,
551
551
+
},
552
552
+
]}
553
553
+
>
554
554
+
<View
555
555
+
style={[
556
556
+
p[4],
557
557
+
{
558
558
+
backgroundColor: "rgba(50, 30, 30, 0.4)",
559
559
+
borderRadius: 999,
560
560
+
borderWidth: 2,
561
561
+
borderColor: "rgba(255, 120, 120, 0.2)",
562
562
+
boxShadow: "0 2px 4px rgba(0, 0, 0, 1)",
563
563
+
shadowColor: "rgba(0, 0, 0, 1)",
564
564
+
},
565
565
+
]}
566
566
+
>
567
567
+
<VolumeX size="48" color="rgba(255,120,120,0.8)" />
568
568
+
</View>
569
569
+
<View
570
570
+
style={[
571
571
+
px[2],
572
572
+
{
573
573
+
backgroundColor: "rgba(0,0,0, 0.8)",
574
574
+
borderRadius: 999,
575
575
+
borderWidth: 1,
576
576
+
borderColor: "rgba(255, 120, 120, 0.1)",
577
577
+
boxShadow: "0 2px 4px rgba(0, 0, 0, 1)",
578
578
+
shadowColor: "rgba(0, 0, 0, 1)",
579
579
+
},
580
580
+
]}
581
581
+
>
582
582
+
<Text style={{ color: "rgba(180,180,180,0.8)" }} size="base">
583
583
+
Press to unmute
584
584
+
</Text>
585
585
+
</View>
586
586
+
</Pressable>
587
587
+
</View>
588
588
+
)}
526
589
</View>
527
590
{showMetrics && (
528
591
<View