-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCard.tsx
More file actions
81 lines (69 loc) · 1.46 KB
/
Copy pathCard.tsx
File metadata and controls
81 lines (69 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
* @AngelaMos | 2026
* Card.tsx
*/
import { type GetProps, styled } from 'tamagui'
import { Stack, Text } from 'tamagui'
export const Card = styled(Stack, {
name: 'Card',
backgroundColor: '$black',
borderWidth: 1,
borderColor: '$borderDefault',
borderRadius: '$3',
padding: '$6',
width: '100%',
maxWidth: 340,
variants: {
variant: {
default: {},
surface: {
backgroundColor: '$bgSurface100',
},
},
} as const,
defaultVariants: {
variant: 'default',
},
})
export const CardHeader = styled(Stack, {
name: 'CardHeader',
flexDirection: 'column',
marginBottom: '$4',
})
export const CardTitle = styled(Text, {
name: 'CardTitle',
fontSize: 22,
fontWeight: '600',
color: '$white',
marginBottom: '$1',
})
export const CardSubtitle = styled(Text, {
name: 'CardSubtitle',
fontSize: 12,
color: '$textLight',
})
export const CardContent = styled(Stack, {
name: 'CardContent',
flexDirection: 'column',
gap: '$4',
})
export const CardFooter = styled(Stack, {
name: 'CardFooter',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
marginTop: '$4',
})
export const CardFooterText = styled(Text, {
name: 'CardFooterText',
fontSize: 12,
color: '$textLight',
textAlign: 'center',
})
export const CardFooterLink = styled(Text, {
name: 'CardFooterLink',
fontSize: 12,
color: '$accent',
textDecorationLine: 'underline',
})
export type CardProps = GetProps<typeof Card>