style: simplify home page layout and fix navbar link
This commit is contained in:
@@ -70,37 +70,7 @@ export function HomeClient({ initialUser }: HomeClientProps) {
|
|||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-slate-950 text-slate-100 overflow-hidden relative selection:bg-blue-500/30 selection:text-blue-200">
|
<div className="min-h-screen bg-slate-950 text-slate-100 overflow-hidden relative selection:bg-blue-500/30 selection:text-blue-200">
|
||||||
|
|
||||||
{/* Background Decorative Animated Blobs */}
|
|
||||||
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-[600px] pointer-events-none -z-10 overflow-hidden">
|
|
||||||
<motion.div
|
|
||||||
animate={{
|
|
||||||
scale: [1, 1.15, 0.95, 1],
|
|
||||||
rotate: [0, 90, 180, 270, 360],
|
|
||||||
x: [0, 40, -30, 0],
|
|
||||||
y: [0, -20, 50, 0]
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 20,
|
|
||||||
repeat: Infinity,
|
|
||||||
ease: "easeInOut"
|
|
||||||
}}
|
|
||||||
className="absolute -top-[10%] left-[10%] w-[350px] sm:w-[500px] h-[350px] sm:h-[500px] bg-blue-600/15 blur-[120px] sm:blur-[160px] rounded-full"
|
|
||||||
/>
|
|
||||||
<motion.div
|
|
||||||
animate={{
|
|
||||||
scale: [1, 0.9, 1.1, 1],
|
|
||||||
rotate: [0, -90, -180, -270, -360],
|
|
||||||
x: [0, -30, 40, 0],
|
|
||||||
y: [0, 50, -30, 0]
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 25,
|
|
||||||
repeat: Infinity,
|
|
||||||
ease: "easeInOut"
|
|
||||||
}}
|
|
||||||
className="absolute -top-[5%] right-[15%] w-[300px] sm:w-[450px] h-[300px] sm:h-[450px] bg-purple-600/10 blur-[100px] sm:blur-[140px] rounded-full"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Hero Section */}
|
{/* Hero Section */}
|
||||||
<section className="w-full pt-16 pb-12 md:pt-28 md:pb-20 px-4 relative flex flex-col items-center">
|
<section className="w-full pt-16 pb-12 md:pt-28 md:pb-20 px-4 relative flex flex-col items-center">
|
||||||
@@ -133,7 +103,7 @@ export function HomeClient({ initialUser }: HomeClientProps) {
|
|||||||
className="flex flex-col sm:flex-row items-center justify-center gap-4 w-full max-w-md pt-4"
|
className="flex flex-col sm:flex-row items-center justify-center gap-4 w-full max-w-md pt-4"
|
||||||
>
|
>
|
||||||
<Link href="/order" className="w-full sm:w-auto">
|
<Link href="/order" className="w-full sm:w-auto">
|
||||||
<Button size="lg" className="w-full sm:w-auto h-12 px-8 text-base font-bold transition-all duration-300 hover:scale-[1.02] bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-500 hover:to-indigo-500 text-white shadow-[0_0_25px_rgba(37,99,235,0.25)] hover:shadow-[0_0_35px_rgba(37,99,235,0.45)] border-none rounded-xl">
|
<Button size="lg" className="w-full sm:w-auto h-12 px-8 text-base font-semibold bg-blue-600 hover:bg-blue-500 text-white border border-blue-700/50 rounded-xl transition-all duration-200">
|
||||||
Lizenz anfragen <ArrowRight className="ml-2 h-4 w-4" />
|
Lizenz anfragen <ArrowRight className="ml-2 h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
@@ -150,19 +120,17 @@ export function HomeClient({ initialUser }: HomeClientProps) {
|
|||||||
variants={itemVariants}
|
variants={itemVariants}
|
||||||
className="w-full max-w-3xl pt-12"
|
className="w-full max-w-3xl pt-12"
|
||||||
>
|
>
|
||||||
<div className="relative p-6 rounded-2xl border border-slate-900/80 bg-slate-950/40 backdrop-blur-xl shadow-2xl">
|
<div className="relative p-6 rounded-2xl border border-slate-800 bg-slate-900/40 backdrop-blur-md shadow-lg">
|
||||||
{/* Card border glow decoration */}
|
<p className="text-xs font-semibold uppercase tracking-widest text-slate-500 mb-5 text-left sm:text-center px-2">
|
||||||
<div className="absolute inset-0 rounded-2xl border border-blue-500/10 pointer-events-none" />
|
|
||||||
<p className="text-xs font-bold uppercase tracking-widest text-slate-500 mb-5 text-left sm:text-center px-2">
|
|
||||||
Mein Dashboard Schnellzugriff
|
Mein Dashboard Schnellzugriff
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||||
<Link href="/my-customers" className="group">
|
<Link href="/my-customers" className="group">
|
||||||
<motion.div
|
<motion.div
|
||||||
whileHover={{ y: -4, scale: 1.01 }}
|
whileHover={{ y: -2 }}
|
||||||
whileTap={{ scale: 0.99 }}
|
whileTap={{ scale: 0.98 }}
|
||||||
className="flex items-center justify-between p-4 rounded-xl border border-slate-900 bg-slate-950/60 hover:bg-slate-900/30 hover:border-blue-500/20 transition-all duration-300"
|
className="flex items-center justify-between p-4 rounded-xl border border-slate-800 bg-slate-950 hover:bg-slate-900 hover:border-slate-700 transition-all duration-200"
|
||||||
>
|
>
|
||||||
<div className="flex items-center gap-4">
|
<div className="flex items-center gap-4">
|
||||||
<div className="p-2.5 rounded-lg bg-blue-500/10 text-blue-400 group-hover:bg-blue-500/20 group-hover:text-blue-300 transition-colors">
|
<div className="p-2.5 rounded-lg bg-blue-500/10 text-blue-400 group-hover:bg-blue-500/20 group-hover:text-blue-300 transition-colors">
|
||||||
@@ -179,9 +147,9 @@ export function HomeClient({ initialUser }: HomeClientProps) {
|
|||||||
|
|
||||||
<Link href="/my-orders" className="group">
|
<Link href="/my-orders" className="group">
|
||||||
<motion.div
|
<motion.div
|
||||||
whileHover={{ y: -4, scale: 1.01 }}
|
whileHover={{ y: -2 }}
|
||||||
whileTap={{ scale: 0.99 }}
|
whileTap={{ scale: 0.98 }}
|
||||||
className="flex items-center justify-between p-4 rounded-xl border border-slate-900 bg-slate-950/60 hover:bg-slate-900/30 hover:border-blue-500/20 transition-all duration-300"
|
className="flex items-center justify-between p-4 rounded-xl border border-slate-800 bg-slate-950 hover:bg-slate-900 hover:border-slate-700 transition-all duration-200"
|
||||||
>
|
>
|
||||||
<div className="flex items-center gap-4">
|
<div className="flex items-center gap-4">
|
||||||
<div className="p-2.5 rounded-lg bg-blue-500/10 text-blue-400 group-hover:bg-blue-500/20 group-hover:text-blue-300 transition-colors">
|
<div className="p-2.5 rounded-lg bg-blue-500/10 text-blue-400 group-hover:bg-blue-500/20 group-hover:text-blue-300 transition-colors">
|
||||||
@@ -221,11 +189,9 @@ export function HomeClient({ initialUser }: HomeClientProps) {
|
|||||||
<div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
<div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||||
{/* Card 1 */}
|
{/* Card 1 */}
|
||||||
<a href="https://support.teamzone.softengine.de" target="_blank" rel="noopener noreferrer"><motion.div
|
<a href="https://support.teamzone.softengine.de" target="_blank" rel="noopener noreferrer"><motion.div
|
||||||
whileHover={{ y: -6 }}
|
whileHover={{ y: -4 }}
|
||||||
className="group relative flex flex-col p-6 rounded-2xl border border-slate-900 bg-slate-950/70 hover:bg-slate-900/40 hover:border-slate-800/80 transition-all duration-300 shadow-xl overflow-hidden"
|
className="group relative flex flex-col p-6 rounded-2xl border border-slate-800 bg-slate-900/40 hover:bg-slate-900/80 hover:border-slate-700 transition-all duration-200 shadow-md overflow-hidden"
|
||||||
>
|
>
|
||||||
{/* Highlight line hover effect */}
|
|
||||||
<div className="absolute top-0 left-0 w-full h-[2px] bg-gradient-to-r from-transparent via-blue-500 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
|
|
||||||
<div className="space-y-4 relative">
|
<div className="space-y-4 relative">
|
||||||
<div className="inline-flex p-3 bg-blue-500/10 rounded-xl text-blue-400 group-hover:bg-blue-500/20 group-hover:scale-110 transition-all duration-300">
|
<div className="inline-flex p-3 bg-blue-500/10 rounded-xl text-blue-400 group-hover:bg-blue-500/20 group-hover:scale-110 transition-all duration-300">
|
||||||
<MessageSquare className="h-6 w-6" />
|
<MessageSquare className="h-6 w-6" />
|
||||||
@@ -239,11 +205,9 @@ export function HomeClient({ initialUser }: HomeClientProps) {
|
|||||||
|
|
||||||
{/* Card 2 */}
|
{/* Card 2 */}
|
||||||
<a href="https://wiki.caspos.de" target="_blank" rel="noopener noreferrer"><motion.div
|
<a href="https://wiki.caspos.de" target="_blank" rel="noopener noreferrer"><motion.div
|
||||||
whileHover={{ y: -6 }}
|
whileHover={{ y: -4 }}
|
||||||
className="group relative flex flex-col p-6 rounded-2xl border border-slate-900 bg-slate-950/70 hover:bg-slate-900/40 hover:border-slate-800/80 transition-all duration-300 shadow-xl overflow-hidden"
|
className="group relative flex flex-col p-6 rounded-2xl border border-slate-800 bg-slate-900/40 hover:bg-slate-900/80 hover:border-slate-700 transition-all duration-200 shadow-md overflow-hidden"
|
||||||
>
|
>
|
||||||
{/* Highlight line hover effect */}
|
|
||||||
<div className="absolute top-0 left-0 w-full h-[2px] bg-gradient-to-r from-transparent via-indigo-500 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
|
|
||||||
<div className="space-y-4 relative">
|
<div className="space-y-4 relative">
|
||||||
<div className="inline-flex p-3 bg-indigo-500/10 rounded-xl text-indigo-400 group-hover:bg-indigo-500/20 group-hover:scale-110 transition-all duration-300">
|
<div className="inline-flex p-3 bg-indigo-500/10 rounded-xl text-indigo-400 group-hover:bg-indigo-500/20 group-hover:scale-110 transition-all duration-300">
|
||||||
<BookOpen className="h-6 w-6" />
|
<BookOpen className="h-6 w-6" />
|
||||||
@@ -257,11 +221,9 @@ export function HomeClient({ initialUser }: HomeClientProps) {
|
|||||||
|
|
||||||
{/* Card 3 */}
|
{/* Card 3 */}
|
||||||
<a href="https://support.caspos.de" target="_blank" rel="noopener noreferrer"><motion.div
|
<a href="https://support.caspos.de" target="_blank" rel="noopener noreferrer"><motion.div
|
||||||
whileHover={{ y: -6 }}
|
whileHover={{ y: -4 }}
|
||||||
className="group relative flex flex-col p-6 rounded-2xl border border-slate-900 bg-slate-950/70 hover:bg-slate-900/40 hover:border-slate-800/80 transition-all duration-300 shadow-xl overflow-hidden"
|
className="group relative flex flex-col p-6 rounded-2xl border border-slate-800 bg-slate-900/40 hover:bg-slate-900/80 hover:border-slate-700 transition-all duration-200 shadow-md overflow-hidden"
|
||||||
>
|
>
|
||||||
{/* Highlight line hover effect */}
|
|
||||||
<div className="absolute top-0 left-0 w-full h-[2px] bg-gradient-to-r from-transparent via-purple-500 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
|
|
||||||
<div className="space-y-4 relative">
|
<div className="space-y-4 relative">
|
||||||
<div className="inline-flex p-3 bg-purple-500/10 rounded-xl text-purple-400 group-hover:bg-purple-500/20 group-hover:scale-110 transition-all duration-300">
|
<div className="inline-flex p-3 bg-purple-500/10 rounded-xl text-purple-400 group-hover:bg-purple-500/20 group-hover:scale-110 transition-all duration-300">
|
||||||
<LifeBuoy className="h-6 w-6" />
|
<LifeBuoy className="h-6 w-6" />
|
||||||
@@ -287,7 +249,7 @@ export function HomeClient({ initialUser }: HomeClientProps) {
|
|||||||
|
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
{/* Connection line for Desktop */}
|
{/* Connection line for Desktop */}
|
||||||
<div className="hidden md:block absolute top-[28px] left-[15%] right-[15%] h-[1px] bg-gradient-to-r from-blue-500/10 via-blue-500/30 to-blue-500/10 z-0" />
|
<div className="hidden md:block absolute top-[28px] left-[15%] right-[15%] h-[1px] border-t border-dashed border-slate-800 z-0" />
|
||||||
|
|
||||||
<div className="grid gap-8 md:grid-cols-3 relative z-10">
|
<div className="grid gap-8 md:grid-cols-3 relative z-10">
|
||||||
{/* Step 1 */}
|
{/* Step 1 */}
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ export function NavbarClient({ user, role = "partner" }: NavbarClientProps) {
|
|||||||
<nav className="hidden md:flex gap-6 items-center">
|
<nav className="hidden md:flex gap-6 items-center">
|
||||||
<Link
|
<Link
|
||||||
className="text-sm font-medium text-slate-300 hover:text-primary transition-colors"
|
className="text-sm font-medium text-slate-300 hover:text-primary transition-colors"
|
||||||
href="https://wiki.caspos.de"
|
href="https://support.teamzone.softengine.de"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user