-
Notifications
You must be signed in to change notification settings - Fork 39
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
1 parent
b3aaa59
commit 8c18904
Showing
7 changed files
with
283 additions
and
29 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import { RButton, RText } from "@packrat/ui" | ||
import useTheme from "app/hooks/useTheme" | ||
import useResponsive from "app/hooks/useResponsive" | ||
import { View } from "tamagui" | ||
import { StyleSheet } from "react-native" | ||
import { PricingData } from "app/constants/PricingData" | ||
|
||
export const Pricing = () => { | ||
const { currentTheme } = useTheme() | ||
const { xs, sm, md } = useResponsive() | ||
const styles = StyleSheet.create(loadStyles(currentTheme, xs, sm, md)); | ||
|
||
return ( | ||
<View style={styles.mainContainer}> | ||
<View style={styles.firstContainer}> | ||
<RText style={{fontSize: 28}}>Explore PackRat with Our Free Subscription Plan!</RText> | ||
<RText style={{fontSize: 25}}>Get Started with PackRat—Absolutely Free!</RText> | ||
<RText style={{fontSize: 16, width: '50%', textAlign: 'center'}}>We’re thrilled to offer you our Free Subscription Plan so you can explore and | ||
manage your trips with PackRat at no cost! This plan is designed to give you | ||
full access to a range of features, making your trip planning easy and | ||
enjoyable. | ||
</RText> | ||
</View> | ||
<View style={styles.card}> | ||
<View style={{ width: '100%', fontSize: 18, textAlign: 'left' }}>Get started for free</View> | ||
<View style={{ width: '100%', fontSize: 25, textAlign: 'left' }}>$0</View> | ||
<View style={{ width: '100%', }}><RButton style={{ | ||
backgroundColor: '#232323', | ||
color: 'white', | ||
}}>Get Started For Free</RButton></View> | ||
<View>{PricingData.freeVersion.map((index) => { | ||
return ( | ||
<RText style={{ color: currentTheme.colors.background, borderBottomColor: currentTheme.colors.background, borderBottomWidth: 1, fontSize: 16 }}>{index}</RText> | ||
) | ||
}) | ||
}</View> | ||
</View> | ||
</View> | ||
) | ||
} | ||
|
||
const loadStyles = (currentTheme, xs, sm, md) => { | ||
return StyleSheet.create({ | ||
mainContainer: { | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
gap: 50, | ||
color: currentTheme.colors.background, | ||
}, | ||
firstContainer: { | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
gap: 20, | ||
}, | ||
card: { | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
gap: 10, | ||
backgroundColor: currentTheme.colors.textPrimary, | ||
color: currentTheme.colors.background, | ||
paddingTop: 50, | ||
paddingBottom: 50, | ||
paddingLeft: 25, | ||
paddingRight: 25, | ||
borderRadius: 20 | ||
} | ||
}) | ||
} |
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.