Require login for consulting booking and add availability banner on products page
- Consulting booking now requires authentication upfront (shows login prompt to non-users) - Added prominent consultation availability banner on products page when enabled - Added debug logging to Layout component for branding troubleshooting - Mobile Layout header shows responsive platform name sizing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -338,6 +338,26 @@ export default function ConsultingBooking() {
|
||||
);
|
||||
}
|
||||
|
||||
// Require authentication to access consulting booking
|
||||
if (!user) {
|
||||
return (
|
||||
<AppLayout>
|
||||
<div className="container mx-auto px-4 py-16 text-center">
|
||||
<div className="max-w-md mx-auto">
|
||||
<Video className="w-16 h-16 mx-auto mb-4 text-muted-foreground" />
|
||||
<h1 className="text-2xl font-bold mb-2">Login Diperlukan</h1>
|
||||
<p className="text-muted-foreground mb-6">
|
||||
Anda harus login untuk memesan jadwal konsultasi.
|
||||
</p>
|
||||
<Button onClick={() => navigate('/auth')} size="lg">
|
||||
Login Sekarang
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
|
||||
if (!settings?.is_consulting_enabled) {
|
||||
return (
|
||||
<AppLayout>
|
||||
|
||||
Reference in New Issue
Block a user