Skip to content

Commit 90cb2b3

Browse files
authored
Merge pull request #68 from giolaq/main
Remove movie title from movie cards
2 parents dfcd5fb + cff41de commit 90cb2b3

1 file changed

Lines changed: 121 additions & 124 deletions

File tree

packages/shared-ui/src/screens/HomeScreen.tsx

Lines changed: 121 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ const MovieItem = React.memo(
4444
onError={(error) => console.log('Image load error:', item.title, error.nativeEvent.error)}
4545
onLoad={() => console.log('Image loaded:', item.title)}
4646
/>
47-
<View style={styles.thumbnailTextContainer}>
48-
<Text style={styles.thumbnailText} numberOfLines={2}>{item.title}</Text>
49-
</View>
5047
</View>
5148
);
5249
},
@@ -207,125 +204,125 @@ export default function HomeScreen() {
207204
}
208205

209206
const gridStyles = StyleSheet.create({
210-
container: {
211-
flex: 1,
212-
backgroundColor: colors.background,
213-
},
214-
scrollContent: {
215-
flex: 1,
216-
marginBottom: scaledPixels(safeZones.actionSafe.vertical),
217-
},
218-
highlightsTitle: {
219-
color: colors.text,
220-
fontSize: scaledPixels(40),
221-
fontWeight: 'bold',
222-
marginBottom: scaledPixels(16),
223-
marginTop: scaledPixels(20),
224-
textShadowColor: 'rgba(0, 0, 0, 0.9)',
225-
textShadowOffset: { width: 0, height: 2 },
226-
textShadowRadius: 8,
227-
},
228-
headerTitle: {
229-
color: colors.text,
230-
fontSize: scaledPixels(56),
231-
fontWeight: 'bold',
232-
marginBottom: scaledPixels(16),
233-
textShadowColor: 'rgba(0, 0, 0, 0.9)',
234-
textShadowOffset: { width: 0, height: 2 },
235-
textShadowRadius: 12,
236-
},
237-
headerDescription: {
238-
color: colors.text,
239-
fontSize: scaledPixels(28),
240-
fontWeight: '500',
241-
lineHeight: scaledPixels(40),
242-
textShadowColor: 'rgba(0, 0, 0, 0.9)',
243-
textShadowOffset: { width: 0, height: 2 },
244-
textShadowRadius: 8,
245-
},
246-
thumbnailTextContainer: {
247-
position: 'absolute',
248-
bottom: 0,
249-
left: 0,
250-
right: 0,
251-
backgroundColor: colors.scrimDark,
252-
paddingHorizontal: scaledPixels(16),
253-
paddingVertical: scaledPixels(12),
254-
borderBottomLeftRadius: scaledPixels(8),
255-
borderBottomRightRadius: scaledPixels(8),
256-
},
257-
thumbnailText: {
258-
color: colors.text,
259-
fontSize: scaledPixels(24),
260-
fontWeight: '600',
261-
textAlign: 'center',
262-
lineHeight: scaledPixels(32),
263-
},
264-
highlightThumbnail: {
265-
width: scaledPixels(420),
266-
height: scaledPixels(260),
267-
marginRight: scaledPixels(20),
268-
backgroundColor: colors.card,
269-
borderRadius: scaledPixels(12),
270-
borderWidth: scaledPixels(5),
271-
borderColor: 'transparent',
272-
overflow: 'hidden',
273-
},
274-
highlightThumbnailFocused: {
275-
borderColor: colors.focusBorder,
276-
borderWidth: scaledPixels(6),
277-
transform: [{ scale: 1.1 }],
278-
shadowColor: colors.focus,
279-
shadowOffset: {
280-
width: 0,
281-
height: 0,
282-
},
283-
shadowOpacity: 0.9,
284-
shadowRadius: scaledPixels(20),
285-
elevation: 15,
286-
},
287-
highlightsContainer: {
288-
paddingHorizontal: scaledPixels(safeZones.actionSafe.horizontal),
289-
paddingVertical: scaledPixels(16),
290-
height: scaledPixels(400),
291-
},
292-
thumbnailPlaceholder: {
293-
backgroundColor: colors.cardElevated,
294-
width: '100%',
295-
height: '100%',
296-
borderRadius: scaledPixels(8),
297-
},
298-
header: {
299-
width: '100%',
300-
height: scaledPixels(700),
301-
position: 'relative',
302-
},
303-
headerImage: {
304-
width: '100%',
305-
height: '100%',
306-
resizeMode: 'cover',
307-
},
308-
gradientLeft: {
309-
position: 'absolute',
310-
left: 0,
311-
top: 0,
312-
bottom: 0,
313-
width: '65%',
314-
},
315-
headerTextContainer: {
316-
position: 'absolute',
317-
left: scaledPixels(safeZones.titleSafe.horizontal),
318-
top: scaledPixels(safeZones.titleSafe.vertical),
319-
bottom: scaledPixels(safeZones.titleSafe.vertical),
320-
justifyContent: 'center',
321-
width: '55%',
322-
},
323-
highlightsList: {
324-
paddingLeft: scaledPixels(20),
325-
},
326-
cardImage: {
327-
width: '100%',
328-
height: '100%',
329-
borderRadius: scaledPixels(8),
207+
container: {
208+
flex: 1,
209+
backgroundColor: colors.background,
210+
},
211+
scrollContent: {
212+
flex: 1,
213+
marginBottom: scaledPixels(safeZones.actionSafe.vertical),
214+
},
215+
highlightsTitle: {
216+
color: colors.text,
217+
fontSize: scaledPixels(40),
218+
fontWeight: 'bold',
219+
marginBottom: scaledPixels(16),
220+
marginTop: scaledPixels(20),
221+
textShadowColor: 'rgba(0, 0, 0, 0.9)',
222+
textShadowOffset: { width: 0, height: 2 },
223+
textShadowRadius: 8,
224+
},
225+
headerTitle: {
226+
color: colors.text,
227+
fontSize: scaledPixels(56),
228+
fontWeight: 'bold',
229+
marginBottom: scaledPixels(16),
230+
textShadowColor: 'rgba(0, 0, 0, 0.9)',
231+
textShadowOffset: { width: 0, height: 2 },
232+
textShadowRadius: 12,
233+
},
234+
headerDescription: {
235+
color: colors.text,
236+
fontSize: scaledPixels(28),
237+
fontWeight: '500',
238+
lineHeight: scaledPixels(40),
239+
textShadowColor: 'rgba(0, 0, 0, 0.9)',
240+
textShadowOffset: { width: 0, height: 2 },
241+
textShadowRadius: 8,
242+
},
243+
thumbnailTextContainer: {
244+
position: 'absolute',
245+
bottom: 0,
246+
left: 0,
247+
right: 0,
248+
backgroundColor: colors.scrimDark,
249+
paddingHorizontal: scaledPixels(16),
250+
paddingVertical: scaledPixels(12),
251+
borderBottomLeftRadius: scaledPixels(8),
252+
borderBottomRightRadius: scaledPixels(8),
253+
},
254+
thumbnailText: {
255+
color: colors.text,
256+
fontSize: scaledPixels(24),
257+
fontWeight: '600',
258+
textAlign: 'center',
259+
lineHeight: scaledPixels(32),
260+
},
261+
highlightThumbnail: {
262+
width: scaledPixels(420),
263+
height: scaledPixels(260),
264+
marginRight: scaledPixels(20),
265+
backgroundColor: colors.card,
266+
borderRadius: scaledPixels(12),
267+
borderWidth: scaledPixels(5),
268+
borderColor: 'transparent',
269+
overflow: 'hidden',
270+
},
271+
highlightThumbnailFocused: {
272+
borderColor: colors.focusBorder,
273+
borderWidth: scaledPixels(6),
274+
transform: [{ scale: 1.1 }],
275+
shadowColor: colors.focus,
276+
shadowOffset: {
277+
width: 0,
278+
height: 0,
330279
},
331-
});
280+
shadowOpacity: 0.9,
281+
shadowRadius: scaledPixels(20),
282+
elevation: 15,
283+
},
284+
highlightsContainer: {
285+
paddingHorizontal: scaledPixels(safeZones.actionSafe.horizontal),
286+
paddingVertical: scaledPixels(16),
287+
height: scaledPixels(400),
288+
},
289+
thumbnailPlaceholder: {
290+
backgroundColor: colors.cardElevated,
291+
width: '100%',
292+
height: '100%',
293+
borderRadius: scaledPixels(8),
294+
},
295+
header: {
296+
width: '100%',
297+
height: scaledPixels(700),
298+
position: 'relative',
299+
},
300+
headerImage: {
301+
width: '100%',
302+
height: '100%',
303+
resizeMode: 'cover',
304+
},
305+
gradientLeft: {
306+
position: 'absolute',
307+
left: 0,
308+
top: 0,
309+
bottom: 0,
310+
width: '65%',
311+
},
312+
headerTextContainer: {
313+
position: 'absolute',
314+
left: scaledPixels(safeZones.titleSafe.horizontal),
315+
top: scaledPixels(safeZones.titleSafe.vertical),
316+
bottom: scaledPixels(safeZones.titleSafe.vertical),
317+
justifyContent: 'center',
318+
width: '55%',
319+
},
320+
highlightsList: {
321+
paddingLeft: scaledPixels(20),
322+
},
323+
cardImage: {
324+
width: '100%',
325+
height: '100%',
326+
borderRadius: scaledPixels(8),
327+
},
328+
});

0 commit comments

Comments
 (0)