-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPopup.js
More file actions
73 lines (70 loc) · 1.58 KB
/
Popup.js
File metadata and controls
73 lines (70 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import React from "react";
import {
Modal,
View,
Text,
Image,
TouchableOpacity,
StyleSheet,
} from "react-native";
const Popup = ({ onClose }) => {
return (
<Modal animationType="slide" transparent={true} visible={true}>
<View style={styles.modalContainer}>
<View style={styles.popup}>
<Image
source={{
uri: "https://media.giphy.com/media/9kzGqfk7xgN0AZw3jo/giphy.gif",
}}
style={styles.robotGif}
/>
<Text style={styles.popupText}>Hi there! 🚧</Text>
<Text style={styles.popupText}>
This portfolio is still a work in progress. Check back soon for more
updates!
</Text>
<TouchableOpacity style={styles.button} onPress={onClose}>
<Text style={styles.buttonText}>Got it!</Text>
</TouchableOpacity>
</View>
</View>
</Modal>
);
};
const styles = StyleSheet.create({
modalContainer: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "rgba(0, 0, 0, 0.5)",
},
popup: {
width: 400,
padding: 20,
backgroundColor: "#fff",
borderRadius: 10,
alignItems: "center",
},
robotGif: {
width: 100,
height: 100,
marginBottom: 20,
},
popupText: {
fontSize: 16,
textAlign: "center",
marginBottom: 10,
},
button: {
marginTop: 20,
padding: 10,
backgroundColor: "#FB9038",
borderRadius: 5,
},
buttonText: {
color: "#fff",
fontFamily: "Merriweather_BI",
fontSize: 16,
},
});
export default Popup;