diff --git a/src/app/_layout.tsx b/src/app/_layout.tsx index b12d0a9..4423e5c 100644 --- a/src/app/_layout.tsx +++ b/src/app/_layout.tsx @@ -1,9 +1,20 @@ import { Link, Stack } from "expo-router"; import { StatusBar } from "expo-status-bar"; import { useEffect } from "react"; +import { Pressable } from "react-native"; +import Svg, { Circle, Path } from "react-native-svg"; import { hydrate } from "../lib/store"; import { C } from "../lib/theme"; +function GearIcon() { + return ( + + + + + ); +} + export default function RootLayout() { useEffect(() => { void hydrate(); @@ -25,8 +36,10 @@ export default function RootLayout() { options={{ title: "Kegel", headerRight: () => ( - - ⚙️ + + ({ paddingHorizontal: 8, paddingVertical: 4, opacity: pressed ? 0.6 : 1 })} hitSlop={8}> + + ), }} diff --git a/src/app/index.tsx b/src/app/index.tsx index a76a4a4..eb0775a 100644 --- a/src/app/index.tsx +++ b/src/app/index.tsx @@ -1,9 +1,9 @@ import { useRouter } from "expo-router"; import { StyleSheet, Text, View } from "react-native"; import { ShapeIcon } from "../components/session-viz"; -import { Button, StatRow } from "../components/ui"; +import { Button, Card, StatRow } from "../components/ui"; import { currentHold } from "../lib/store"; -import { C } from "../lib/theme"; +import { alpha, C } from "../lib/theme"; import { useStore } from "../lib/useStore"; import { FLICK_REPS, HOLD_REPS, MAX_HOLD, PUSH_REPS, SESSIONS_PER_INCREMENT, sessionMinutes } from "../lib/workout"; @@ -18,11 +18,13 @@ export default function Home() { return ( + + {hold}s current hold - + - + - + Squeeze & hold — {HOLD_REPS} reps @@ -45,7 +47,7 @@ export default function Home() { Quick squeezes & pushes — {FLICK_REPS} each - +