const styles = container: maxWidth: '700px', margin: '2rem auto', padding: '1.5rem', fontFamily: 'Georgia, serif', backgroundColor: '#fef9e8', borderRadius: '16px', boxShadow: '0 8px 20px rgba(0,0,0,0.1)' , title: textAlign: 'center', fontSize: '1.5rem', color: '#2c3e2f' , filterBar: display: 'flex', gap: '1rem', justifyContent: 'center', marginBottom: '1.5rem', flexWrap: 'wrap' , select: padding: '0.3rem 0.6rem', fontSize: '1rem', borderRadius: '8px' , randomButton: backgroundColor: '#4a6741', color: 'white', border: 'none', padding: '0.3rem 1rem', borderRadius: '20px', cursor: 'pointer' , quoteCard: backgroundColor: '#fff8f0', padding: '2rem', borderRadius: '24px', borderLeft: '6px solid #b38b40', boxShadow: '0 4px 12px rgba(0,0,0,0.05)' , quoteText: fontSize: '1.5rem', lineHeight: '1.4', color: '#1f2a1b', fontStyle: 'italic', marginBottom: '1rem' , author: textAlign: 'right', fontSize: '1rem', fontWeight: 'bold', color: '#7a5a3a' , meta: textAlign: 'right', fontSize: '0.85rem', color: '#9b7e5c', marginTop: '0.25rem' , actions: display: 'flex', gap: '1rem', justifyContent: 'flex-end', marginTop: '1.5rem' , actionButton: background: 'none', border: '1px solid #ccc', padding: '0.3rem 0.8rem', borderRadius: '20px', cursor: 'pointer', fontSize: '0.9rem'
<div style=styles.filterBar> <label>Category: </label> <select value=category onChange=(e) => setCategory(e.target.value) style=styles.select> categories.map(cat => ( <option key=cat value=cat>cat</option> )) </select> <button onClick=getRandomQuote style=styles.randomButton>✨ Random Quote</button> </div>
const filteredQuotes = category === 'All' ? florenskyQuotes : florenskyQuotes.filter(q => q.category === category);
, [category]);
function handleCategoryChange(e) currentCategory = e.target.value; const filtered = getFilteredQuotes(); if (filtered.length > 0) updateQuoteDisplay(filtered[0]); else quoteTextEl.textContent = "No quotes in this category.";
useEffect(() => if (filteredQuotes.length > 0) setCurrentQuote(filteredQuotes[0]);
export default FlorenskyQuotes; Save as florensky-quotes.html : pavel florensky quotes
function getRandomQuoteFromFiltered() const filtered = getFilteredQuotes(); if (filtered.length === 0) return null; const randomIndex = Math.floor(Math.random() * filtered.length); return filtered[randomIndex];
function updateQuoteDisplay(quote) if (!quote) return; currentQuote = quote; quoteTextEl.textContent = “$quote.text” ; let metaParts = []; if (quote.source) metaParts.push( 📖 $quote.source ); if (quote.year) metaParts.push( • $quote.year ); quoteMeta.innerHTML = metaParts.join(' '); if (!quote.source && !quote.year) quoteMeta.innerHTML = '';
const copyToClipboard = () => if (!currentQuote) return; navigator.clipboard.writeText( "$currentQuote.text" — Pavel Florensky$currentQuote.source ? , $currentQuote.source : '' ); setCopied(true); setTimeout(() => setCopied(false), 2000); ; const styles = container: maxWidth: '700px', margin: '2rem
let currentQuote = quotes[0]; let currentCategory = "All";
function getFilteredQuotes() if (currentCategory === 'All') return quotes; return quotes.filter(q => q.category === currentCategory);

