-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating mobile app styles • refactoring code
- Loading branch information
1 parent
e22d056
commit 5abf5ca
Showing
17 changed files
with
677 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 58 additions & 16 deletions
74
libs/features/src/lib/navigation/header/header.module.native.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,87 @@ | ||
import { | ||
THEME_NETURAL_100, | ||
THEME_NETURAL_200, | ||
THEME_RADIUS_CIRCLE, | ||
THEME_RADIUS_PILL, | ||
THEME_SPACING_10, | ||
THEME_SPACING_15, | ||
THEME_SPACING_5, | ||
THEME_YELLOW_600, | ||
} from '@pokemon-pet-shop/ui/styles/var'; | ||
import { StyleSheet } from 'react-native'; | ||
|
||
export const styles = () => | ||
StyleSheet.create({ | ||
headerWrapper: { | ||
justifyContent: 'space-between', | ||
paddingTop: 10, | ||
paddingLeft: 0, | ||
paddingRight: 0, | ||
paddingTop: THEME_SPACING_10, | ||
shadowOffset: { | ||
width: 2, | ||
height: 8, | ||
}, | ||
shadowColor: '#062a49', | ||
shadowOpacity: 0.15, | ||
shadowRadius: 5, | ||
elevation: 2, | ||
// boxShadow: 0 2px 8px 1px rgba(6, 42, 73, 0.15), | ||
backgroundColor: THEME_NETURAL_100, | ||
}, | ||
container: { | ||
display: 'flex', | ||
flexDirection: 'row', | ||
backgroundColor: 'red', | ||
alignItems: 'center', | ||
paddingLeft: THEME_SPACING_15, | ||
paddingRight: THEME_SPACING_15, | ||
}, | ||
nav: { | ||
display: 'flex', | ||
flexDirection: 'row', | ||
flexGrow: 1, | ||
marginTop: 0, | ||
marginBottom: 0, | ||
marginLeft: 15, | ||
marginRight: 15, | ||
paddingTop: 10, | ||
paddingBottom: 10, | ||
paddingLeft: 15, | ||
paddingRight: 15, | ||
marginBottom: THEME_SPACING_15, | ||
marginLeft: THEME_SPACING_15, | ||
marginRight: THEME_SPACING_15, | ||
paddingTop: THEME_SPACING_10, | ||
paddingBottom: THEME_SPACING_10, | ||
paddingLeft: THEME_SPACING_15, | ||
paddingRight: THEME_SPACING_15, | ||
alignItems: 'center', | ||
borderRadius: 100, | ||
backgroundColor: 'grey', | ||
borderRadius: THEME_RADIUS_PILL, | ||
backgroundColor: THEME_NETURAL_200, | ||
// box-shadow: inset 0 3px 3px rgb(0 0 0 / 10%); | ||
}, | ||
navTitle: { | ||
marginRight: 10, | ||
marginRight: THEME_SPACING_10, | ||
}, | ||
iconCart: { | ||
marginLeft: 15, | ||
marginLeft: THEME_SPACING_15, | ||
}, | ||
logo: {}, | ||
switchTheme: { | ||
display: 'none', | ||
}, | ||
iconMenu: {}, | ||
cartWrapper: { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
position: 'relative', | ||
}, | ||
counterWrapper: { | ||
borderRadius: THEME_RADIUS_CIRCLE, | ||
backgroundColor: THEME_YELLOW_600, | ||
minWidth: 23, | ||
minHeight: 23, | ||
textAlign: 'center', | ||
paddingTop: THEME_SPACING_5, | ||
paddingBottom: THEME_SPACING_5, | ||
paddingLeft: THEME_SPACING_10, | ||
paddingRight: THEME_SPACING_10, | ||
position: 'absolute', | ||
right: -11, | ||
top: -15, | ||
cursor: 'pointer', | ||
}, | ||
counterText: { | ||
textAlign: 'center', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.