eletrotupi / tcc/ frontend/app/(tabs)/new/entry.tsx8b59f8151ab8c986db903c1f9f856d47149e6204
2.4 KB | 88 lines Raw
1
import { useState, useEffect } from 'react';
2
import {
3
  Link, router, useLocalSearchParams
4
} from 'expo-router';
5

6
import {
7
  View,
8
  Text,
9
  StyleSheet,
10
  ScrollView
11
} from 'react-native';
12

13
import { SafeAreaView } from 'react-native-safe-area-context';
14
import { ThemedText } from '@/components/misc/themed-text';
15
import { ThemedView } from '@/components/misc/themed-view';
16
import { ScreenLayout } from '@/components/ui/ScreenLayout';
17
import { useAuth } from '@/context/AuthContext';
18
import { Grid, Col, Row, Between, Center } from '@/components/ui/LayoutHelpers';
19
import { Card } from '@/components/ui/Cards';
20
import { Button } from '@/components/ui/Button';
21
import { Input } from '@/components/ui/Input';
22
import { Section, SectionHeader } from '@/components/ui/Sections';
23
import { Spacing, Typography, Colors } from '@/constants/theme';
24

25
export default function NewMoodEntry() {
26
  const { user } = useAuth();
27
  // TODO: transform this into a specific mood component
28
  const { initialMood } = useLocalSearchParams();
29

30
  return (
31
    <View>
32
      <ScrollView
33
        scrollEventThrottle={16}>
34
        <View style={styles.container}>
35
          <Center>
36
            <ThemedText style={styles.statusPrefix}>
37
              Como você está se sentindo agora?
38
            </ThemedText>
39

40
            <ThemedText style={styles.statusText}>
41
              Muito Bem
42
            </ThemedText>
43
          </Center>
44

45
          <Card style={styles.resumeCard}>
46
          </Card>
47

48
          <Card style={styles.annotationsCard}>
49
            <Input
50
              label="Notas sobre o dia"
51
              type="text"
52
              onChangeText={(val) => console.log(val)}
53
              placeholder="Escreva uma nota rápida sobre o seu dia..."
54
            />
55
          </Card>
56

57
          <Section>
58
            <SectionHeader title="Componentes do Humor" info="Editar" />
59
            <Grid gap={4}>
60
              <Card style={{height: 38}} />
61
              <Card style={{height: 38}} />
62
            </Grid>
63
          </Section>
64
        </View>
65
      </ScrollView>
66
    </View>
67
  );
68
}
69

70
const styles = StyleSheet.create({
71
  container: {
72
    gap: 24,
73
    paddingHorizontal: Spacing.containerPadding,
74
    paddingVertical: Spacing.sectionGap,
75
  },
76
  statusText: {
77
    ...Typography.headlineXg,
78
  },
79
  statusPrefix: {
80
    ...Typography.bodyMd
81
  },
82
  annotationsCard: {
83
    padding: Spacing.cardGap
84
  },
85
  resumeCard: {
86
    height: 361
87
  }
88
});