feat: Add Minecraft font

Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
This commit is contained in:
Sid 2025-07-05 14:09:52 +02:00
parent de79281681
commit 647e3740dd
Signed by: sidski
GPG key ID: D2BBDF3EDE6BA9A6
6 changed files with 24 additions and 17 deletions

View file

@ -37,6 +37,7 @@
],
"experiments": {
"typedRoutes": true
}
},
"assetBundlePatterns": ["**/*"]
}
}

View file

@ -2,7 +2,7 @@ import { Link } from "expo-router";
import { ImageBackground, Text, TouchableOpacity, View } from "react-native";
import { styles } from "./styles";
// Placeholder images - replace with actual local images!
// Placeholder images
const netherImage = {
uri: "https://s1.qwant.com/thumbr/474x248/2/4/a24db6c90af628d74cc6f90c2a9c710035c23f71bbe60306da8c15048e3f0a/OIP.joos3K71NDyUnFa8KyqxmwHaD4.jpg?u=https%3A%2F%2Ftse.mm.bing.net%2Fth%2Fid%2FOIP.joos3K71NDyUnFa8KyqxmwHaD4%3Fpid%3DApi&q=0&b=1&p=0&a=0",
};
@ -18,8 +18,8 @@ const motdImage = {
export default function Index() {
return (
<View style={styles.container}>
<Text style={styles.title}>Minecraft Tools</Text>
<View style={styles.appContainer}>
<Text style={styles.mainTitle}>Minecraft Tools</Text>
<View style={styles.gridContainer}>
{/* Coordinate Converter */}

View file

@ -17,6 +17,7 @@ export const styles = StyleSheet.create({
textShadowColor: "rgba(0, 0, 0, 0.75)",
textShadowOffset: { width: 2, height: 2 },
textShadowRadius: 5,
fontFamily: "Minecraft",
},
gridContainer: {
flex: 1,
@ -50,6 +51,7 @@ export const styles = StyleSheet.create({
textShadowColor: "rgba(0, 0, 0, 0.7)",
textShadowOffset: { width: 1, height: 1 },
textShadowRadius: 3,
fontFamily: "Minecraft",
},
// --- Coordinate Converter Specific Styles (Adjusted and New) ---
@ -86,6 +88,7 @@ export const styles = StyleSheet.create({
textShadowColor: "rgba(0, 0, 0, 0.7)",
textShadowOffset: { width: 1, height: 1 },
textShadowRadius: 3,
fontFamily: "Minecraft",
},
dimensionContainer: {
width: "90%",
@ -105,6 +108,7 @@ export const styles = StyleSheet.create({
textShadowColor: "rgba(0, 0, 0, 0.5)",
textShadowOffset: { width: 1, height: 1 },
textShadowRadius: 2,
fontFamily: "Minecraft",
},
coordinatesRow: {
flexDirection: "row",
@ -124,6 +128,7 @@ export const styles = StyleSheet.create({
textShadowColor: "rgba(0, 0, 0, 0.5)",
textShadowOffset: { width: 1, height: 1 },
textShadowRadius: 2,
fontFamily: "Minecraft",
},
coordTextInput: {
backgroundColor: "rgba(58, 58, 58, 0.8)",
@ -136,8 +141,8 @@ export const styles = StyleSheet.create({
borderColor: "#555",
width: "100%",
textAlign: "center",
fontFamily: "Minecraft",
},
clearButton: {
backgroundColor: "#d32f2f",
paddingVertical: 12,
@ -149,8 +154,8 @@ export const styles = StyleSheet.create({
color: "#fff",
fontSize: 16,
fontWeight: "bold",
fontFamily: "Minecraft",
},
backButton: {
alignSelf: "flex-start",
marginTop: 10,
@ -165,5 +170,6 @@ export const styles = StyleSheet.create({
color: "#fff",
fontSize: 16,
fontWeight: "bold",
fontFamily: "Minecraft",
},
});

BIN
assets/fonts/Minecraft.ttf Normal file

Binary file not shown.

12
package-lock.json generated
View file

@ -19,7 +19,7 @@
"expo-haptics": "~14.1.4",
"expo-image": "~2.3.2",
"expo-linking": "~7.1.7",
"expo-router": "~5.1.3",
"expo-router": "^5.1.3",
"expo-splash-screen": "~0.30.10",
"expo-status-bar": "~2.2.3",
"expo-symbols": "~0.4.5",
@ -30,8 +30,8 @@
"react-native": "0.79.5",
"react-native-gesture-handler": "~2.24.0",
"react-native-reanimated": "~3.17.4",
"react-native-safe-area-context": "5.4.0",
"react-native-screens": "~4.11.1",
"react-native-safe-area-context": "^5.5.1",
"react-native-screens": "^4.11.1",
"react-native-web": "~0.20.0",
"react-native-webview": "13.13.5"
},
@ -10274,9 +10274,9 @@
}
},
"node_modules/react-native-safe-area-context": {
"version": "5.4.0",
"resolved": "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-5.4.0.tgz",
"integrity": "sha512-JaEThVyJcLhA+vU0NU8bZ0a1ih6GiF4faZ+ArZLqpYbL6j7R3caRqj+mE3lEtKCuHgwjLg3bCxLL1GPUJZVqUA==",
"version": "5.5.1",
"resolved": "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-5.5.1.tgz",
"integrity": "sha512-WYxV+mm7SWuapVWxq2071lkQlDUXjSwcu7Cc2bUtNcF80/Bl0WnuWAZ8+tO46M38PclMrQIIgbv83BvDHJNQ5g==",
"license": "MIT",
"peerDependencies": {
"react": "*",

View file

@ -22,7 +22,7 @@
"expo-haptics": "~14.1.4",
"expo-image": "~2.3.2",
"expo-linking": "~7.1.7",
"expo-router": "~5.1.3",
"expo-router": "^5.1.3",
"expo-splash-screen": "~0.30.10",
"expo-status-bar": "~2.2.3",
"expo-symbols": "~0.4.5",
@ -33,17 +33,17 @@
"react-native": "0.79.5",
"react-native-gesture-handler": "~2.24.0",
"react-native-reanimated": "~3.17.4",
"react-native-safe-area-context": "5.4.0",
"react-native-screens": "~4.11.1",
"react-native-safe-area-context": "^5.5.1",
"react-native-screens": "^4.11.1",
"react-native-web": "~0.20.0",
"react-native-webview": "13.13.5"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@types/react": "~19.0.10",
"typescript": "~5.8.3",
"eslint": "^9.25.0",
"eslint-config-expo": "~9.2.0"
"eslint-config-expo": "~9.2.0",
"typescript": "~5.8.3"
},
"private": true
}