Skip to content

Commit

Permalink
add custom font
Browse files Browse the repository at this point in the history
  • Loading branch information
ariear committed Nov 24, 2022
1 parent a674f3b commit a7ff7b8
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 20 deletions.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Rubik-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion src/components/BtnAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const style = StyleSheet.create({
paddingVertical: 10,
textAlign: 'center',
borderRadius: 7,
fontWeight: '500'
fontWeight: '500',
fontFamily: 'Rubik-Regular'
}
})

Expand Down
3 changes: 2 additions & 1 deletion src/components/BtnNime.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const style = StyleSheet.create({
paddingHorizontal: 14,
paddingVertical: 7,
borderRadius: 50,
fontSize: 12
fontSize: 12,
fontFamily: 'Rubik-Light'
},
})

Expand Down
3 changes: 2 additions & 1 deletion src/components/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ const style = StyleSheet.create({
title: {
fontSize: 16,
color: '#1C1D27',
paddingVertical: 5
paddingVertical: 5,
fontFamily: 'Rubik-Regular'
},
episode: {
fontSize: 14,
Expand Down
6 changes: 4 additions & 2 deletions src/components/ContentModalAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ const style = StyleSheet.create({
fontWeight: '500',
color: '#372948',
letterSpacing: 0.3,
marginBottom: 16
marginBottom: 16,
fontFamily: 'Rubik-Medium'
},
btn: {
textAlign: 'center',
paddingVertical: 10,
borderRadius: 5,
color: '#372948',
fontWeight: '500'
fontWeight: '500',
fontFamily: 'Rubik-Regular'
}
})

Expand Down
3 changes: 2 additions & 1 deletion src/components/NavClose.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const style = StyleSheet.create({
fontSize: 18,
color: '#FFFFFF',
fontWeight: '500',
letterSpacing: 0.7
letterSpacing: 0.7,
fontFamily: 'Rubik-Medium'
}
})

Expand Down
3 changes: 2 additions & 1 deletion src/components/NavMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const style = StyleSheet.create({
fontSize: 20,
fontWeight: '500',
letterSpacing: 0.8,
color: '#FFFFFF'
color: '#FFFFFF',
fontFamily: 'Rubik-Medium'
}
})

Expand Down
3 changes: 2 additions & 1 deletion src/components/UsedInet.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ const style = StyleSheet.create({
marginBottom: 5
},
inettitle: {
color: '#FFFFFF'
color: '#FFFFFF',
fontFamily: 'Rubik-Light'
},
wrapnime: {
flexDirection: 'row',
Expand Down
14 changes: 9 additions & 5 deletions src/components/WallpaperSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const WallpaperSet = ({pickImage, wallpaper, opacity, setOpacity}) => {
<View>
<Text style={style.title}>Wallpaper</Text>
<View style={style.wrapContent}>
<Text style={{ marginBottom: 10 }}>Pilih gambar</Text>
<Text style={style.titleDes}>Pilih gambar</Text>
<BtnAction title="Pilih" bgcolor='#8D9EFF' handler={pickImage} />

<View style={style.coverWrap}>
Expand All @@ -19,9 +19,9 @@ const WallpaperSet = ({pickImage, wallpaper, opacity, setOpacity}) => {
}
</View>

<Text style={{ marginBottom: 10 }}>Transparansi wallpaper</Text>
<Text style={style.titleDes}>Transparansi wallpaper</Text>
<View style={style.wrapContent}>
<Text style={{ textAlign: 'center', color: 'white' }}>{parseInt(opacity * 100)}%</Text>
<Text style={{ textAlign: 'center', color: 'white', fontFamily: 'Rubik-Regular' }}>{parseInt(opacity * 100)}%</Text>
<Slider
style={{ width: '100%', height: 40 }}
minimumValue={0}
Expand All @@ -39,8 +39,8 @@ const WallpaperSet = ({pickImage, wallpaper, opacity, setOpacity}) => {

const style = StyleSheet.create({
title: {
fontWeight: '700',
marginBottom: 10
marginBottom: 10,
fontFamily: 'Rubik-Medium'
},
wrapContent: {
borderWidth: 1,
Expand All @@ -63,6 +63,10 @@ const style = StyleSheet.create({
height: 200,
resizeMode: 'contain',
backgroundColor: '#282A3A'
},
titleDes: {
fontFamily: 'Rubik-Regular',
marginBottom: 10
}
})

Expand Down
7 changes: 4 additions & 3 deletions src/screens/AddAnime.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const AddAnime = ({navigation, route}) => {
isLoading={isLoading} />
<View style={style.wrapcontent}>
<Text style={style.label}>Pilih sampul</Text>
<TouchableNativeFeedback onPress={pickCoverLocal}><View style={[style.btn,{backgroundColor: '#47B5FF'}]}><Text style={{ color: '#FFFFFF' }}>Pilih</Text></View></TouchableNativeFeedback>
<TouchableNativeFeedback onPress={pickCoverLocal}><View style={[style.btn,{backgroundColor: '#47B5FF'}]}><Text style={{ color: '#FFFFFF', fontFamily: 'Rubik-Regular' }}>Pilih</Text></View></TouchableNativeFeedback>
<View style={style.coverWrap}>
{
cover &&
Expand All @@ -130,7 +130,7 @@ const AddAnime = ({navigation, route}) => {
}
</View>
</View>
<TouchableNativeFeedback onPress={addHandler} ><View style={[style.btn,{backgroundColor: '#8D9EFF'}]}><Text style={{ color: '#FFFFFF' }}>Simpan</Text></View></TouchableNativeFeedback>
<TouchableNativeFeedback onPress={addHandler} ><View style={[style.btn,{backgroundColor: '#8D9EFF'}]}><Text style={{ color: '#FFFFFF', fontFamily: 'Rubik-Regular' }}>Simpan</Text></View></TouchableNativeFeedback>
</ScrollView>
</View>
)
Expand All @@ -146,7 +146,8 @@ const style = StyleSheet.create({
marginBottom: 7,
color: '#FFFFFF',
fontSize: 16,
fontWeight: '500'
fontWeight: '500',
fontFamily: 'Rubik-Regular'
},
wrapcontent: {
marginBottom: 10
Expand Down
12 changes: 8 additions & 4 deletions src/screens/DetailAnime.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,18 @@ const style = StyleSheet.create({
fontSize: 28,
color: '#FFFFFF',
fontWeight: '500',
marginBottom: 7
marginBottom: 7,
fontFamily: 'Rubik-Medium'
},
episode: {
fontSize: 16,
color: '#975C8D',
marginBottom: 5
marginBottom: 5,
fontFamily: 'Rubik-Regular'
},
endepisode: {
color: '#372948'
color: '#372948',
fontFamily: 'Rubik-Regular'
},
wrapCardEpisode: {
marginTop: 20
Expand All @@ -130,7 +133,8 @@ const style = StyleSheet.create({
padding: 16,
borderRadius: 5,
color: '#FFFFFF',
lineHeight: 20
lineHeight: 20,
fontFamily: 'Rubik-Light'
}
})

Expand Down

0 comments on commit a7ff7b8

Please sign in to comment.