diff --git a/app/(application)/_layout.tsx b/app/(application)/_layout.tsx index bacc316..305ee80 100644 --- a/app/(application)/_layout.tsx +++ b/app/(application)/_layout.tsx @@ -7,6 +7,8 @@ export default function RootLayout() { <> + + diff --git a/app/(application)/search.tsx b/app/(application)/search.tsx new file mode 100644 index 0000000..97656b1 --- /dev/null +++ b/app/(application)/search.tsx @@ -0,0 +1,108 @@ +import BorderBottomItem from "@/components/borderBottomItem"; +import ButtonBackHeader from "@/components/buttonBackHeader"; +import { InputForm } from "@/components/inputForm"; +import { ColorsStatus } from "@/constants/ColorsStatus"; +import Styles from "@/constants/Styles"; +import { AntDesign, Feather, MaterialIcons } from "@expo/vector-icons"; +import { router, Stack } from "expo-router"; +import { Image, SafeAreaView, ScrollView, Text, View } from "react-native"; + +export default function Search() { + return ( + <> + + { router.back() }} />, + headerTitle: 'Pencarian', + headerTitleAlign: 'center' + }} + /> + + + } + /> + + + ANGGOTA + } + title="Amalia Dwi" + subtitle="Dinas - Bendaraha" + /> + } + title="Amalia Dwi" + subtitle="Dinas - Bendaraha" + /> + + } + title="Amalia Dwi" + subtitle="Dinas - Bendaraha" + /> + + + + DIVISI + + + + } + title="TU dan Umum" + subtitle="Dinas" + /> + + + + } + title="TU dan Umum" + subtitle="Dinas" + /> + + + KEGIATAN + + + + } + title="Kerja Bakti" + subtitle="Dinas" + /> + + + + } + title="Pasar Ramadhan" + subtitle="Dinas" + /> + + + + + + + + ) +} \ No newline at end of file diff --git a/components/borderBottomItem.tsx b/components/borderBottomItem.tsx new file mode 100644 index 0000000..8f952e3 --- /dev/null +++ b/components/borderBottomItem.tsx @@ -0,0 +1,29 @@ +import Styles from "@/constants/Styles"; +import { Pressable, Text, View } from "react-native"; + +type Props = { + title: string + subtitle?: string + icon: React.ReactNode + desc?: string + onPress?: () => void +} + +export default function BorderBottomItem({ title, subtitle, icon, desc, onPress }: Props) { + return ( + + + {icon} + + + {title} + {subtitle} + + 3 Feb 2025 + + + + {desc && {desc}} + + ) +} \ No newline at end of file diff --git a/components/home/headerRightHome.tsx b/components/home/headerRightHome.tsx index 85c1e3e..49351cf 100644 --- a/components/home/headerRightHome.tsx +++ b/components/home/headerRightHome.tsx @@ -7,7 +7,7 @@ import Styles from "@/constants/Styles"; export function HeaderRightHome() { return ( - } onPress={() => { router.push('/') }} /> + } onPress={() => { router.push('/search') }} /> } onPress={() => { router.push('/') }} /> } onPress={() => { router.push('/') }} /> diff --git a/constants/Styles.ts b/constants/Styles.ts index add87e9..06ebbcf 100644 --- a/constants/Styles.ts +++ b/constants/Styles.ts @@ -8,11 +8,11 @@ const Styles = StyleSheet.create({ padding: 20, }, textDefault: { - fontSize: 16, + fontSize: 15, lineHeight: 24, }, textDefaultSemiBold: { - fontSize: 16, + fontSize: 15, lineHeight: 24, fontWeight: '600', }, @@ -80,17 +80,20 @@ const Styles = StyleSheet.create({ mt05: { marginTop: 5 }, - mr05:{ + mr05: { marginRight: 5 }, mr10: { marginRight: 10 }, + ml10: { + marginLeft: 10 + }, ph15: { paddingHorizontal: 15, }, - p15:{ - padding:15 + p15: { + padding: 15 }, round30: { borderRadius: 30 @@ -236,6 +239,20 @@ const Styles = StyleSheet.create({ borderColor: '#d6d8f6', borderWidth: 1, marginBottom: 10 + }, + wrapItemBorderBottom: { + padding: 10, + borderColor: '#d6d8f6', + borderBottomWidth: 1, + }, + userProfileSmall: { + width: 50, + height: 50, + borderRadius: 100 + }, + iconContent: { + padding: 10, + borderRadius: 100, } })