import { Image, StyleSheet, Text, View } from "react-native"; import { LinearGradient } from "expo-linear-gradient"; import { featureColors, radius, spacing, typography } from "../../../theme"; const logo = require("../../../../assets/logo.png"); interface QuizResultsShareCardProps { scorePercent: number; cardWidth: number; } /** * The card captured for sharing. Deliberately carries only the score, never the * question text or answers, so a screenshot cannot leak either partner's content. */ export function QuizResultsShareCard({ scorePercent, cardWidth }: QuizResultsShareCardProps) { return ( How well do you know each other? WE MATCHED ON {scorePercent}% sauci.app ); } const styles = StyleSheet.create({ card: { aspectRatio: 0.7, borderRadius: radius.xl, overflow: "hidden", }, gradient: { flex: 1, padding: spacing.lg, justifyContent: "space-between", }, overlay: { ...StyleSheet.absoluteFillObject, backgroundColor: "rgba(0, 0, 0, 0.08)", }, content: { flex: 1, justifyContent: "center", alignItems: "center", }, tagline: { ...typography.subhead, color: "rgba(255, 255, 255, 0.85)", textAlign: "center", marginBottom: spacing.xl, }, label: { ...typography.caption1, fontWeight: "600", letterSpacing: 3, color: "rgba(255, 255, 255, 0.85)", marginBottom: spacing.xs, }, score: { ...typography.largeTitle, fontSize: 64, lineHeight: 72, fontWeight: "800", color: "#ffffff", }, branding: { flexDirection: "row", alignItems: "center", justifyContent: "center", gap: spacing.sm, }, brandingLogo: { width: 24, height: 24, resizeMode: "contain", }, brandingText: { ...typography.subhead, color: "#ffffff", fontWeight: "600", }, });