mirror of
https://github.com/LBRYFoundation/lbry-android.git
synced 2025-08-27 07:23:24 +00:00
179 lines
3.2 KiB
JavaScript
179 lines
3.2 KiB
JavaScript
import { StyleSheet, Dimensions } from 'react-native';
|
|
import Colors from './colors';
|
|
|
|
const screenDimension = Dimensions.get('window');
|
|
const screenWidth = screenDimension.width;
|
|
|
|
const filePageStyle = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
},
|
|
pageContainer: {
|
|
flex: 1
|
|
},
|
|
innerPageContainer: {
|
|
flex: 1,
|
|
marginBottom: 60
|
|
},
|
|
innerPageContainerFsMode: {
|
|
flex: 1,
|
|
marginBottom: 0
|
|
},
|
|
mediaContainer: {
|
|
alignItems: 'center',
|
|
width: screenWidth,
|
|
height: 220
|
|
},
|
|
emptyClaimText: {
|
|
fontFamily: 'Metropolis-Regular',
|
|
textAlign: 'center',
|
|
fontSize: 20,
|
|
marginLeft: 16,
|
|
marginRight: 16
|
|
},
|
|
scrollContainer: {
|
|
flex: 1,
|
|
marginTop: -16,
|
|
marginBottom: -4,
|
|
paddingTop: 10
|
|
},
|
|
scrollContainerActions: {
|
|
flex: 1
|
|
},
|
|
title: {
|
|
fontFamily: 'Metropolis-Bold',
|
|
fontSize: 24,
|
|
marginTop: 12,
|
|
marginLeft: 20,
|
|
marginRight: 20,
|
|
marginBottom: 12
|
|
},
|
|
channelName: {
|
|
fontFamily: 'Metropolis-SemiBold',
|
|
fontSize: 20,
|
|
marginLeft: 20,
|
|
marginRight: 20,
|
|
marginBottom: 20,
|
|
color: Colors.LbryGreen
|
|
},
|
|
description: {
|
|
color: Colors.DescriptionGrey,
|
|
fontFamily: 'Metropolis-Regular',
|
|
fontSize: 16,
|
|
lineHeight: 20,
|
|
marginLeft: 20,
|
|
marginRight: 20,
|
|
marginBottom: 40
|
|
},
|
|
thumbnail: {
|
|
width: screenWidth,
|
|
height: 204,
|
|
justifyContent: 'center',
|
|
alignItems: 'center'
|
|
},
|
|
downloadButton: {
|
|
position: 'absolute',
|
|
top: '40%'
|
|
},
|
|
player: {
|
|
position: 'absolute',
|
|
left: 0,
|
|
top: 0,
|
|
zIndex: 301,
|
|
elevation: 21
|
|
},
|
|
containedPlayer: {
|
|
width: '100%',
|
|
height: 220,
|
|
},
|
|
containedPlayerLandscape: {
|
|
width: '100%',
|
|
height: '100%'
|
|
},
|
|
fullscreenPlayer: {
|
|
width: '100%',
|
|
height: '100%',
|
|
right: 0,
|
|
bottom: 0
|
|
},
|
|
playerBackground: {
|
|
position: 'absolute',
|
|
left: 0,
|
|
top: 0,
|
|
zIndex: 300,
|
|
elevation: 20,
|
|
backgroundColor: Colors.Black
|
|
},
|
|
containedPlayerBackground: {
|
|
width: '100%',
|
|
height: 206,
|
|
},
|
|
fullscreenPlayerBackground: {
|
|
width: '100%',
|
|
height: '100%',
|
|
right: 0,
|
|
bottom: 0
|
|
},
|
|
filePriceContainer: {
|
|
backgroundColor: '#61fcd8',
|
|
justifyContent: 'center',
|
|
position: 'absolute',
|
|
right: 16,
|
|
top: 16,
|
|
width: 56,
|
|
height: 24,
|
|
borderRadius: 4
|
|
},
|
|
filePriceText: {
|
|
fontFamily: 'Metropolis-Bold',
|
|
fontSize: 12,
|
|
textAlign: 'center',
|
|
color: '#0c604b'
|
|
},
|
|
actions: {
|
|
paddingLeft: 16,
|
|
paddingRight: 16,
|
|
paddingTop: 16,
|
|
paddingBottom: 8,
|
|
marginTop: -14,
|
|
width: '50%',
|
|
},
|
|
deleteButton: {
|
|
backgroundColor: Colors.Red,
|
|
width: 80
|
|
},
|
|
loading: {
|
|
position: 'absolute',
|
|
top: '40%'
|
|
},
|
|
busyContainer: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
flexDirection: 'row'
|
|
},
|
|
infoText: {
|
|
fontFamily: 'Metropolis-Regular',
|
|
fontSize: 20,
|
|
textAlign: 'center',
|
|
marginLeft: 10
|
|
},
|
|
viewer: {
|
|
position: 'absolute',
|
|
flex: 1,
|
|
left: 0,
|
|
right: 0,
|
|
top: 0,
|
|
bottom: 60,
|
|
zIndex: 100
|
|
},
|
|
link: {
|
|
color: Colors.LbryGreen
|
|
},
|
|
linkTapped: {
|
|
color: "rgba(64, 184, 154, .2)"
|
|
}
|
|
});
|
|
|
|
export default filePageStyle;
|