-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
81 additions
and
74 deletions.
There are no files selected for viewing
21 changes: 1 addition & 20 deletions
21
examples/client/Locomotion/src/Components/BusinessAccountText/index.tsx
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
21 changes: 21 additions & 0 deletions
21
examples/client/Locomotion/src/Components/BusinessAccountText/styled.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Text, View } from 'react-native'; | ||
import styled from 'styled-components'; | ||
|
||
export const TitleWithSubTitle = styled(View)` | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1 0 0; | ||
`; | ||
export const BaseText = styled(Text)` | ||
color: #212229; | ||
font-family: Montserrat; | ||
font-size: 14px; | ||
font-style: normal; | ||
line-height: 20px; | ||
`; | ||
export const SubTitle = styled(BaseText)` | ||
font-weight: 500; | ||
`; | ||
export const BoldTitle = styled(BaseText)` | ||
font-weight: 700; | ||
`; |
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
56 changes: 56 additions & 0 deletions
56
examples/client/Locomotion/src/Components/TabSwitch/styled.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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import styled from 'styled-components/native'; | ||
|
||
interface TabStyled { | ||
isSelected: boolean; | ||
} | ||
|
||
export const SELECTED_COLOR = '#212229'; | ||
export const UNSELECTED_COLOR = '#666975'; | ||
|
||
export const Container = styled.View` | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
align-self: stretch; | ||
border-color: rgba(125, 139, 172, 0.32) | ||
border-bottom-width: 1px; | ||
border-bottom-color: #7D8BAC52; | ||
margin-bottom: 16px; | ||
padding-left: 8px; | ||
padding-right: 8px; | ||
`; | ||
|
||
export const Tab = styled.TouchableOpacity` | ||
height: 40px; | ||
justify-content: center; | ||
align-items: center; | ||
flex: 1 0 0; | ||
text-align: center; | ||
${({ isSelected }: TabStyled) => isSelected && `border-bottom-width: 2px; border-bottom-color: ${SELECTED_COLOR};`} | ||
margin-left: 8px; | ||
margin-right: 8px; | ||
`; | ||
export const TabInner = styled.View` | ||
display: flex; | ||
flex-direction: row; | ||
height: 32px; | ||
padding: 4px; | ||
justify-content: center; | ||
align-items: center; | ||
color: ${({ isSelected }: TabStyled) => (isSelected ? SELECTED_COLOR : UNSELECTED_COLOR)}; | ||
font-family: Montserrat; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 500; | ||
line-height: 24px; | ||
`; | ||
export const TextContainer = styled.Text` | ||
color: #666975; | ||
color: ${({ isSelected }: TabStyled) => (isSelected ? SELECTED_COLOR : UNSELECTED_COLOR)}; | ||
font-family: Montserrat; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 500; | ||
line-height: 24px; | ||
padding-left: 4px; | ||
`; |