Skip to content

Commit

Permalink
Font family updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Olmedo committed Feb 5, 2022
1 parent d5fd789 commit 8944fe9
Show file tree
Hide file tree
Showing 73 changed files with 259 additions and 58 deletions.
Binary file added android/app/src/main/assets/fonts/AntDesign.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Entypo.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/EvilIcons.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Feather.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Fontisto.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Foundation.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Ionicons.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Octicons.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Zocial.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-Black.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-BlackItalic.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-BoldItalic.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-ExtraBold.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-ExtraLight.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-ExtraLightItalic.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-Italic.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-Light.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-LightItalic.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-Medium.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-MediumItalic.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-SemiBold.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-SemiBoldItalic.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-Thin.ttf
Binary file not shown.
Binary file added assets/fonts/Poppins-ThinItalic.ttf
Binary file not shown.
114 changes: 114 additions & 0 deletions ios/CovidApp.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

45 changes: 30 additions & 15 deletions ios/CovidApp/Images.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,52 @@
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
"scale" : "3x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
"scale" : "3x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
"scale" : "3x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
}
21 changes: 20 additions & 1 deletion ios/CovidApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</dict>
</dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<string/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
Expand Down Expand Up @@ -80,6 +80,25 @@
<string>Octicons.ttf</string>
<string>Zocial.ttf</string>
<string>Fontisto.ttf</string>
<string>Poppins.ttf</string>
<string>Poppins-Black.ttf</string>
<string>Poppins-BlackItalic.ttf</string>
<string>Poppins-Bold.ttf</string>
<string>Poppins-BoldItalic.ttf</string>
<string>Poppins-ExtraBold.ttf</string>
<string>Poppins-ExtraBoldItalic.ttf</string>
<string>Poppins-ExtraLight.ttf</string>
<string>Poppins-ExtraLightItalic.ttf</string>
<string>Poppins-Italic.ttf</string>
<string>Poppins-Light.ttf</string>
<string>Poppins-LightItalic.ttf</string>
<string>Poppins-Medium.ttf</string>
<string>Poppins-MediumItalic.ttf</string>
<string>Poppins-Regular.ttf</string>
<string>Poppins-SemiBold.ttf</string>
<string>Poppins-SemiBoldItalic.ttf</string>
<string>Poppins-Thin.ttf</string>
<string>Poppins-ThinItalic.ttf</string>
</array>
</dict>
</plist>
7 changes: 7 additions & 0 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
project: {
ios: {},
android: {},
},
assets: ['./assets/fonts/'],
};
5 changes: 3 additions & 2 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { FC } from 'react';
import { Text, TouchableOpacity } from 'react-native';
import { TouchableOpacity } from 'react-native';
import { TextCA } from '@components/TextCA';
import styles from './styles';

type ButtonProps = {
Expand All @@ -25,7 +26,7 @@ export const Button: FC<ButtonProps> = ({
const textStyle = textStyles[type];
return (
<TouchableOpacity style={containerStyle} onPress={onPress}>
<Text style={textStyle}>{title}</Text>
<TextCA style={textStyle}>{title}</TextCA>
</TouchableOpacity>
);
};
9 changes: 5 additions & 4 deletions src/components/CountryItem/CountryItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { FC } from 'react';
import { Text, TouchableOpacity } from 'react-native';
import { TouchableOpacity } from 'react-native';
import { Country } from '@common-types/index';
import styles from './styles';
import { TextCA } from '@components/TextCA';

type CountryItemProps = {
country: Country;
Expand All @@ -16,9 +17,9 @@ export const CountryItem: FC<CountryItemProps> = ({

return (
<TouchableOpacity style={styles.container} onPress={onPress}>
<Text style={styles.name}>
{country.Country} <Text style={styles.code}>({ISO2})</Text>
</Text>
<TextCA style={styles.name}>
{country.Country} <TextCA style={styles.code}>({ISO2})</TextCA>
</TextCA>
</TouchableOpacity>
);
};
2 changes: 1 addition & 1 deletion src/components/CountryItem/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default StyleSheet.create({
name: {
fontSize: fontSizes.M,
color: colors.green,
fontWeight: 'bold',
fontWeight: '600',
},
code: {
fontSize: fontSizes.XS,
Expand Down
7 changes: 4 additions & 3 deletions src/components/DateCasesItem/DateCasesItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { FC } from 'react';
import { Text, View } from 'react-native';
import { View } from 'react-native';
import format from 'date-fns/format';
import styles from './styles';
import { TextCA } from '@components/TextCA';

type DateCasesItemProps = {
date: string;
Expand All @@ -18,8 +19,8 @@ export const DateCasesItem: FC<DateCasesItemProps> = ({

return (
<View style={styles.container}>
<Text style={styles.date}>{formatDate(date)}</Text>
<Text style={styles.cases}>{cases}</Text>
<TextCA style={styles.date}>{formatDate(date)}</TextCA>
<TextCA style={styles.cases}>{cases}</TextCA>
</View>
);
};
4 changes: 2 additions & 2 deletions src/components/DateCasesItem/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ export default StyleSheet.create({
date: {
fontSize: fontSizes.S,
color: colors.white,
fontWeight: '400',
fontWeight: '300',
marginLeft: spacings.XXL,
},
cases: {
fontSize: fontSizes.S,
color: colors.white,
fontWeight: 'bold',
fontWeight: '500',
marginRight: spacings.XXL,
},
});
5 changes: 3 additions & 2 deletions src/components/Divider/Divider.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { TextCA } from '@components/TextCA';
import React, { FC } from 'react';
import { View, Text } from 'react-native';
import { View } from 'react-native';
import styles from './styles';

export const Divider: FC = (): JSX.Element => {
return (
<View style={styles.container}>
<View style={styles.line} />
<Text style={styles.text}>OR</Text>
<TextCA style={styles.text}>OR</TextCA>
<View style={styles.line} />
</View>
);
Expand Down
2 changes: 2 additions & 0 deletions src/components/Input/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ export default StyleSheet.create({
fontSize: fontSizes.S,
paddingLeft: spacings.XS,
marginVertical: spacings.XS,
fontFamily: 'Poppins-SemiBold',
fontWeight: '300',
},
});
11 changes: 11 additions & 0 deletions src/components/TextCA/TextCA.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React, { FC } from 'react';
import { Text, TextProps } from 'react-native';
import styles from './styles';

export const TextCA: FC<TextProps> = ({ children, ...props }): JSX.Element => {
return (
<Text {...props} style={[styles.text, props.style]}>
{children}
</Text>
);
};
1 change: 1 addition & 0 deletions src/components/TextCA/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './TextCA';
11 changes: 11 additions & 0 deletions src/components/TextCA/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { colors, fontSizes } from '@utils/styles';
import { StyleSheet } from 'react-native';

export default StyleSheet.create({
text: {
fontFamily: 'Poppins-SemiBold',
fontWeight: '400',
fontSize: fontSizes.L,
color: colors.black,
},
});
5 changes: 4 additions & 1 deletion src/navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const HomeStackComponent = (): JSX.Element => {
headerTitleStyle: {
color: colors.white,
fontSize: fontSizes.L,
fontFamily: 'Poppins-SemiBold',
fontWeight: '500',
},
}}>
<HomeStack.Screen
Expand Down Expand Up @@ -93,7 +95,8 @@ export const RootNavigator = (): JSX.Element => {

return (
<NavigationContainer>
<RootStack.Navigator>
<RootStack.Navigator
screenOptions={{ cardStyle: { backgroundColor: colors.blue } }}>
{!isLoggedIn ? (
<RootStack.Screen
name="Login"
Expand Down
19 changes: 10 additions & 9 deletions src/screens/ConfirmedCases/ConfirmedCases.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useContext, useState, FC } from 'react';
import { View, Text, FlatList, ActivityIndicator } from 'react-native';
import { View, FlatList, ActivityIndicator } from 'react-native';
import { DateCasesItem, SortIcon } from '@components/index';
import { getCasesByCountry } from '@services/index';
import { store } from '@store/index';
Expand All @@ -8,6 +8,7 @@ import { ConfirmedCasesProps } from '@navigation/index';
import { ConfirmedCases } from '@common-types/index';
import styles from './styles';
import { IAppContextWithDispatch } from '@store/types';
import { TextCA } from '@components/TextCA';

export const ConfirmedCasesFn: FC<ConfirmedCasesProps> = ({
route,
Expand Down Expand Up @@ -62,23 +63,23 @@ export const ConfirmedCasesFn: FC<ConfirmedCasesProps> = ({
if (!confirmedCases[id]?.length) {
return (
<View style={styles.container}>
<Text style={styles.title}>We're sorry!</Text>
<Text style={styles.subtitle}>
We do not have information for the selected country.
</Text>
<TextCA style={styles.title}>We're sorry!</TextCA>
<TextCA style={styles.subtitle}>
We don't have information for the selected country.
</TextCA>
</View>
);
}

return (
<View style={styles.container}>
<View style={styles.titlesContainer}>
<Text style={styles.date}>
<TextCA style={styles.date}>
Date <SortIcon sort={sortByDate} />
</Text>
<Text style={styles.cases}>
</TextCA>
<TextCA style={styles.cases}>
Cases <SortIcon sort={sortByCases} />
</Text>
</TextCA>
</View>
<FlatList
style={styles.list}
Expand Down
10 changes: 3 additions & 7 deletions src/screens/ConfirmedCases/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,28 @@ export default StyleSheet.create({
},
date: {
fontSize: fontSizes.M,
fontWeight: '600',
color: colors.green,
marginLeft: spacings.XXL,
},
cases: {
fontSize: fontSizes.M,
fontWeight: '600',
color: colors.green,
marginRight: spacings.XXS,
},
text: {
fontSize: fontSizes.XL,
fontWeight: '600',
},
list: {
width: '100%',
},
title: {
fontSize: fontSizes.L,
fontWeight: '600',
fontWeight: '500',
color: colors.white,
marginBottom: spacings.M,
},
subtitle: {
fontSize: fontSizes.S,
fontWeight: '300',
color: colors.white,
textAlign: 'center',
marginHorizontal: spacings.M,
},
});
Loading

0 comments on commit 8944fe9

Please sign in to comment.