|
@@ -0,0 +1,57 @@
|
|
|
+import { Text, View, Image, TouchableOpacity, StyleSheet } from "react-native";
|
|
|
+import { useState } from "react";
|
|
|
+import { Link } from "expo-router";
|
|
|
+
|
|
|
+const imagem =
|
|
|
+ "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTEOEjPdrrrffHFF7B9Ip8c3r4T66AoZJneeQ&s.jpg";
|
|
|
+
|
|
|
+export default function Galeria() {
|
|
|
+ const [imageSize, setImageSize] = useState(200);
|
|
|
+
|
|
|
+ return (
|
|
|
+ <View style={[styles.container]}>
|
|
|
+ <View style={[styles.card]}>
|
|
|
+ <Image
|
|
|
+ source={{ uri: imagem }}
|
|
|
+ style={{ width: imageSize, height: imageSize }}
|
|
|
+ ></Image>
|
|
|
+ <TouchableOpacity
|
|
|
+ style={[styles.botao]}
|
|
|
+ onPress={() => setImageSize(imageSize === 200 ? 300 : 200)}
|
|
|
+ >
|
|
|
+ <Text>{imageSize === 200 ? "Aumentar" : "Diminuir"}</Text>
|
|
|
+
|
|
|
+ </TouchableOpacity>
|
|
|
+
|
|
|
+ <Link href="/contato"
|
|
|
+ style={{
|
|
|
+ padding: 10,
|
|
|
+ backgroundColor: "#add",
|
|
|
+ borderRadius: 5,
|
|
|
+ alignItems: 'center',
|
|
|
+ textAlign: 'center'
|
|
|
+ }}>
|
|
|
+ <Text>Ir para contato</Text>
|
|
|
+ </Link>
|
|
|
+
|
|
|
+
|
|
|
+ </View>
|
|
|
+ </View>
|
|
|
+ );
|
|
|
+}
|
|
|
+
|
|
|
+const styles = StyleSheet.create({
|
|
|
+ container: {
|
|
|
+ flex: 1,
|
|
|
+ padding: 20,
|
|
|
+ },
|
|
|
+ card: {
|
|
|
+ flex: 1,
|
|
|
+ alignItems: "center",
|
|
|
+ },
|
|
|
+ botao: {
|
|
|
+ backgroundColor: "#f4511e",
|
|
|
+ padding: 10,
|
|
|
+ marginTop: 10,
|
|
|
+ },
|
|
|
+});
|