From 253c6da8b18216878ae33dc2ea893b628d301990 Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Sun, 28 Sep 2025 14:01:26 -0400 Subject: [PATCH] Add new VersionSelector component for homepage redesign Beautiful card-based version selection: - ESV and NKJV option cards with distinct colors and icons - Responsive design (side-by-side on desktop, stacked on mobile) - Hover effects and smooth transitions - Proper TypeScript typing and clean component architecture - Accessible design with proper contrast ratios --- frontend/src/components/VersionSelector.tsx | 94 +++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 frontend/src/components/VersionSelector.tsx diff --git a/frontend/src/components/VersionSelector.tsx b/frontend/src/components/VersionSelector.tsx new file mode 100644 index 00000000..cef62594 --- /dev/null +++ b/frontend/src/components/VersionSelector.tsx @@ -0,0 +1,94 @@ +import React from 'react'; +import { Book, Users } from 'lucide-react'; + +interface VersionSelectorProps { + onVersionSelect: (version: 'esv' | 'nkjv') => void; +} + +const VersionSelector: React.FC = ({ onVersionSelect }) => { + return ( +
+ {/* Header */} +
+
+
+
+ +

+ The Bible +

+
+
+
+
+ + {/* Version Selection */} +
+
+

+ Choose Your Translation +

+

+ Select a Bible translation to begin your study +

+
+ +
+ {/* ESV Card */} +
onVersionSelect('esv')} + className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-md hover:shadow-lg transition-all duration-200 cursor-pointer transform hover:-translate-y-1" + > +
+
+
+ +
+

+ ESV +

+

+ English Standard Version +

+

+ A literal translation that balances clarity and dignity +

+
+
+
+ + {/* NKJV Card */} +
onVersionSelect('nkjv')} + className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-md hover:shadow-lg transition-all duration-200 cursor-pointer transform hover:-translate-y-1" + > +
+
+
+ +
+

+ NKJV +

+

+ New King James Version +

+

+ Updated language while preserving the majesty of the original +

+
+
+
+
+ +
+

+ Both translations include the complete Old and New Testaments, with search and bookmarking features. +

+
+
+
+ ); +}; + +export default VersionSelector;