Add NLT (New Living Translation) to frontend

- Added NLT as third option in VersionSelector component
- Added NLT logo and card with proper styling
- Updated TypeScript interface to include 'nlt' option
- Positioned NLT card below ESV/NKJV grid for clean layout
- Includes proper logo image and descriptive text for NLT

NLT is now fully integrated into the version selection UI!
This commit is contained in:
Ryderjj89
2025-09-28 22:01:08 -04:00
parent 7a54eab291
commit b654400896
3 changed files with 43 additions and 4 deletions

View File

@@ -216,7 +216,14 @@ app.get('/api/search', async (req, res) => {
}
// Get the appropriate search engine for the version
const searchEngine = version === 'esv' && esvSearchEngine ? esvSearchEngine : nkjvSearchEngine;
let searchEngine;
if (version === 'esv' && esvSearchEngine) {
searchEngine = esvSearchEngine;
} else if (version === 'nlt' && nltSearchEngine) {
searchEngine = nltSearchEngine;
} else {
searchEngine = nkjvSearchEngine; // default fallback
}
const options = {
bookFilter: book || null,
@@ -249,7 +256,14 @@ app.get('/api/search/suggestions', async (req, res) => {
}
// Get the appropriate search engine for the version
const searchEngine = version === 'esv' && esvSearchEngine ? esvSearchEngine : nkjvSearchEngine;
let searchEngine;
if (version === 'esv' && esvSearchEngine) {
searchEngine = esvSearchEngine;
} else if (version === 'nlt' && nltSearchEngine) {
searchEngine = nltSearchEngine;
} else {
searchEngine = nkjvSearchEngine; // default fallback
}
const suggestions = await searchEngine.getSearchSuggestions(query, parseInt(limit) || 10);