-
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.
account screen, list component, added a new orange to colors, listcar…
…d.styles, moved to infrastructure/styledComponents
- Loading branch information
1 parent
4855e1c
commit 0fa24d8
Showing
6 changed files
with
165 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import React from 'react'; | ||
import { View } from 'react-native'; | ||
// import { StyledView, RowView, TitleText, ArrowIcon, SectionView} from './ListCards.styles'; | ||
import { StyledView, RowView, TitleText, ArrowIcon, SectionView} from '../../infrastructure/styledComponents/styledComonents'; | ||
import { theme } from '../../infrastructure/theme'; | ||
|
||
|
||
const ButtonCard = ({ title }) => { | ||
return ( | ||
<StyledView> | ||
<RowView> | ||
<TitleText>{title}</TitleText> | ||
<ArrowIcon name="arrow-forward-ios" size={24} color={theme.colors.icon.orange} /> | ||
</RowView> | ||
</StyledView> | ||
); | ||
}; | ||
|
||
const List = (props) => { | ||
// const title = props.title; | ||
const exerciseButtons = [ | ||
{ title: 'Edit Exercises'}, | ||
{ title: 'Edit Categories'}, | ||
{ title: 'Edit Workouts'}, | ||
{ title: 'Workout History Log'}, | ||
{ title: 'Weight (lb / kg)'}, | ||
{ title: 'Set a Goal'}, | ||
{ title: 'Set a Challenge'}, | ||
{ title: 'Edit Categories'}, | ||
{ title: 'Edit Categories'}, | ||
{ title: 'Edit Categories'}, | ||
]; | ||
const profileButtons = [ | ||
{ title: 'My Profile'}, | ||
{ title: 'My Trophies'}, | ||
]; | ||
const notificationButtons = [ | ||
{ title: 'Notifications'}, | ||
{ title: 'Security and Privacy'}, | ||
{ title: 'Delete Account'}, | ||
]; | ||
const helpSupportButtons = [ | ||
{ title: 'Help and Support'}, | ||
{ title: 'Send Feedback'}, | ||
]; | ||
|
||
return ( | ||
<View> | ||
<SectionView> | ||
{exerciseButtons.map((button, index) => ( | ||
<ButtonCard key={index} {...button} /> | ||
))} | ||
</SectionView> | ||
<SectionView> | ||
{profileButtons.map((button, index) => ( | ||
<ButtonCard key={index} {...button} /> | ||
))} | ||
</SectionView> | ||
<SectionView> | ||
{notificationButtons.map((button, index) => ( | ||
<ButtonCard key={index} {...button} /> | ||
))} | ||
</SectionView> | ||
<SectionView> | ||
{helpSupportButtons.map((button, index) => ( | ||
<ButtonCard key={index} {...button} /> | ||
))} | ||
</SectionView> | ||
</View> | ||
); | ||
}; | ||
|
||
export default List; |
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,37 @@ | ||
import styled from 'styled-components/native'; | ||
import { Text, View } from 'react-native'; | ||
import { theme } from '../../infrastructure/theme'; | ||
import { MaterialIcons } from '@expo/vector-icons'; | ||
|
||
export const StyledView = styled(View)` | ||
background-color: ${theme.colors.background.neutral[2]}; | ||
margin: 5px; | ||
margin-left: 8px; | ||
border-radius: 20px; | ||
border-width: 1px; | ||
border-color: ${theme.colors.borders.neutral}; | ||
padding: 10px; | ||
padding-bottom: 10px; | ||
padding-left: 20px; | ||
`; | ||
|
||
export const RowView = styled(View)` | ||
flex-direction: row; | ||
justify-content: space-between; | ||
`; | ||
export const SectionView = styled(View)` | ||
margin-top: 6px; | ||
margin-bottom: 6px; | ||
`; | ||
|
||
export const TitleText = styled(Text)` | ||
color: ${theme.colors.text.neutral}; | ||
font-size: 18px; | ||
font-weight: 600; | ||
padding-bottom: 0; | ||
margin-bottom: 0; | ||
`; | ||
|
||
export const ArrowIcon = styled(MaterialIcons)` | ||
align-self: 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
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