From ccef0d0d400a3f3913f26dff81aca93f41862021 Mon Sep 17 00:00:00 2001 From: Nayif Noushad Date: Tue, 15 Apr 2025 13:35:42 +0530 Subject: [PATCH] some elements --- app.json | 12 ++-- src/components/metadata/CastSection.tsx | 49 +++++++++------- src/screens/StreamScreen.tsx | 1 - src/screens/StreamsScreen.tsx | 75 ++++++++++++++++++++++++- 4 files changed, 109 insertions(+), 28 deletions(-) delete mode 100644 src/screens/StreamScreen.tsx diff --git a/app.json b/app.json index ec82ab8f..a5b08661 100644 --- a/app.json +++ b/app.json @@ -1,7 +1,7 @@ { "expo": { - "name": "Stremio Expo", - "slug": "stremio-expo", + "name": "Nuvio", + "slug": "nuvio", "version": "1.0.0", "orientation": "default", "icon": "./assets/icon.png", @@ -30,15 +30,17 @@ "INTERNET", "WAKE_LOCK" ], - "package": "com.nuvio.app" + "package": "com.nuvio.app", + "enableSplitAPKs": true }, "web": { "favicon": "./assets/favicon.png" }, "extra": { "eas": { - "projectId": "7a199ed7-d3dc-46df-b39e-2ddf68089981" + "projectId": "909107b8-fe61-45ce-b02f-b02510d306a6" } - } + }, + "owner": "nayifleo" } } diff --git a/src/components/metadata/CastSection.tsx b/src/components/metadata/CastSection.tsx index 06f24792..950c827f 100644 --- a/src/components/metadata/CastSection.tsx +++ b/src/components/metadata/CastSection.tsx @@ -64,13 +64,15 @@ export const CastSection: React.FC = ({ ) : ( )} - {member.name} - {member.character} + + {member.name} + {member.character} + ))} @@ -82,7 +84,7 @@ const styles = StyleSheet.create({ loadingContainer: { alignItems: 'center', justifyContent: 'center', - padding: 20, + padding: 12, }, castSection: { marginTop: 0, @@ -90,43 +92,47 @@ const styles = StyleSheet.create({ }, sectionTitle: { color: colors.highEmphasis, - fontSize: 20, - fontWeight: '800', - marginBottom: 12, - marginTop: 8, + fontSize: 18, + fontWeight: '700', + marginBottom: 10, paddingHorizontal: 16, }, castScrollContainer: { - marginTop: 8, + marginTop: 4, }, castContainer: { - marginVertical: 8, + paddingHorizontal: 12, + paddingVertical: 4, }, castMember: { - width: 100, - marginRight: 16, + width: 80, + marginRight: 12, alignItems: 'center', }, castImageContainer: { - width: 80, - height: 80, - borderRadius: 40, + width: 64, + height: 64, + borderRadius: 32, backgroundColor: colors.elevation2, justifyContent: 'center', alignItems: 'center', overflow: 'hidden', - marginBottom: 8, + marginBottom: 6, borderWidth: 1, borderColor: 'rgba(255,255,255,0.1)', }, castImage: { - width: 80, - height: 80, - borderRadius: 40, + width: 64, + height: 64, + borderRadius: 32, + }, + castTextContainer: { + width: '100%', + alignItems: 'center', }, castName: { color: colors.highEmphasis, - fontSize: 14, + fontSize: 13, fontWeight: '600', textAlign: 'center', }, @@ -134,6 +140,7 @@ const styles = StyleSheet.create({ color: colors.mediumEmphasis, fontSize: 12, textAlign: 'center', - marginTop: 4, + marginTop: 2, + opacity: 0.8, }, }); \ No newline at end of file diff --git a/src/screens/StreamScreen.tsx b/src/screens/StreamScreen.tsx deleted file mode 100644 index 0519ecba..00000000 --- a/src/screens/StreamScreen.tsx +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/screens/StreamsScreen.tsx b/src/screens/StreamsScreen.tsx index b839281f..01bedf2c 100644 --- a/src/screens/StreamsScreen.tsx +++ b/src/screens/StreamsScreen.tsx @@ -11,7 +11,8 @@ import { ImageBackground, ScrollView, StatusBar, - Alert + Alert, + Dimensions } from 'react-native'; import { useRoute, useNavigation } from '@react-navigation/native'; import { RouteProp } from '@react-navigation/native'; @@ -50,6 +51,8 @@ const TMDB_LOGO = 'https://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Tmd const HDR_ICON = 'https://uxwing.com/wp-content/themes/uxwing/download/video-photography-multimedia/hdr-icon.png'; const DOLBY_ICON = 'https://upload.wikimedia.org/wikipedia/en/thumb/3/3f/Dolby_Vision_%28logo%29.svg/512px-Dolby_Vision_%28logo%29.svg.png?20220908042900'; +const { width, height } = Dimensions.get('window'); + // Extracted Components const StreamCard = memo(({ stream, onPress, index, torrentProgress, isLoading, statusMessage }: { stream: Stream; @@ -927,6 +930,41 @@ export const StreamsScreen = () => { + {type === 'movie' && metadata && ( + + + + + {metadata.logo ? ( + + ) : ( + + {metadata.name} + + )} + + + + + )} + {type === 'series' && currentEpisode && (