Skip to content

Commit

Permalink
Original UI Design started
Browse files Browse the repository at this point in the history
  • Loading branch information
Rica2021 committed Jul 12, 2024
1 parent 09697d0 commit d9c4af7
Show file tree
Hide file tree
Showing 10 changed files with 348 additions and 169 deletions.
33 changes: 0 additions & 33 deletions api/curl/index.graphql

This file was deleted.

8 changes: 7 additions & 1 deletion api/index.graphql
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
schema @sdl(files: ["exercises/index.graphql", "curl/index.graphql"]) {
schema
@sdl(
files: [
"exercises/index.graphql"
"workouts/index.graphql"
]
) {
query: Query
}
31 changes: 31 additions & 0 deletions api/workouts/index.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
type UserWorkouts {
_id: String
workout_name: String
times_completed: Int
tonnage: Int
weekdays_scheduled: [String]
exercises: JSON
}

type Root {
documents: [UserWorkouts]
}

type Query {
workouts: Root
@rest(
method: POST
endpoint: "https://us-east-1.aws.data.mongodb-api.com/app/data-wixvufj/endpoint/data/v1/action/find"
headers: [
{ name: "access-control-request-headers", value: "*" },
{ name: "api-key", value: "2oM8HXmfdTkHpy9n3MXWimJ273KWTNrNCYEdW0GYhpJNdKmLOCQRfgi6ln37R2Fb" }
],
postbody: """
{
"collection": "workouts",
"dataSource": "Cluster0",
"database": "workoutApp"
}
"""
)
}
91 changes: 83 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"web": "expo start --web"
},
"dependencies": {
"@react-navigation/bottom-tabs": "^6.6.0",
"@react-navigation/native": "^6.1.17",
"@tanstack/react-query": "^5.49.2",
"expo": "~51.0.17",
"expo-constants": "~16.0.2",
Expand All @@ -22,6 +24,8 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.74.2",
"react-native-gesture-handler": "^2.17.1",
"react-native-reanimated": "^3.14.0",
"react-native-safe-area-context": "4.10.1",
"react-native-screens": "3.31.1",
"react-native-web": "~0.19.10"
Expand Down
28 changes: 23 additions & 5 deletions src/app/(tabs)/_layout.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
import { FontAwesome6 } from '@expo/vector-icons';
import { FontAwesome5 } from '@expo/vector-icons';
import { Octicons } from '@expo/vector-icons';
import { FontAwesome } from '@expo/vector-icons';
import { FontAwesome6 } from "@expo/vector-icons";
import { FontAwesome5 } from "@expo/vector-icons";
import { Octicons } from "@expo/vector-icons";
import { FontAwesome } from "@expo/vector-icons";
import { Tabs } from "expo-router";


export default function TabLayout() {
return (
<Tabs screenOptions={{ tabBarActiveTintColor: "royalblue", headerShown: false }}>
<Tabs
screenOptions={{
tabBarActiveTintColor: "#FFD700",
tabBarInactiveTintColor: "#FFFFFF",
headerShown: false,
tabBarStyle: {
backgroundColor: '#2A2A2A',
borderTopWidth: 0,
elevation: 0,
shadowOpacity: 0,
},


backgroundColor: "#1E1E1E"


}}
>
{/* <Tabs.Screen
name="index"
options={{
Expand Down
3 changes: 0 additions & 3 deletions src/app/(tabs)/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ export default function HomeScreen() {
return <View style={styles.container}>





</View>;
}

Expand Down
Loading

0 comments on commit d9c4af7

Please sign in to comment.