Skip to content

Commit

Permalink
Merge pull request #28 from ReflectionsProjections/dev/Bahl-Aryan/hom…
Browse files Browse the repository at this point in the history
…e-page

Dev/bahl aryan/home page
  • Loading branch information
AydanPirani authored Sep 2, 2024
2 parents 9e16790 + 5d940fd commit cf1876d
Show file tree
Hide file tree
Showing 12 changed files with 309 additions and 45 deletions.
6 changes: 3 additions & 3 deletions Components/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const StyledText = styled(Text,
textAlign: 'center'
},
profileText: {
fontSize: 60,
fontSize: 40,
fontWeight: "$bold",
textAlign: 'center',
fontFamily: "Kufam_700Bold_Italic"
fontFamily: "Kufam_700Bold"
},
basic: {
fontSize: "$md",
Expand All @@ -27,7 +27,7 @@ const StyledText = styled(Text,
fontWeight: "$semibold",
textAlign: "center",
color: "$black",
fontFamily: "Kufam_700Bold_Italic"
fontFamily: "Kufam_700Bold"
}
},
},
Expand Down
4 changes: 2 additions & 2 deletions api/getCurrentNextEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import axios from "axios";

export const getCurrentOrNext = async (token: string) => {
try{
const response = await axios.get('https://api.reflectionsprojections.org/events/currentOrNext', {
const response = await axios.get('https://api.reflectionsprojections.org/events/currentOrNext/', {
headers: {
Authorization: token

}
});
return response.data;
Expand Down
15 changes: 15 additions & 0 deletions api/getPoints.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import axios from "axios";

export const getPoints = async (token: string) => {
try{
const response = await axios.get('https://api.reflectionsprojections.org/attendee/points/', {
headers: {
Authorization: token
}
});
return response.data;
} catch (error) {
console.error("Error in catching events:", error);
throw error;
}
}
9 changes: 9 additions & 0 deletions assets/SVGs/home/bar_6.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions assets/SVGs/profile/logout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
169 changes: 169 additions & 0 deletions assets/SVGs/profile/profile_bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"developmentClient": true,
"distribution": "internal"
},
"development-simulator": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"simulator": true
}
},
"preview": {
"distribution": "internal"
},
Expand Down
2 changes: 1 addition & 1 deletion navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const AppNavigator: React.FC = () => {
component={Events}
options={{ tabBarLabel: () => null }}
/>
{roles.includes('STAFF') || roles.includes('ADMIN') ? (
{roles.includes('STAFF') ? (
<Tab.Screen
name="AdminScanner"
component={AdminScanner}
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@expo-google-fonts/inter": "^0.2.3",
"@expo-google-fonts/kufam": "^0.2.3",
"@expo-google-fonts/press-start-2p": "^0.2.3",
"@expo-google-fonts/press-start-2p": "^0.2.3",
"@gluestack-style/react": "^1.0.52",
"@gluestack-ui/config": "^1.1.18",
"@gluestack-ui/themed": "^1.1.30",
Expand All @@ -27,9 +26,11 @@
"@reduxjs/toolkit": "^2.2.5",
"@types/react": "~18.2.45",
"axios": "^1.7.2",
"date-fns": "^3.6.0",
"expo": "latest",
"expo-app-loading": "^1.1.2",
"expo-camera": "^15.0.11",
"expo-dev-client": "~4.0.25",
"expo-font": "~12.0.9",
"expo-linking": "^6.3.1",
"expo-splash-screen": "~0.27.5",
Expand All @@ -50,6 +51,7 @@
"react-native-safe-area-context": "4.10.1",
"react-native-screens": "3.31.1",
"react-native-svg": "^15.3.0",
"react-native-svg-transformer": "^1.5.0",
"react-native-svg-uri": "^0.0.1",
"react-native-tab-view": "^3.5.2",
"react-native-webview": "^13.12.0",
Expand All @@ -65,8 +67,7 @@
"babel-eslint": "^10.1.0",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"react-native-svg-transformer": "^1.4.0"
"eslint-plugin-react-refresh": "^0.4.6"
},
"private": true
}
2 changes: 2 additions & 0 deletions screens/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { getCurrentOrNext } from "../api/getCurrentNextEvent";
import { RootState } from "../redux/store";
import CurrentEventCard from "../Components/CurrentEventCard";
import Colors from "../constants/Colors";
import { Text } from "@gluestack-ui/themed";

const { width, height } = Dimensions.get("window");

Expand Down Expand Up @@ -67,6 +68,7 @@ const Home: React.FC = () => {
<Text style={styles.noEventText}>No current or upcoming events</Text>
</View>
)}

</View>
</SafeAreaView>
);
Expand Down
Loading

0 comments on commit cf1876d

Please sign in to comment.