summaryrefslogtreecommitdiff
path: root/app/(auth)/welcome.tsx
blob: 9062c12d9d913dbb19304b6d927ce556a1dca606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { router } from "expo-router";
import { Image, StyleSheet, View } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
import { t } from "../../lib/locales";
import { colors } from "../../lib/theme";
import { Button, H1, Muted } from "../../lib/ui";

import dogLogo from "../../assets/images/dog-logo.png";

export default function Welcome() {
  return (
    <SafeAreaView style={styles.container}>
      <View style={styles.content}>
        <View style={styles.hero}>
          <View style={styles.iconContainer}>
            <Image source={dogLogo} style={{ width: 100, height: 100 }} />
          </View>
          <H1>{t("welcomeTitle")}</H1>
          <Muted style={styles.subtitle}>{t("welcomeSubtitle")}</Muted>
        </View>

        <View style={styles.actions}>
          <Button
            title={t("getStarted")}
            onPress={() => router.push("/(auth)/signup")}
          />
          <Button
            title={t("signIn")}
            variant="secondary"
            onPress={() => router.push("/(auth)/signin")}
          />
        </View>
      </View>
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: colors.background,
  },
  content: {
    flex: 1,
    padding: 24,
    justifyContent: "space-between",
  },
  hero: {
    flex: 1,
    alignItems: "center",
    justifyContent: "center",
    gap: 16,
  },
  iconContainer: {
    marginBottom: 24,
  },
  subtitle: {
    textAlign: "center",
    paddingHorizontal: 20,
  },
  actions: {
    gap: 12,
  },
});