Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 64 additions & 46 deletions frontend/app/(authorized)/(tabs)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ export default function Index() {
const styles = StyleSheet.create({
scrollContainer: {
flexGrow: 1,
backgroundColor: "#dbeafe",
backgroundColor: "#b9dbaf",
padding: 20,
},
innerContainer: {
Expand All @@ -343,22 +343,22 @@ const styles = StyleSheet.create({
flexGrow: 1,
},
pageTitle: {
color: "#0f172a",
color: "#14532d",
fontSize: 30,
fontWeight: "700",
marginTop: 8,
},
pageSubtitle: {
color: "#334155",
color: "#1f2937",
fontSize: 15,
marginBottom: 4,
},
card: {
backgroundColor: "#f8fbff",
backgroundColor: "#f0fdf4",
borderRadius: 20,
padding: 16,
borderWidth: 1,
borderColor: "#bfdbfe",
borderColor: "#86efac",
gap: 12,
shadowColor: "#000",
shadowOpacity: 0.05,
Expand All @@ -368,74 +368,85 @@ const styles = StyleSheet.create({
minHeight: 260,
},
feedbackCard: {
backgroundColor: "#f8fbff",
backgroundColor: "#f0fdf4",
borderRadius: 16,
padding: 14,
borderWidth: 1,
borderColor: "#bfdbfe",
borderColor: "#86efac",
gap: 8,
},
cardTitle: {
color: "#1d4ed8",
color: "#14532d",
fontSize: 18,
fontWeight: "700",
fontWeight: "800",
},
helperText: {
color: "#475569",
color: "#374151",
fontSize: 14,
lineHeight: 20,
},
emptyText: {
color: "#64748b",
color: "#4b5563",
fontSize: 14,
},
successText: {
color: "#15803d",
fontWeight: "700",
fontWeight: "800",
},
errorText: {
color: "#dc2626",
fontWeight: "700",
color: "#b91c1c",
fontWeight: "800",
},

scanRow: {
flexDirection: "row",
justifyContent: "space-between",
alignItems: "center",
gap: 12,
paddingVertical: 6,
paddingVertical: 8,
borderBottomWidth: 1,
borderBottomColor: "#bbf7d0",
},
scanTextWrap: {
flex: 1,
},
scanText: {
color: "#334155",
color: "#1f2937",
fontSize: 15,
fontWeight: "600",
fontWeight: "700",
},
scanMetaText: {
color: "#64748b",
color: "#4b5563",
fontSize: 12,
marginTop: 2,
},

statusBadge: {
paddingVertical: 5,
paddingHorizontal: 10,
borderRadius: 999,
},
statusText: {
color: "#fff",
color: "#ffffff",
fontSize: 12,
fontWeight: "700",
fontWeight: "800",
},

// SAFE
statusSafe: {
backgroundColor: "#22c55e",
},

// INTOLERANCE
statusWarning: {
backgroundColor: "#f59e0b",
},

// ALLERGEN
statusDanger: {
backgroundColor: "#ef4444",
},

bottomNav: {
marginTop: "auto",
flexDirection: "row",
Expand All @@ -444,82 +455,89 @@ const styles = StyleSheet.create({
},
navButtonPrimary: {
flex: 1.2,
backgroundColor: "#3b82f6",
backgroundColor: "#14532d",
paddingVertical: 15,
borderRadius: 16,
alignItems: "center",
},
navButtonPrimaryText: {
color: "#ffffff",
fontWeight: "700",
color: "#ecfdf5",
fontWeight: "800",
fontSize: 15,
},
navButtonSecondary: {
flex: 1,
backgroundColor: "#eff6ff",
backgroundColor: "#ecfdf5",
borderWidth: 1,
borderColor: "#93c5fd",
borderColor: "#86efac",
paddingVertical: 15,
borderRadius: 16,
alignItems: "center",
},
navButtonSecondaryText: {
color: "#1d4ed8",
fontWeight: "700",
color: "#14532d",
fontWeight: "800",
fontSize: 15,
},

modalOverlay: {
flex: 1,
backgroundColor: "rgba(15, 23, 42, 0.35)",
justifyContent: "center",
padding: 20,
},
modalCard: {
backgroundColor: "#f8fbff",
backgroundColor: "#f0fdf4",
borderRadius: 22,
padding: 18,
borderWidth: 1,
borderColor: "#bfdbfe",
borderColor: "#86efac",
gap: 14,
},
modalTitle: {
color: "#0f172a",
color: "#14532d",
fontSize: 22,
fontWeight: "700",
fontWeight: "800",
},
toggleRow: {
flexDirection: "row",
gap: 10,
},

// Default toggle
typeButton: {
flex: 1,
borderWidth: 1,
borderColor: "#93c5fd",
borderColor: "#86efac",
backgroundColor: "#ffffff",
borderRadius: 14,
paddingVertical: 12,
alignItems: "center",
},

// Selected toggle
typeButtonActive: {
backgroundColor: "#dbeafe",
borderColor: "#3b82f6",
backgroundColor: "#dcfce7",
borderColor: "#22c55e",
},

typeButtonText: {
color: "#1d4ed8",
fontWeight: "600",
color: "#14532d",
fontWeight: "700",
},
typeButtonTextActive: {
color: "#1e3a8a",
fontWeight: "700",
color: "#14532d",
fontWeight: "800",
},

input: {
backgroundColor: "#ffffff",
borderWidth: 1,
borderColor: "#bfdbfe",
borderColor: "#86efac",
borderRadius: 14,
paddingVertical: 12,
paddingHorizontal: 14,
color: "#0f172a",
color: "#14532d",
fontSize: 15,
},
modalButtonRow: {
Expand All @@ -529,25 +547,25 @@ const styles = StyleSheet.create({
modalCancelButton: {
flex: 1,
borderWidth: 1,
borderColor: "#93c5fd",
borderColor: "#86efac",
backgroundColor: "#ffffff",
paddingVertical: 14,
borderRadius: 16,
alignItems: "center",
},
modalCancelButtonText: {
color: "#1d4ed8",
fontWeight: "600",
color: "#14532d",
fontWeight: "700",
},
modalSaveButton: {
flex: 1,
backgroundColor: "#3b82f6",
backgroundColor: "#14532d",
paddingVertical: 14,
borderRadius: 16,
alignItems: "center",
},
modalSaveButtonText: {
color: "#ffffff",
fontWeight: "700",
color: "#ecfdf5",
fontWeight: "800",
},
});
Loading
Loading