diff --git a/assets/adaptive-icon.png b/assets/adaptive-icon.png index 03d6f6b..7904893 100644 Binary files a/assets/adaptive-icon.png and b/assets/adaptive-icon.png differ diff --git a/assets/lefty.png b/assets/lefty.png new file mode 100644 index 0000000..7904893 Binary files /dev/null and b/assets/lefty.png differ diff --git a/pages/Home.js b/pages/Home.js new file mode 100644 index 0000000..2434666 --- /dev/null +++ b/pages/Home.js @@ -0,0 +1,77 @@ +import React from "react"; +import { Image, SafeAreaView, StyleSheet, View } from "react-native"; +import { Button, Text, useTheme } from "react-native-paper"; + +import { useAxios } from "../providers/hooks"; +import { SPOON_API_URL } from "../config/config"; + +export function Home({ navigation }) { + const theme = useTheme(); + const { publicAxios } = useAxios(); + const [isLoading, setIsLoading] = React.useState(false); + + return ( + + + + lefty + + + + + What to make today? + + + + + + + + ); +} + +const styles = StyleSheet.create({ + container: { + alignItems: "center", + justifyContent: "center", + width: "100%", + height: 70, + flexDirection: "row", + gap: 15, + }, +}); diff --git a/pages/Settings.js b/pages/Settings.js new file mode 100644 index 0000000..9345936 --- /dev/null +++ b/pages/Settings.js @@ -0,0 +1,59 @@ +import React from "react"; +import { SafeAreaView, View } from "react-native"; +import { Switch, useTheme } from "react-native-paper"; +import { ListItem } from "@rneui/themed"; + +import { useAppTheme } from "../providers/hooks"; +import Layout from "../components/Layout"; + +export const Settings = ({ navigation }) => { + const theme = useTheme(); + const { darkMode, toggleDarkModeTheme } = useAppTheme(); + + return ( + + + + + + + Dark Mode + + + + + + navigation.navigate("AboutLefty")} + style={{ width: "100%" }} + containerStyle={{ + backgroundColor: theme.colors.background, + borderColor: theme.colors.secondary, + }} + > + + + About Lefty + + + + + + + + ); +}; diff --git a/subpages/AboutLefty.js b/subpages/AboutLefty.js new file mode 100644 index 0000000..629d001 --- /dev/null +++ b/subpages/AboutLefty.js @@ -0,0 +1,69 @@ +import React from "react"; +import { SafeAreaView, View } from "react-native"; +import { Text } from "react-native-paper"; + +import Layout from "../components/Layout"; + +export const AboutLefty = ({ navigation }) => { + return ( + + navigation.goBack()} + iconName="chevron-left" + > + + + Lefty + + + Food waste is a global problem of staggering proportions. According + to the United Nations, approximately one-third of all food produced + worldwide goes to waste each year, amounting to about 1.3 billion + tons. In a world where millions go hungry, this is not just an + ethical concern; it's an environmental and economic crisis as well. + + + One significant contributor to food waste is the disposal of + leftover ingredients, which often occurs because people struggle to + find creative ways to use them effectively. + + + Leftover ingredients, whether it's half an onion, a handful of + spinach, or a bit of cheese, often end up in the trash. These + seemingly small portions collectively contribute to the massive + problem of food waste. Many individuals find it challenging to come + up with creative recipes using what they have on hand. + + + Lefty is designed to bridge the gap between leftover ingredients and + delicious, waste-reducing meals. Users can input the ingredients + they have on hand into the app, ranging from fresh produce to pantry + staples.The app leverages a vast database of recipes and + sophisticated algorithms to generate customized recipes based on the + available ingredients. These recipes are not only easy to follow but + also prioritize using up leftovers. + + + By offering users practical and appetizing ways to use their + leftover ingredients, Lefty empowers them to make the most of what + they already have, ultimately reducing food waste at home. + + + By reducing food waste, Lefty aims to contribute to a more + sustainable planet by conserving resources and reducing greenhouse + gas emissions. Together, we can make a positive impact on our planet + and our kitchens. + + + + + ); +};