Skip to content

Commit

Permalink
💬 parseName -> Correção de texto
Browse files Browse the repository at this point in the history
💄 Diversas padronizações e aumento no espaçamento do loading
  • Loading branch information
pitroldev committed Jun 28, 2020
1 parent d00f376 commit 0b934cd
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const AboutView = styled.View`
padding: 5%;
border-bottom-left-radius: 40px;
border-bottom-right-radius: 40px;
elevation: 12;
elevation: 6;
`;

export const AboutTitle = styled.Text`
Expand Down
2 changes: 1 addition & 1 deletion src/components/Errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Icon = styled(EntypoIcon)`
`;

const Title = styled.Text`
font-size: ${Responsive(18)}px;
font-size: ${Responsive(20)}px;
font-weight: bold;
color: #fff;
align-self: center;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const HeaderV = styled.View`
border-bottom-left-radius: 40px;
border-bottom-right-radius: 40px;
z-index: 1;
elevation: 4;
elevation: 6;
`;

const RowAbsolute = styled.View`
Expand All @@ -46,7 +46,7 @@ const Icon = styled(EntypoIcon)`
`;

const Title = styled.Text`
font-size: ${Responsive(22)}px;
font-size: ${Responsive(24)}px;
font-weight: bold;
color: #fff;
align-self: center;
Expand Down
8 changes: 2 additions & 6 deletions src/components/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,16 @@ export const Button = styled.TouchableOpacity`
`;

export const Text = styled.Text`
font-size: ${Responsive(15)}px;
font-size: ${Responsive(14)}px;
font-weight: bold;
text-align: center;
color: #fff;
align-self: center;
margin-top: 4%;
`;

export const DarkText = styled.Text`
font-size: ${Responsive(15)}px;
font-weight: bold;
text-align: center;
export const DarkText = styled(Text)`
color: #333;
align-self: center;
margin-top: 2%;
`;

Expand Down
6 changes: 1 addition & 5 deletions src/components/styles_carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ export const Next = styled.TouchableOpacity`
left: 80%;
`;

export const Previous = styled.TouchableOpacity`
width: 20%;
height: 100%;
align-self: center;
position: absolute;
export const Previous = styled(Next)`
left: 0%;
`;
2 changes: 1 addition & 1 deletion src/pages/Main/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const Refresh = styled.ScrollView`
`;

export const Loading = styled.ActivityIndicator`
margin-top: 10%;
margin-top: 50%;
`;

export const Background = styled.View`
Expand Down
1 change: 1 addition & 0 deletions src/utils/parseName.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default function parser(string, info) {
string = string.replace(', ', '\n'); // Virgula -> Quebra de Linha
string = string.replace(' e f', '\nF'); // Quebra de Linha pro feijão
string = string.replace('arroz', 'Arroz'); // arroz -> Arroz
string = string.replace(' a ', ' à '); // Crase no a entre palavras:: Lasanha a Bolonhesa -> Lasanha à Bolonhesa

return string;
} catch (e) {
Expand Down

0 comments on commit 0b934cd

Please sign in to comment.