feat: Add Minecraft font
Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
This commit is contained in:
parent
de79281681
commit
647e3740dd
6 changed files with 24 additions and 17 deletions
3
app.json
3
app.json
|
@ -37,6 +37,7 @@
|
||||||
],
|
],
|
||||||
"experiments": {
|
"experiments": {
|
||||||
"typedRoutes": true
|
"typedRoutes": true
|
||||||
}
|
},
|
||||||
|
"assetBundlePatterns": ["**/*"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { Link } from "expo-router";
|
||||||
import { ImageBackground, Text, TouchableOpacity, View } from "react-native";
|
import { ImageBackground, Text, TouchableOpacity, View } from "react-native";
|
||||||
import { styles } from "./styles";
|
import { styles } from "./styles";
|
||||||
|
|
||||||
// Placeholder images - replace with actual local images!
|
// Placeholder images
|
||||||
const netherImage = {
|
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",
|
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() {
|
export default function Index() {
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.appContainer}>
|
||||||
<Text style={styles.title}>Minecraft Tools</Text>
|
<Text style={styles.mainTitle}>Minecraft Tools</Text>
|
||||||
|
|
||||||
<View style={styles.gridContainer}>
|
<View style={styles.gridContainer}>
|
||||||
{/* Coordinate Converter */}
|
{/* Coordinate Converter */}
|
||||||
|
|
|
@ -17,6 +17,7 @@ export const styles = StyleSheet.create({
|
||||||
textShadowColor: "rgba(0, 0, 0, 0.75)",
|
textShadowColor: "rgba(0, 0, 0, 0.75)",
|
||||||
textShadowOffset: { width: 2, height: 2 },
|
textShadowOffset: { width: 2, height: 2 },
|
||||||
textShadowRadius: 5,
|
textShadowRadius: 5,
|
||||||
|
fontFamily: "Minecraft",
|
||||||
},
|
},
|
||||||
gridContainer: {
|
gridContainer: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
@ -50,6 +51,7 @@ export const styles = StyleSheet.create({
|
||||||
textShadowColor: "rgba(0, 0, 0, 0.7)",
|
textShadowColor: "rgba(0, 0, 0, 0.7)",
|
||||||
textShadowOffset: { width: 1, height: 1 },
|
textShadowOffset: { width: 1, height: 1 },
|
||||||
textShadowRadius: 3,
|
textShadowRadius: 3,
|
||||||
|
fontFamily: "Minecraft",
|
||||||
},
|
},
|
||||||
|
|
||||||
// --- Coordinate Converter Specific Styles (Adjusted and New) ---
|
// --- Coordinate Converter Specific Styles (Adjusted and New) ---
|
||||||
|
@ -86,6 +88,7 @@ export const styles = StyleSheet.create({
|
||||||
textShadowColor: "rgba(0, 0, 0, 0.7)",
|
textShadowColor: "rgba(0, 0, 0, 0.7)",
|
||||||
textShadowOffset: { width: 1, height: 1 },
|
textShadowOffset: { width: 1, height: 1 },
|
||||||
textShadowRadius: 3,
|
textShadowRadius: 3,
|
||||||
|
fontFamily: "Minecraft",
|
||||||
},
|
},
|
||||||
dimensionContainer: {
|
dimensionContainer: {
|
||||||
width: "90%",
|
width: "90%",
|
||||||
|
@ -105,6 +108,7 @@ export const styles = StyleSheet.create({
|
||||||
textShadowColor: "rgba(0, 0, 0, 0.5)",
|
textShadowColor: "rgba(0, 0, 0, 0.5)",
|
||||||
textShadowOffset: { width: 1, height: 1 },
|
textShadowOffset: { width: 1, height: 1 },
|
||||||
textShadowRadius: 2,
|
textShadowRadius: 2,
|
||||||
|
fontFamily: "Minecraft",
|
||||||
},
|
},
|
||||||
coordinatesRow: {
|
coordinatesRow: {
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
|
@ -124,6 +128,7 @@ export const styles = StyleSheet.create({
|
||||||
textShadowColor: "rgba(0, 0, 0, 0.5)",
|
textShadowColor: "rgba(0, 0, 0, 0.5)",
|
||||||
textShadowOffset: { width: 1, height: 1 },
|
textShadowOffset: { width: 1, height: 1 },
|
||||||
textShadowRadius: 2,
|
textShadowRadius: 2,
|
||||||
|
fontFamily: "Minecraft",
|
||||||
},
|
},
|
||||||
coordTextInput: {
|
coordTextInput: {
|
||||||
backgroundColor: "rgba(58, 58, 58, 0.8)",
|
backgroundColor: "rgba(58, 58, 58, 0.8)",
|
||||||
|
@ -136,8 +141,8 @@ export const styles = StyleSheet.create({
|
||||||
borderColor: "#555",
|
borderColor: "#555",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
textAlign: "center",
|
textAlign: "center",
|
||||||
|
fontFamily: "Minecraft",
|
||||||
},
|
},
|
||||||
|
|
||||||
clearButton: {
|
clearButton: {
|
||||||
backgroundColor: "#d32f2f",
|
backgroundColor: "#d32f2f",
|
||||||
paddingVertical: 12,
|
paddingVertical: 12,
|
||||||
|
@ -149,8 +154,8 @@ export const styles = StyleSheet.create({
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: "bold",
|
fontWeight: "bold",
|
||||||
|
fontFamily: "Minecraft",
|
||||||
},
|
},
|
||||||
|
|
||||||
backButton: {
|
backButton: {
|
||||||
alignSelf: "flex-start",
|
alignSelf: "flex-start",
|
||||||
marginTop: 10,
|
marginTop: 10,
|
||||||
|
@ -165,5 +170,6 @@ export const styles = StyleSheet.create({
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: "bold",
|
fontWeight: "bold",
|
||||||
|
fontFamily: "Minecraft",
|
||||||
},
|
},
|
||||||
});
|
});
|
BIN
assets/fonts/Minecraft.ttf
Normal file
BIN
assets/fonts/Minecraft.ttf
Normal file
Binary file not shown.
12
package-lock.json
generated
12
package-lock.json
generated
|
@ -19,7 +19,7 @@
|
||||||
"expo-haptics": "~14.1.4",
|
"expo-haptics": "~14.1.4",
|
||||||
"expo-image": "~2.3.2",
|
"expo-image": "~2.3.2",
|
||||||
"expo-linking": "~7.1.7",
|
"expo-linking": "~7.1.7",
|
||||||
"expo-router": "~5.1.3",
|
"expo-router": "^5.1.3",
|
||||||
"expo-splash-screen": "~0.30.10",
|
"expo-splash-screen": "~0.30.10",
|
||||||
"expo-status-bar": "~2.2.3",
|
"expo-status-bar": "~2.2.3",
|
||||||
"expo-symbols": "~0.4.5",
|
"expo-symbols": "~0.4.5",
|
||||||
|
@ -30,8 +30,8 @@
|
||||||
"react-native": "0.79.5",
|
"react-native": "0.79.5",
|
||||||
"react-native-gesture-handler": "~2.24.0",
|
"react-native-gesture-handler": "~2.24.0",
|
||||||
"react-native-reanimated": "~3.17.4",
|
"react-native-reanimated": "~3.17.4",
|
||||||
"react-native-safe-area-context": "5.4.0",
|
"react-native-safe-area-context": "^5.5.1",
|
||||||
"react-native-screens": "~4.11.1",
|
"react-native-screens": "^4.11.1",
|
||||||
"react-native-web": "~0.20.0",
|
"react-native-web": "~0.20.0",
|
||||||
"react-native-webview": "13.13.5"
|
"react-native-webview": "13.13.5"
|
||||||
},
|
},
|
||||||
|
@ -10274,9 +10274,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-native-safe-area-context": {
|
"node_modules/react-native-safe-area-context": {
|
||||||
"version": "5.4.0",
|
"version": "5.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-5.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-5.5.1.tgz",
|
||||||
"integrity": "sha512-JaEThVyJcLhA+vU0NU8bZ0a1ih6GiF4faZ+ArZLqpYbL6j7R3caRqj+mE3lEtKCuHgwjLg3bCxLL1GPUJZVqUA==",
|
"integrity": "sha512-WYxV+mm7SWuapVWxq2071lkQlDUXjSwcu7Cc2bUtNcF80/Bl0WnuWAZ8+tO46M38PclMrQIIgbv83BvDHJNQ5g==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "*",
|
"react": "*",
|
||||||
|
|
10
package.json
10
package.json
|
@ -22,7 +22,7 @@
|
||||||
"expo-haptics": "~14.1.4",
|
"expo-haptics": "~14.1.4",
|
||||||
"expo-image": "~2.3.2",
|
"expo-image": "~2.3.2",
|
||||||
"expo-linking": "~7.1.7",
|
"expo-linking": "~7.1.7",
|
||||||
"expo-router": "~5.1.3",
|
"expo-router": "^5.1.3",
|
||||||
"expo-splash-screen": "~0.30.10",
|
"expo-splash-screen": "~0.30.10",
|
||||||
"expo-status-bar": "~2.2.3",
|
"expo-status-bar": "~2.2.3",
|
||||||
"expo-symbols": "~0.4.5",
|
"expo-symbols": "~0.4.5",
|
||||||
|
@ -33,17 +33,17 @@
|
||||||
"react-native": "0.79.5",
|
"react-native": "0.79.5",
|
||||||
"react-native-gesture-handler": "~2.24.0",
|
"react-native-gesture-handler": "~2.24.0",
|
||||||
"react-native-reanimated": "~3.17.4",
|
"react-native-reanimated": "~3.17.4",
|
||||||
"react-native-safe-area-context": "5.4.0",
|
"react-native-safe-area-context": "^5.5.1",
|
||||||
"react-native-screens": "~4.11.1",
|
"react-native-screens": "^4.11.1",
|
||||||
"react-native-web": "~0.20.0",
|
"react-native-web": "~0.20.0",
|
||||||
"react-native-webview": "13.13.5"
|
"react-native-webview": "13.13.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.25.2",
|
"@babel/core": "^7.25.2",
|
||||||
"@types/react": "~19.0.10",
|
"@types/react": "~19.0.10",
|
||||||
"typescript": "~5.8.3",
|
|
||||||
"eslint": "^9.25.0",
|
"eslint": "^9.25.0",
|
||||||
"eslint-config-expo": "~9.2.0"
|
"eslint-config-expo": "~9.2.0",
|
||||||
|
"typescript": "~5.8.3"
|
||||||
},
|
},
|
||||||
"private": true
|
"private": true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue