-
Notifications
You must be signed in to change notification settings - Fork 1
design card screens #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6895aac
add illustrations and icons for credit card screens
SametSahin10 e276701
map plus icon to add
SametSahin10 3fe6c7a
set font to MonaSans
SametSahin10 53ec3c5
navigate to card screen for demo purposes
SametSahin10 dded2c2
design credit card screens with dummy data
SametSahin10 e19b8aa
fix merge conflict
SametSahin10 d917415
remove unused asset
SametSahin10 3561c0b
use text-xl instead of arbitrary value
SametSahin10 8d09507
do not use arbitrary values for font sizes
SametSahin10 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,28 @@ | ||
| import { Stack } from 'expo-router'; | ||
|
|
||
| export default function CardLayout() { | ||
| return ( | ||
| <Stack screenOptions={{ headerShown: false }}> | ||
| <Stack.Screen name="index" /> | ||
| <Stack.Screen | ||
| name="details" | ||
| options={{ | ||
| presentation: 'modal', | ||
| headerShown: true, | ||
| headerTitle: "Card", | ||
| headerTitleAlign: "center", | ||
| headerStyle: { | ||
| backgroundColor: "#262626", | ||
| }, | ||
| headerTitleStyle: { | ||
| color: "#ffffff", | ||
| fontFamily: "System", | ||
| fontWeight: "bold", | ||
| fontSize: 20 | ||
| }, | ||
| headerTintColor: "#ffffff", | ||
| }} | ||
| /> | ||
| </Stack> | ||
| ); | ||
| } |
This file contains hidden or 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,47 @@ | ||
| import { Image } from "expo-image"; | ||
| import React from "react"; | ||
| import { View } from "react-native"; | ||
|
|
||
| import { Button } from "@/components/ui/button"; | ||
| import { IconSymbol } from "@/components/ui/IconSymbol"; | ||
| import { Text } from "@/components/ui/text"; | ||
|
|
||
| export default function CardDetails() { | ||
| // Mock card data - in a real app this would come from an API or secure storage | ||
| const cardData = { | ||
| balance: "$1,234.56", | ||
| spendableBalance: "$1,234.56", | ||
| status: "Active" | ||
| }; | ||
|
|
||
| return ( | ||
| <View className="flex-1 bg-background p-6"> | ||
| {/* Balance Information */} | ||
| <View className="items-center mb-6"> | ||
| <View className="flex-row items-baseline"> | ||
| <Text className="text-xl font-semibold">$</Text> | ||
| <Text className="text-[50px] font-semibold">{cardData.balance.substring(1)}</Text> | ||
| </View> | ||
| <Text className="text-base opacity-70 mt-2">Spendable balance</Text> | ||
| </View> | ||
|
|
||
| <Button | ||
| className="rounded-3xl h-14 w-auto self-center mb-6" | ||
| > | ||
| <View className="flex-row"> | ||
| <IconSymbol name="plus" color="black" /> | ||
| <Text className="font-bold text-base ml-2">Add funds</Text> | ||
| </View> | ||
| </Button> | ||
|
|
||
| <View className="items-center mb-8"> | ||
| <Image | ||
| source={require("@/assets/images/card.svg")} | ||
| alt="Flash Card" | ||
| style={{ width: '100%', height: '80%' }} | ||
| contentFit="contain" | ||
| /> | ||
| </View> | ||
| </View> | ||
| ); | ||
| } |
This file contains hidden or 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,38 @@ | ||
| import { Image } from "expo-image"; | ||
| import { useRouter } from "expo-router"; | ||
| import { View } from "react-native"; | ||
|
|
||
| import { Button } from "@/components/ui/button"; | ||
| import { Text } from "@/components/ui/text"; | ||
|
|
||
| export default function Card() { | ||
| const router = useRouter(); | ||
|
|
||
| const handleViewDetails = () => { | ||
| router.push("/card/details"); | ||
| }; | ||
|
|
||
| return ( | ||
| <View className="flex-1 justify-between items-center p-6 bg-background"> | ||
| <View className="mt-4"> | ||
| <Text className="text-[36px] font-bold text-center">Introducing the Flash card</Text> | ||
| <Text className="text-lg mt-2 font-medium text-center text-white/70 leading-[20px]">The world's first self-custodial{'\n'}Mastercard by Flash</Text> | ||
| </View> | ||
|
|
||
| <View className="flex-1 justify-center items-center w-full"> | ||
| <Image | ||
| source={require("@/assets/images/card_with_bottom_shadow.png")} | ||
| alt="Flash Card" | ||
| style={{ width: '100%', height: '90%' }} | ||
| contentFit="contain" | ||
| /> | ||
| </View> | ||
|
|
||
| <View className="w-full space-y-4"> | ||
| <Button className="rounded-xl h-14 w-full" onPress={handleViewDetails}> | ||
| <Text className="text-[20px] font-bold">Activate card</Text> | ||
| </Button> | ||
| </View> | ||
| </View> | ||
| ) | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SametSahin10 fontFamily is not working on web, is it working on ios and android?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not working on mobile either. Let's discuss this in Slack.