add images

This commit is contained in:
Stef-00012 2025-01-22 16:36:35 +01:00
parent e983d29290
commit 79d03f55af
No known key found for this signature in database
GPG key ID: 28BE9A9E4EF0E6BF
10 changed files with 30 additions and 14 deletions

View file

@ -6,8 +6,8 @@
"orientation": "portrait", "orientation": "portrait",
"icon": "./assets/images/icon.png", "icon": "./assets/images/icon.png",
"scheme": "zipline", "scheme": "zipline",
"userInterfaceStyle": "automatic",
"newArchEnabled": true, "newArchEnabled": true,
"userInterfaceStyle": "automatic",
"ios": { "ios": {
"supportsTablet": true, "supportsTablet": true,
"bundleIdentifier": "com.stefdp.zipline" "bundleIdentifier": "com.stefdp.zipline"
@ -15,10 +15,15 @@
"android": { "android": {
"adaptiveIcon": { "adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png", "foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff" "monochromeImage": "./assets/images/monochromatic-adaptive-icon.png",
"backgroundColor": "#121317"
}, },
"package": "com.stefdp.zipline" "package": "com.stefdp.zipline"
}, },
"androidStatusBar.barStyle": {
"backgroundColor": "#0c101c",
"barStyle": "light-content"
},
"web": { "web": {
"bundler": "metro", "bundler": "metro",
"output": "static", "output": "static",
@ -26,13 +31,19 @@
}, },
"plugins": [ "plugins": [
"expo-router", "expo-router",
[
"expo-secure-store",
{
"faceIDPermission": "Allow $(PRODUCT_NAME) to access your Face ID biometric data."
}
],
[ [
"expo-splash-screen", "expo-splash-screen",
{ {
"image": "./assets/images/splash-icon.png", "image": "./assets/images/splash-icon.png",
"imageWidth": 200, "imageWidth": 300,
"resizeMode": "contain", "resizeMode": "contain",
"backgroundColor": "#ffffff" "backgroundColor": "#121317"
} }
], ],
[ [

View file

@ -19,7 +19,7 @@ export default function NotFoundScreen() {
}); });
}} }}
> >
<Text styles={styles.buttonText}>Head to the Dashboard</Text> <Text style={styles.buttonText}>Head to the Dashboard</Text>
</Pressable> </Pressable>
</View> </View>
); );

View file

@ -1,7 +1,7 @@
import { Slot, useRouter } from "expo-router";
import Header from "@/components/Header";
import { ShareIntentProvider } from "expo-share-intent"; import { ShareIntentProvider } from "expo-share-intent";
import { Slot, useRouter } from "expo-router";
import { StatusBar } from 'expo-status-bar';
import Header from "@/components/Header";
export default function Layout() { export default function Layout() {
const router = useRouter(); const router = useRouter();
@ -18,6 +18,11 @@ export default function Layout() {
}), }),
}} }}
> >
<StatusBar
style="light"
backgroundColor="#0c101c"
/>
<Header/> <Header/>
<Slot /> <Slot />
</ShareIntentProvider> </ShareIntentProvider>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Before After
Before After

View file

@ -1,11 +1,11 @@
import { getCurrentUser, getCurrentUserAvatar } from "@/functions/zipline/user";
import { Stack, IconButton } from "@react-native-material/core"; import { Stack, IconButton } from "@react-native-material/core";
import MaterialIcons from "@expo/vector-icons/MaterialIcons"; import MaterialIcons from "@expo/vector-icons/MaterialIcons";
import { View, Text, Pressable, Image } from "react-native"; import { View, Text, Pressable, Image } from "react-native";
import type React from "react";
import { styles } from "@/styles/header";
import { useEffect, useState } from "react";
import { getCurrentUser, getCurrentUserAvatar } from "@/functions/zipline/user";
import type { APISelfUser } from "@/types/zipline"; import type { APISelfUser } from "@/types/zipline";
import { useEffect, useState } from "react";
import { styles } from "@/styles/header";
import type React from "react";
export default function Header() { export default function Header() {
const [avatar, setAvatar] = useState<string | null>(null); const [avatar, setAvatar] = useState<string | null>(null);
@ -19,7 +19,7 @@ export default function Header() {
setAvatar(avatar); setAvatar(avatar);
setUser(user); setUser(user);
})(); })();
}, []); });
return ( return (
<View> <View>

View file

@ -21,7 +21,7 @@ export const styles = StyleSheet.create({
loginContainer: { loginContainer: {
display: "flex", display: "flex",
flex: 1, flex: 1,
backgroundColor: "#181c28", backgroundColor: "#0c101c",
justifyContent: "center", justifyContent: "center",
alignContent: "center", alignContent: "center",
}, },