2025-07-05 13:10:10 +02:00
|
|
|
import { Link } from "expo-router";
|
|
|
|
import { ImageBackground, Text, TouchableOpacity, View } from "react-native";
|
|
|
|
import { styles } from "./styles";
|
|
|
|
|
2025-07-05 14:09:52 +02:00
|
|
|
// Placeholder images
|
2025-07-05 18:49:12 +02:00
|
|
|
const netherImage = require("../assets/images/netherportalcalculator.png");
|
|
|
|
const todoImage = require("../assets/images/todo-list.png");
|
|
|
|
const coordinatesImage = require("../assets/images/coordinates.png");
|
|
|
|
const motdImage = require("../assets/images/motd-creator.png");
|
2025-07-05 10:28:22 +02:00
|
|
|
|
|
|
|
export default function Index() {
|
|
|
|
return (
|
2025-07-05 14:09:52 +02:00
|
|
|
<View style={styles.appContainer}>
|
|
|
|
<Text style={styles.mainTitle}>Minecraft Tools</Text>
|
2025-07-05 13:10:10 +02:00
|
|
|
|
|
|
|
<View style={styles.gridContainer}>
|
2025-07-05 15:28:47 +02:00
|
|
|
{/* Nether Portal Calculator */}
|
2025-07-05 13:10:10 +02:00
|
|
|
<View style={styles.gridItem}>
|
2025-07-05 15:28:47 +02:00
|
|
|
<Link href="/nether-portal-calculator" asChild style={styles.touchableWrapper}>
|
2025-07-05 13:10:10 +02:00
|
|
|
<TouchableOpacity style={styles.touchableWrapper}>
|
|
|
|
<ImageBackground source={netherImage} style={styles.imageBackground} resizeMode="cover">
|
|
|
|
<View style={styles.overlay}>
|
2025-07-05 15:28:47 +02:00
|
|
|
<Text style={styles.linkButtonText}>Nether Portal Calculator</Text>
|
2025-07-05 13:10:10 +02:00
|
|
|
</View>
|
|
|
|
</ImageBackground>
|
|
|
|
</TouchableOpacity>
|
|
|
|
</Link>
|
|
|
|
</View>
|
|
|
|
|
|
|
|
{/* Todo List */}
|
|
|
|
<View style={styles.gridItem}>
|
|
|
|
<Link href="/todo" asChild style={styles.touchableWrapper}>
|
|
|
|
<TouchableOpacity style={styles.touchableWrapper}>
|
|
|
|
<ImageBackground source={todoImage} style={styles.imageBackground} resizeMode="cover">
|
|
|
|
<View style={styles.overlay}>
|
|
|
|
<Text style={styles.linkButtonText}>Todo List</Text>
|
|
|
|
</View>
|
|
|
|
</ImageBackground>
|
|
|
|
</TouchableOpacity>
|
|
|
|
</Link>
|
|
|
|
</View>
|
|
|
|
|
|
|
|
{/* Saved Coordinates */}
|
|
|
|
<View style={styles.gridItem}>
|
2025-07-05 17:55:50 +02:00
|
|
|
<Link href="/saved-coordinates" asChild style={styles.touchableWrapper}>
|
2025-07-05 13:10:10 +02:00
|
|
|
<TouchableOpacity style={styles.touchableWrapper}>
|
|
|
|
<ImageBackground source={coordinatesImage} style={styles.imageBackground} resizeMode="cover">
|
|
|
|
<View style={styles.overlay}>
|
|
|
|
<Text style={styles.linkButtonText}>Saved Coordinates</Text>
|
|
|
|
</View>
|
|
|
|
</ImageBackground>
|
|
|
|
</TouchableOpacity>
|
|
|
|
</Link>
|
|
|
|
</View>
|
|
|
|
|
|
|
|
{/* MOTD Creator */}
|
|
|
|
<View style={styles.gridItem}>
|
|
|
|
<Link href="/motd" asChild style={styles.touchableWrapper}>
|
|
|
|
<TouchableOpacity style={styles.touchableWrapper}>
|
|
|
|
<ImageBackground source={motdImage} style={styles.imageBackground} resizeMode="cover">
|
|
|
|
<View style={styles.overlay}>
|
|
|
|
<Text style={styles.linkButtonText}>MOTD Creator</Text>
|
|
|
|
</View>
|
|
|
|
</ImageBackground>
|
|
|
|
</TouchableOpacity>
|
|
|
|
</Link>
|
|
|
|
</View>
|
|
|
|
</View>
|
2025-07-05 10:28:22 +02:00
|
|
|
</View>
|
|
|
|
);
|
2025-07-05 13:10:10 +02:00
|
|
|
}
|