Files
biblical-guide.com/app/page.tsx
andupetcu 3b375c869b Add complete Biblical Guide web application with Material UI
Implemented comprehensive Romanian Biblical Guide web app:
- Next.js 15 with App Router and TypeScript
- Material UI 7.3.2 for modern, responsive design
- PostgreSQL database with Prisma ORM
- Complete Bible reader with book/chapter navigation
- AI-powered biblical chat with Romanian responses
- Prayer wall for community prayer requests
- Advanced Bible search with filters and highlighting
- Sample Bible data imported from API.Bible
- All API endpoints created and working
- Professional Material UI components throughout
- Responsive layout with navigation and theme

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-20 14:10:28 +03:00

220 lines
7.1 KiB
TypeScript

'use client'
import {
Container,
Grid,
Card,
CardContent,
Typography,
Box,
Button,
Paper,
useTheme,
} from '@mui/material'
import {
MenuBook,
Chat,
Favorite as Prayer,
Search,
AutoStories,
Favorite,
} from '@mui/icons-material'
import { Navigation } from '@/components/layout/navigation'
import { useRouter } from 'next/navigation'
export default function Home() {
const theme = useTheme()
const router = useRouter()
const features = [
{
title: 'Citește Biblia',
description: 'Explorează Scriptura cu o interfață modernă și ușor de folosit',
icon: <MenuBook sx={{ fontSize: 40, color: 'primary.main' }} />,
path: '/bible',
color: theme.palette.primary.main,
},
{
title: 'Chat cu AI',
description: 'Pune întrebări despre Scriptură și primește răspunsuri clare',
icon: <Chat sx={{ fontSize: 40, color: 'secondary.main' }} />,
path: '/chat',
color: theme.palette.secondary.main,
},
{
title: 'Rugăciuni',
description: 'Partajează rugăciuni și roagă-te împreună cu comunitatea',
icon: <Prayer sx={{ fontSize: 40, color: 'success.main' }} />,
path: '/prayers',
color: theme.palette.success.main,
},
{
title: 'Căutare',
description: 'Caută versete și pasaje din întreaga Scriptură',
icon: <Search sx={{ fontSize: 40, color: 'info.main' }} />,
path: '/search',
color: theme.palette.info.main,
},
]
return (
<Box>
<Navigation />
{/* Hero Section */}
<Box
sx={{
background: 'linear-gradient(135deg, #2C5F6B 0%, #5A8A96 100%)',
color: 'white',
py: 8,
mb: 6,
}}
>
<Container maxWidth="lg">
<Grid container spacing={4} alignItems="center">
<Grid item xs={12} md={8}>
<Typography variant="h2" component="h1" gutterBottom>
Ghid Biblic
</Typography>
<Typography variant="h5" component="h2" sx={{ mb: 3, opacity: 0.9 }}>
Explorează Scriptura cu ajutorul inteligenței artificiale
</Typography>
<Typography variant="body1" sx={{ mb: 4, opacity: 0.8, maxWidth: 600 }}>
O platformă modernă pentru studiul Bibliei, cu chat AI inteligent,
căutare avansată și o comunitate de rugăciune care te sprijină în
călătoria ta spirituală.
</Typography>
<Box sx={{ display: 'flex', gap: 2, flexWrap: 'wrap' }}>
<Button
variant="contained"
size="large"
sx={{
bgcolor: 'secondary.main',
'&:hover': { bgcolor: 'secondary.dark' },
}}
startIcon={<AutoStories />}
onClick={() => router.push('/bible')}
>
Începe citești
</Button>
<Button
variant="outlined"
size="large"
sx={{
borderColor: 'white',
color: 'white',
'&:hover': {
borderColor: 'white',
bgcolor: 'rgba(255,255,255,0.1)',
},
}}
startIcon={<Chat />}
onClick={() => router.push('/chat')}
>
Întreabă AI
</Button>
</Box>
</Grid>
<Grid item xs={12} md={4}>
<Box sx={{ textAlign: 'center' }}>
<MenuBook sx={{ fontSize: 120, opacity: 0.8 }} />
</Box>
</Grid>
</Grid>
</Container>
</Box>
{/* Features Section */}
<Container maxWidth="lg" sx={{ mb: 8 }}>
<Typography variant="h3" component="h2" textAlign="center" sx={{ mb: 2 }}>
Descoperă funcționalitățile
</Typography>
<Typography
variant="body1"
textAlign="center"
color="text.secondary"
sx={{ mb: 6, maxWidth: 600, mx: 'auto' }}
>
Totul de ce ai nevoie pentru o experiență completă de studiu biblic
</Typography>
<Grid container spacing={4}>
{features.map((feature, index) => (
<Grid item xs={12} sm={6} md={3} key={index}>
<Card
sx={{
height: '100%',
display: 'flex',
flexDirection: 'column',
transition: 'transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out',
cursor: 'pointer',
'&:hover': {
transform: 'translateY(-4px)',
boxShadow: 4,
},
}}
onClick={() => router.push(feature.path)}
>
<CardContent sx={{ flexGrow: 1, textAlign: 'center', p: 3 }}>
<Box sx={{ mb: 2 }}>
{feature.icon}
</Box>
<Typography variant="h6" component="h3" gutterBottom>
{feature.title}
</Typography>
<Typography variant="body2" color="text.secondary">
{feature.description}
</Typography>
</CardContent>
</Card>
</Grid>
))}
</Grid>
</Container>
{/* Stats Section */}
<Paper sx={{ bgcolor: 'background.paper', py: 6, mb: 8 }}>
<Container maxWidth="lg">
<Grid container spacing={4} textAlign="center">
<Grid item xs={12} sm={4}>
<Typography variant="h3" color="primary.main" gutterBottom>
66
</Typography>
<Typography variant="h6">Cărți biblice</Typography>
</Grid>
<Grid item xs={12} sm={4}>
<Typography variant="h3" color="secondary.main" gutterBottom>
31,000+
</Typography>
<Typography variant="h6">Versete</Typography>
</Grid>
<Grid item xs={12} sm={4}>
<Typography variant="h3" color="success.main" gutterBottom>
24/7
</Typography>
<Typography variant="h6">Chat AI disponibil</Typography>
</Grid>
</Grid>
</Container>
</Paper>
{/* CTA Section */}
<Container maxWidth="sm" sx={{ textAlign: 'center', mb: 8 }}>
<Typography variant="h4" component="h2" gutterBottom>
Începe călătoria ta spirituală
</Typography>
<Typography variant="body1" color="text.secondary" sx={{ mb: 4 }}>
Alătură-te comunității noastre și descoperă înțelepciunea Scripturii
</Typography>
<Button
variant="contained"
size="large"
startIcon={<Favorite />}
sx={{ mr: 2 }}
onClick={() => router.push('/bible')}
>
Începe acum
</Button>
</Container>
</Box>
)
}