videogen/apps/mobile/app/studio-intro.tsx
caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

202 lines
5.8 KiB
TypeScript

/**
* Route: /studio-intro — Studio Highlights. Shown exactly once, right after
* sign-in, before the generic one-flow Create screen. Leads with Menivor's
* actual differentiating tools (Ad Studio, Caption Studio, Dub Studio, Avatar
* Cloning, Film Studio) instead of landing straight on the generic
* "type a topic, get 3 reels" flow — so a first-time install (including an
* App Review install) sees what makes Menivor distinct before anything else.
*/
import { ScrollView, StyleSheet, Text, View } from "react-native";
import { useRouter } from "expo-router";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { Icon, type IconName } from "@/components/ui/Icon";
import { Pressable } from "react-native";
import { markStudioIntroSeen } from "@/src/shared/onboarding/studio-intro";
import { colors, kicker, radius, spacing, typeScale, weight } from "@/src/shared/theme";
interface StudioCard {
readonly key: string;
readonly icon: IconName;
readonly title: string;
readonly description: string;
readonly href: string;
}
const STUDIOS: readonly StudioCard[] = [
{
key: "ad-studio",
icon: "megaphone-outline",
title: "Ad Studio",
description: "Turn a product photo into a finished ad, no shoot required.",
href: "/ad-studio",
},
{
key: "caption-studio",
icon: "text-outline",
title: "Caption Studio",
description: "Six caption tools in one place: hook score, loop check, safe zones, SEO, beat-fit, Hormozi style.",
href: "/studio/captions",
},
{
key: "dub-studio",
icon: "globe-outline",
title: "Dub Studio",
description: "Dub a reel into another language with a matched voice.",
href: "/studio/dub",
},
{
key: "avatars",
icon: "person-circle-outline",
title: "Avatar Cloning",
description: "Clone a face or voice from a selfie and reuse it across reels.",
href: "/account/avatars",
},
{
key: "film-studio",
icon: "film-outline",
title: "Film Studio",
description: "Plan every shot of a longer film, then render and stitch the final cut.",
href: "/film",
},
] as const;
export default function StudioIntroScreen() {
const router = useRouter();
const insets = useSafeAreaInsets();
const openStudio = async (href: string) => {
await markStudioIntroSeen();
router.replace(href as never);
};
const continueToCreate = async () => {
await markStudioIntroSeen();
router.replace("/(tabs)/create");
};
return (
<View style={[styles.container, { paddingTop: insets.top }]}>
<ScrollView
contentContainerStyle={styles.scroll}
showsVerticalScrollIndicator={false}
>
<Text style={kicker}>Welcome to Menivor</Text>
<Text style={styles.heading}>More than one more reel-maker</Text>
<Text style={styles.subheading}>
Five real studios, not one generic flow. Open any of them now, or jump straight to Create.
</Text>
{STUDIOS.map((studio) => (
<Pressable
key={studio.key}
style={({ pressed }) => [styles.card, pressed && styles.cardPressed]}
onPress={() => openStudio(studio.href)}
accessibilityRole="button"
accessibilityLabel={`Open ${studio.title}`}
>
<View style={styles.cardIcon}>
<Icon name={studio.icon} size={22} color={colors.accent} />
</View>
<View style={styles.cardBody}>
<Text style={styles.cardTitle}>{studio.title}</Text>
<Text style={styles.cardDescription}>{studio.description}</Text>
</View>
<Icon name="chevron-forward" size={18} color={colors.textFaint} />
</Pressable>
))}
</ScrollView>
<View style={[styles.footer, { paddingBottom: insets.bottom + spacing.lg }]}>
<Pressable
style={({ pressed }) => [styles.primaryButton, pressed && styles.primaryButtonPressed]}
onPress={continueToCreate}
accessibilityRole="button"
accessibilityLabel="Start creating"
>
<Text style={styles.primaryButtonText}>Start creating</Text>
</Pressable>
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.bg,
},
scroll: {
paddingHorizontal: spacing.lg,
paddingBottom: spacing.xl,
gap: spacing.sm,
},
heading: {
color: colors.textPrimary,
fontSize: typeScale.title,
fontWeight: weight.bold as never,
marginTop: spacing.sm,
},
subheading: {
color: colors.textSecondary,
fontSize: typeScale.body,
marginTop: spacing.xs,
marginBottom: spacing.lg,
},
card: {
flexDirection: "row",
alignItems: "center",
gap: spacing.md,
backgroundColor: colors.surface,
borderWidth: 1,
borderColor: colors.border,
borderRadius: radius.lg,
padding: spacing.md,
},
cardPressed: {
opacity: 0.8,
},
cardIcon: {
width: 40,
height: 40,
borderRadius: radius.md,
backgroundColor: colors.surfaceAlt,
alignItems: "center",
justifyContent: "center",
},
cardBody: {
flex: 1,
gap: 2,
},
cardTitle: {
color: colors.textPrimary,
fontSize: typeScale.subheading,
fontWeight: weight.semibold as never,
},
cardDescription: {
color: colors.textSecondary,
fontSize: typeScale.caption,
},
footer: {
paddingHorizontal: spacing.lg,
paddingTop: spacing.md,
borderTopWidth: 1,
borderTopColor: colors.border,
backgroundColor: colors.bg,
},
primaryButton: {
backgroundColor: colors.accent,
borderRadius: radius.lg,
paddingVertical: spacing.md,
alignItems: "center",
},
primaryButtonPressed: {
opacity: 0.85,
},
primaryButtonText: {
color: colors.onAccent,
fontSize: typeScale.body,
fontWeight: weight.semibold as never,
},
});