Skip to content

Commit

Permalink
Merge branch 'ufosc:main' into Open-source-Contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
KalebE36 authored Oct 8, 2024
2 parents 4878316 + 36f0ada commit 9d6d12d
Show file tree
Hide file tree
Showing 12 changed files with 1,586 additions and 2,445 deletions.
8 changes: 4 additions & 4 deletions client/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"scheme": "osc-proximity-chat-app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"icon": "./assets/icons/expo/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"image": "./assets/icons/expo/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
"backgroundColor": "34D1BF"
},
"assetBundlePatterns": [
"**/*"
Expand All @@ -20,7 +20,7 @@
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"foregroundImage": "./assets/icons/expo/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
Expand Down
45 changes: 0 additions & 45 deletions client/app/components/auth/AuthButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,6 @@ import {
// );
// };

export const LogInButton: React.FC<{ onPress?: () => void }> = ({
onPress,
}) => {
return (
<TouchableOpacity style={styles.login_button} onPress={onPress}>
<Text style={styles.button_text}>Login</Text>
</TouchableOpacity>
);
};

export const SignUpButton: React.FC<{ onPress?: () => void }> = ({
onPress,
}) => {

return (
<TouchableOpacity style={styles.login_button} onPress={onPress}>
<Text style={styles.button_text}>Sign Up</Text>
</TouchableOpacity>
);
};

export const ExternalAuthButton: React.FC<{
onPress?: () => void;
companyName: string;
Expand Down Expand Up @@ -111,30 +90,6 @@ export const ExternalAuthButton: React.FC<{
};

const styles = StyleSheet.create({
login_button: {
backgroundColor: "#5dbea3",
width: Dimensions.get("window").width * 0.5,
height: Dimensions.get("window").height * 0.05,
display: "flex",
justifyContent: "center",
alignItems: "center",
borderRadius: Dimensions.get("window").height / 2,
shadowColor: "#8E8E8E",
shadowRadius: 2,
shadowOpacity: 0.7,
shadowOffset: {
width: 0,
height: 2,
},
elevation: 2,
},

button_text: {
color: "white",
fontFamily: "Quicksand-Medium",
fontSize: Dimensions.get("window").height * 0.027,
},

sign_out_button: {
display: "flex",
justifyContent: "center",
Expand Down
40 changes: 40 additions & 0 deletions client/app/components/auth/LargeTextButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import React from "react";
import { StyleSheet, Text, TouchableOpacity, Dimensions } from "react-native";

import { LargeTextButtonProps } from "../../types/Props";

const LargeTextButton: React.FC<LargeTextButtonProps> = ({ onPress, buttonText }) => {
return (
<TouchableOpacity style={styles.button} onPress={onPress}>
<Text style={styles.button_text}>{buttonText}</Text>
</TouchableOpacity>
);
};

const styles = StyleSheet.create({
button: {
backgroundColor: "#5dbea3",
width: Dimensions.get("window").width * 0.5,
height: Dimensions.get("window").height * 0.05,
display: "flex",
justifyContent: "center",
alignItems: "center",
borderRadius: Dimensions.get("window").height / 2,
shadowColor: "#8E8E8E",
shadowRadius: 2,
shadowOpacity: 0.7,
shadowOffset: {
width: 0,
height: 2,
},
elevation: 2,
},

button_text: {
color: "white",
fontFamily: "Quicksand-Medium",
fontSize: Dimensions.get("window").height * 0.027,
},
});

export default LargeTextButton;
32 changes: 0 additions & 32 deletions client/app/components/auth/LogInButton.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions client/app/components/auth/SignUpButton.tsx

This file was deleted.

5 changes: 3 additions & 2 deletions client/app/screens/auth/LoginScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import {
} from "react-native";
import { ArrowLeftCircle } from "react-native-feather";

import LargeTextButton from "@app/components/auth/LargeTextButton";

import {
LogInButton,
ExternalAuthButton,
} from "../../components/auth/AuthButtons";
import {
Expand Down Expand Up @@ -100,7 +101,7 @@ const LoginScreen = ({ route, navigation }: any) => {
/>
</View>
<View style={styles.button_container}>
<LogInButton onPress={onHandleSubmit} />
<LargeTextButton onPress={onHandleSubmit} buttonText="Login" />
</View>
<TouchableOpacity>
<Text
Expand Down
5 changes: 3 additions & 2 deletions client/app/screens/auth/SignUpScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import {
} from "react-native";
import { ArrowLeftCircle } from "react-native-feather";

import LargeTextButton from "../../components/auth/LargeTextButton"

import {
SignUpButton,
ExternalAuthButton,
} from "../../components/auth/AuthButtons";
import {
Expand Down Expand Up @@ -117,7 +118,7 @@ const SignUpScreen = ({ navigation }: any) => {
/>
</View>
<View style={styles.button_container}>
<SignUpButton onPress={onHandleSubmit} />
<LargeTextButton onPress={onHandleSubmit} buttonText="Sign Up" />
</View>

<View style={styles.divider_container}>
Expand Down
9 changes: 3 additions & 6 deletions client/app/types/Props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ import React from "react";
import { Message } from "./Message";

/* button props */
export type LogInButtonProps = {
export type LargeTextButtonProps = {
onPress?: () => void;
};

export type SignUpButtonProps = {
onPress?: () => void;
};
buttonText: string;
}

export type ChatSendButtonProps = {
onPress?: () => void;
Expand Down
Binary file modified client/assets/icons/expo/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/assets/images/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9d6d12d

Please sign in to comment.