uh
This commit is contained in:
parent
b256316e18
commit
d9ebbc12f1
1
.env
1
.env
@ -1,2 +1,3 @@
|
|||||||
EXPO_PUBLIC_API_KEY=I_Love_Madeline
|
EXPO_PUBLIC_API_KEY=I_Love_Madeline
|
||||||
EXPO_PUBLIC_BASE_URL=https://ismadelinethecutest.gibbyb.com/api
|
EXPO_PUBLIC_BASE_URL=https://ismadelinethecutest.gibbyb.com/api
|
||||||
|
#EXPO_PUBLIC_BASE_URL=http://192.168.0.39:3000/api
|
||||||
|
@ -9,7 +9,6 @@ import ChangeDateDrawer from '@/components/ChangeDateDrawer';
|
|||||||
const API_KEY = process.env.EXPO_PUBLIC_API_KEY;
|
const API_KEY = process.env.EXPO_PUBLIC_API_KEY;
|
||||||
const BASE_URL = process.env.EXPO_PUBLIC_BASE_URL;
|
const BASE_URL = process.env.EXPO_PUBLIC_BASE_URL;
|
||||||
|
|
||||||
|
|
||||||
// Separate API call function
|
// Separate API call function
|
||||||
const fetchCountdownDate = async () => {
|
const fetchCountdownDate = async () => {
|
||||||
try {
|
try {
|
||||||
@ -87,10 +86,10 @@ export default function TabTwoScreen() {
|
|||||||
</ThemedView>
|
</ThemedView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let days = countdown.days <= 1 ? 'Day' : 'Days';
|
let days = countdown.days === 1 ? 'Day' : 'Days';
|
||||||
let hours = countdown.hours <= 1 ? 'Hour' : 'Hours';
|
let hours = countdown.hours === 1 ? 'Hour' : 'Hours';
|
||||||
let minutes = countdown.minutes <= 1 ? 'Minute' : 'Minutes';
|
let minutes = countdown.minutes === 1 ? 'Minute' : 'Minutes';
|
||||||
let seconds = countdown.seconds <= 1 ? 'Second' : 'Seconds';
|
let seconds = countdown.seconds === 1 ? 'Second' : 'Seconds';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<LinearGradient
|
<LinearGradient
|
||||||
@ -142,7 +141,7 @@ const styles = StyleSheet.create({
|
|||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
fontSize: 56,
|
fontSize: 64,
|
||||||
lineHeight: 64,
|
lineHeight: 64,
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
marginTop: 100,
|
marginTop: 100,
|
||||||
|
@ -126,17 +126,19 @@ const styles = StyleSheet.create({
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
marginRight: 10,
|
marginRight: 10,
|
||||||
|
minWidth: 120,
|
||||||
},
|
},
|
||||||
timeContainer: {
|
timeContainer: {
|
||||||
width: '50%',
|
width: '50%',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
|
minWidth: 120,
|
||||||
},
|
},
|
||||||
button: {
|
button: {
|
||||||
backgroundColor: '#730FF8',
|
backgroundColor: '#730FF8',
|
||||||
borderRadius: 20,
|
borderRadius: 12,
|
||||||
padding: 10,
|
padding: 12,
|
||||||
elevation: 2,
|
elevation: 2,
|
||||||
marginVertical: 10,
|
marginVertical: 10,
|
||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
@ -147,14 +149,16 @@ const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
buttonText: {
|
buttonText: {
|
||||||
color: 'white',
|
color: 'white',
|
||||||
|
fontSize: 20,
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
},
|
},
|
||||||
modalText: {
|
modalText: {
|
||||||
marginBottom: 15,
|
marginBottom: 20,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
fontSize: 18,
|
fontSize: 24,
|
||||||
|
lineHeight: 32,
|
||||||
},
|
},
|
||||||
dateText: {
|
dateText: {
|
||||||
marginVertical: 10,
|
marginVertical: 10,
|
||||||
|
Loading…
Reference in New Issue
Block a user