Encouraging Words eBOOKS

import React, { useState, useMemo } from ‘react’;
import { EBOOKS } from ‘./constants’;
import { Book, Category } from ‘./types’;
import { BookCard } from ‘./components/BookCard’;
import { FunnelSection } from ‘./components/FunnelSection’;

const App: React.FC = () => {
const [selectedCategory, setSelectedCategory] = useState(‘All’);
const [selectedAuthor, setSelectedAuthor] = useState(‘All’);
const [searchQuery, setSearchQuery] = useState(”);
const [activeBook, setActiveBook] = useState(null);

// Derive unique authors for filter
const authors = useMemo(() => {
const list = Array.from(new Set(EBOOKS.map(b => b.author)));
return [‘All’, …list];
}, []);

const filteredBooks = useMemo(() => {
return EBOOKS.filter(book => {
const matchesCategory = selectedCategory === ‘All’ || book.category === selectedCategory;
const matchesAuthor = selectedAuthor === ‘All’ || book.author === selectedAuthor;

const search = searchQuery.toLowerCase();
const matchesSearch =
book.title.toLowerCase().includes(search) ||
book.description.toLowerCase().includes(search) ||
book.author.toLowerCase().includes(search) ||
book.category.toLowerCase().includes(search);

return matchesCategory && matchesAuthor && matchesSearch;
});
}, [selectedCategory, selectedAuthor, searchQuery]);

return (

{/* Navigation */}

{/* Hero Section */}


Ancient Biblical Wisdom for Modern Times

Inspiring Success through Faith

Discover a curated library dedicated to spiritual growth, church revitalization, and the art of biblical salesmanship.


Explore Library

Featured Book

New Release

Available Today

{/* Book Gallery Section */}

{/* Funnel Modal */}
{activeBook && (
setActiveBook(null)}
/>
)}

{/* Footer (Condensed for space) */}

ENCOURAGING WORDS eBOOKS

Equipping Believers to lead with integrity, Churches to grow with purpose, and individuals to live with hope.

{[‘FB’, ‘TW’, ‘IG’, ‘LI’].map(social => (

{social}

))}

Navigation
  • Digital Gallery
  • Author Program
  • Bundle Deals
  • Corporate Licensing
Support
  • Contact Mission
  • Affiliate Program
  • Redeem Access Code
  • Secure Checkout

© {new Date().getFullYear()} Echouraging Words eBooks. Kingdom Built.

Privacy
Terms
Stripe Secure

);
};

export default App;

Review Your Cart
0
Add Coupon Code
Subtotal