From 2bb271712b93723cce8eee4018318ac32ba2ded4 Mon Sep 17 00:00:00 2001 From: imsophis Date: Fri, 22 May 2026 19:46:23 -0600 Subject: [PATCH] feat: setup bottom tab navigation and base screens --- frontend/src/app/_layout.tsx | 73 ++++++++++++++++++++++++++++++------ frontend/src/app/guide.tsx | 2 +- frontend/src/app/index.tsx | 2 +- frontend/src/app/profile.tsx | 14 +++---- 4 files changed, 70 insertions(+), 21 deletions(-) diff --git a/frontend/src/app/_layout.tsx b/frontend/src/app/_layout.tsx index 7a02f47..f354518 100644 --- a/frontend/src/app/_layout.tsx +++ b/frontend/src/app/_layout.tsx @@ -11,12 +11,45 @@ export default function Layout() { tabBarInactiveTintColor: "#9CA3AF", tabBarStyle: { - height: 70, - paddingBottom: 10, - paddingTop: 10, + position: "absolute", + bottom: 5, + left: 20, + right: 20, + + height: 82, + + borderRadius: 25, + backgroundColor: "#FFFFFF", + borderTopWidth: 0, - elevation: 8, + + shadowColor: "#000", + shadowOffset: { + width: 0, + height: 10, + }, + + shadowOpacity: 0.08, + shadowRadius: 10, + + elevation: 10, + + paddingHorizontal: 10, + }, + + tabBarLabelStyle: { + fontSize: 11, + fontWeight: "400", + marginBottom: 8, + }, + + tabBarItemStyle: { + paddingTop: 6, + paddingBottom: 4, + borderRadius: 18, + marginVertical: 6, + marginHorizontal: 4, }, }} > @@ -24,8 +57,12 @@ export default function Layout() { name="index" options={{ title: "Inicio", - tabBarIcon: ({ color, size }) => ( - + tabBarIcon: ({ focused, color }) => ( + ), }} /> @@ -34,8 +71,12 @@ export default function Layout() { name="alerts" options={{ title: "Alertas", - tabBarIcon: ({ color, size }) => ( - + tabBarIcon: ({ focused, color }) => ( + ), }} /> @@ -44,8 +85,12 @@ export default function Layout() { name="guide" options={{ title: "Guía", - tabBarIcon: ({ color, size }) => ( - + tabBarIcon: ({ focused, color }) => ( + ), }} /> @@ -54,8 +99,12 @@ export default function Layout() { name="profile" options={{ title: "Perfil", - tabBarIcon: ({ color, size }) => ( - + tabBarIcon: ({ focused, color }) => ( + ), }} /> diff --git a/frontend/src/app/guide.tsx b/frontend/src/app/guide.tsx index fbdcea9..3561942 100644 --- a/frontend/src/app/guide.tsx +++ b/frontend/src/app/guide.tsx @@ -8,7 +8,7 @@ export default function GuideScreen() { justifyContent: "center", alignItems: "center", }} - > + > Guía ); diff --git a/frontend/src/app/index.tsx b/frontend/src/app/index.tsx index 648f45d..752dd59 100644 --- a/frontend/src/app/index.tsx +++ b/frontend/src/app/index.tsx @@ -12,4 +12,4 @@ export default function HomeScreen() { Inicio ); -} +} \ No newline at end of file diff --git a/frontend/src/app/profile.tsx b/frontend/src/app/profile.tsx index 23dee45..754f25d 100644 --- a/frontend/src/app/profile.tsx +++ b/frontend/src/app/profile.tsx @@ -4,12 +4,12 @@ export default function ProfileScreen() { return ( - Perfil + flex: 1, + justifyContent: "center", + alignItems: "center", + }} + > + Perfil ); -} \ No newline at end of file +}