feat: Website-Rework mit verbessertem Design, Sicherheit und Deployment

- Neue About/Skills-Sektion hinzugefügt
- Verbesserte UI/UX für alle Komponenten
- Enhanced Contact Form mit Validierung
- Verbesserte Security Headers und Middleware
- Sichere Deployment-Skripte (safe-deploy.sh)
- Zero-Downtime Deployment Support
- Verbesserte Docker-Sicherheit
- Umfassende Sicherheits-Dokumentation
- Performance-Optimierungen
- Accessibility-Verbesserungen
This commit is contained in:
2025-11-22 19:24:49 +01:00
parent 498bec6edf
commit 976a6360fd
17 changed files with 1585 additions and 139 deletions

View File

@@ -76,39 +76,47 @@ const Projects = () => {
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.6, delay: index * 0.1 }}
whileHover={{ y: -10 }}
className={`group relative overflow-hidden rounded-2xl glass-card card-hover ${
project.featured ? 'ring-2 ring-blue-500/50' : ''
whileHover={{ y: -12, scale: 1.02 }}
className={`group relative overflow-hidden rounded-2xl glass-card card-hover border border-gray-800/50 hover:border-gray-700/50 transition-all ${
project.featured ? 'ring-2 ring-blue-500/30 shadow-lg shadow-blue-500/10' : ''
}`}
>
<div className="relative h-48 overflow-hidden">
<div className="absolute inset-0 bg-gradient-to-br from-blue-500/20 to-purple-500/20" />
<div className="absolute inset-0 bg-gray-800/50 flex flex-col items-center justify-center p-4">
<div className="w-16 h-16 bg-gradient-to-br from-blue-500 to-purple-500 rounded-full flex items-center justify-center mb-2">
<div className="relative h-48 overflow-hidden bg-gradient-to-br from-gray-900 to-gray-800">
<div className="absolute inset-0 bg-gradient-to-br from-blue-500/10 via-purple-500/10 to-pink-500/10" />
<div className="absolute inset-0 flex flex-col items-center justify-center p-4">
<motion.div
whileHover={{ scale: 1.1, rotate: 5 }}
className="w-20 h-20 bg-gradient-to-br from-blue-500 to-purple-500 rounded-2xl flex items-center justify-center mb-3 shadow-lg"
>
<span className="text-2xl font-bold text-white">
{project.title.split(' ').map(word => word[0]).join('').toUpperCase()}
{project.title.split(' ').map(word => word[0]).join('').toUpperCase().slice(0, 2)}
</span>
</div>
<span className="text-sm font-medium text-gray-400 text-center leading-tight">
</motion.div>
<span className="text-sm font-semibold text-gray-300 text-center leading-tight px-2">
{project.title}
</span>
</div>
{project.featured && (
<div className="absolute top-4 right-4 px-3 py-1 bg-gradient-to-r from-blue-500 to-purple-500 text-white text-xs font-semibold rounded-full">
Featured
</div>
<motion.div
initial={{ scale: 0 }}
animate={{ scale: 1 }}
className="absolute top-4 right-4 px-3 py-1 bg-gradient-to-r from-blue-500 to-purple-500 text-white text-xs font-semibold rounded-full shadow-lg"
>
Featured
</motion.div>
)}
<div className="absolute inset-0 bg-black/60 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center space-x-4">
<div className="absolute inset-0 bg-gradient-to-t from-black/90 via-black/50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-end justify-center pb-4 space-x-3">
{project.github && project.github.trim() !== '' && project.github !== '#' && (
<motion.a
href={project.github}
target="_blank"
rel="noopener noreferrer"
whileHover={{ scale: 1.1 }}
whileHover={{ scale: 1.15, y: -2 }}
whileTap={{ scale: 0.95 }}
className="p-3 bg-gray-800/80 rounded-lg text-white hover:bg-gray-700/80 transition-colors"
className="p-3 bg-gray-800/90 backdrop-blur-sm rounded-xl text-white hover:bg-gray-700/90 transition-all shadow-lg border border-gray-700/50"
aria-label="View on GitHub"
>
<Github size={20} />
</motion.a>
@@ -118,9 +126,10 @@ const Projects = () => {
href={project.live}
target="_blank"
rel="noopener noreferrer"
whileHover={{ scale: 1.1 }}
whileHover={{ scale: 1.15, y: -2 }}
whileTap={{ scale: 0.95 }}
className="p-3 bg-blue-600/80 rounded-lg text-white hover:bg-blue-500/80 transition-colors"
className="p-3 bg-gradient-to-r from-blue-600 to-purple-600 rounded-xl text-white hover:from-blue-500 hover:to-purple-500 transition-all shadow-lg"
aria-label="View live site"
>
<ExternalLink size={20} />
</motion.a>
@@ -129,37 +138,42 @@ const Projects = () => {
</div>
<div className="p-6">
<div className="flex items-center justify-between mb-3">
<h3 className="text-xl font-bold text-white group-hover:text-blue-400 transition-colors">
<div className="flex items-start justify-between mb-3">
<h3 className="text-xl font-bold text-white group-hover:text-blue-400 transition-colors flex-1 pr-2">
{project.title}
</h3>
<div className="flex items-center space-x-2 text-gray-400">
<Calendar size={16} />
<span className="text-sm">{project.date}</span>
<div className="flex items-center space-x-1.5 text-gray-400 flex-shrink-0">
<Calendar size={14} />
<span className="text-xs">{new Date(project.date).getFullYear()}</span>
</div>
</div>
<p className="text-gray-300 mb-4 leading-relaxed">
<p className="text-gray-300 mb-4 leading-relaxed line-clamp-3">
{project.description}
</p>
<div className="flex flex-wrap gap-2 mb-4">
{project.tags.map((tag) => (
<div className="flex flex-wrap gap-2 mb-5">
{project.tags.slice(0, 4).map((tag) => (
<span
key={tag}
className="px-3 py-1 bg-gray-800/50 text-gray-300 text-sm rounded-full border border-gray-700"
className="px-3 py-1 bg-gray-800/60 backdrop-blur-sm text-gray-300 text-xs rounded-lg border border-gray-700/50 hover:border-gray-600 transition-colors"
>
{tag}
</span>
))}
{project.tags.length > 4 && (
<span className="px-3 py-1 bg-gray-800/60 backdrop-blur-sm text-gray-400 text-xs rounded-lg border border-gray-700/50">
+{project.tags.length - 4}
</span>
)}
</div>
<Link
href={`/projects/${project.title.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`}
className="inline-flex items-center space-x-2 text-blue-400 hover:text-blue-300 transition-colors font-medium"
className="inline-flex items-center space-x-2 text-blue-400 hover:text-blue-300 transition-all font-semibold group/link"
>
<span>View Project</span>
<ExternalLink size={16} />
<span>View Details</span>
<ExternalLink size={16} className="group-hover/link:translate-x-1 transition-transform" />
</Link>
</div>
</motion.div>