Base design done
This commit is contained in:
30
components/AdhkarCard.tsx
Normal file
30
components/AdhkarCard.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
import React from 'react';
|
||||
import { View, Text, StyleSheet } from 'react-native';
|
||||
import Colors from '@/constants/Colors';
|
||||
|
||||
type AdhkarCardProps = {
|
||||
title: string;
|
||||
};
|
||||
|
||||
export default function AdhkarCard({ title }: AdhkarCardProps) {
|
||||
const colorScheme = 'dark';
|
||||
|
||||
return (
|
||||
<View style={[styles.container, { backgroundColor: Colors[colorScheme].secondary }]}>
|
||||
<Text style={styles.title}>{title}</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
borderRadius: 15,
|
||||
padding: 20,
|
||||
marginVertical: 10,
|
||||
},
|
||||
title: {
|
||||
fontSize: 16,
|
||||
fontWeight: 'bold',
|
||||
color: Colors.dark.text,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user