Skip to content

Commit 8f255a1

Browse files
committed
feat(webapp): enhance landing page with mobile menu and animation
- Added a mobile menu with toggle functionality to the landing page component. - Implemented animations for the mobile menu using Angular animations. - Updated the AI Chatbot feature status to "Available Now" and added a call-to-action button. - Improved user experience with responsive design adjustments for mobile navigation.
1 parent 5ce3880 commit 8f255a1

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

webapp/src/app/components/landing-page.component.ts

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,72 @@ import { AnalyticsService } from '../services/analytics.service'
131131
<span class="ml-1 bg-blue-500 text-white text-xs px-1.5 py-0.5 rounded-full">BETA</span>
132132
</a>
133133
</div>
134+
135+
<!-- Mobile Menu Button -->
136+
<button
137+
class="md:hidden text-gray-600 focus:outline-none hover:text-blue-600 transition duration-300"
138+
(click)="toggleMobileMenu()"
139+
aria-label="Toggle menu"
140+
>
141+
<svg
142+
xmlns="http://www.w3.org/2000/svg"
143+
class="h-6 w-6"
144+
fill="none"
145+
viewBox="0 0 24 24"
146+
stroke="currentColor"
147+
>
148+
<path
149+
*ngIf="!isMobileMenuOpen()"
150+
stroke-linecap="round"
151+
stroke-linejoin="round"
152+
stroke-width="2"
153+
d="M4 6h16M4 12h16M4 18h16"
154+
/>
155+
<path
156+
*ngIf="isMobileMenuOpen()"
157+
stroke-linecap="round"
158+
stroke-linejoin="round"
159+
stroke-width="2"
160+
d="M6 18L18 6M6 6l12 12"
161+
/>
162+
</svg>
163+
</button>
164+
</div>
165+
166+
<!-- Mobile Menu -->
167+
<div
168+
*ngIf="isMobileMenuOpen()"
169+
[@mobileMenuAnimation]
170+
class="md:hidden mt-3 border-t border-gray-200 pt-3"
171+
>
172+
<div class="flex flex-col space-y-3">
173+
<a
174+
href="#features"
175+
class="text-gray-600 hover:text-blue-600 transition duration-300 py-1"
176+
(click)="closeMobileMenu()"
177+
>Features</a
178+
>
179+
<a
180+
href="#about"
181+
class="text-gray-600 hover:text-blue-600 transition duration-300 py-1"
182+
(click)="closeMobileMenu()"
183+
>About</a
184+
>
185+
<a
186+
href="#contact"
187+
class="text-gray-600 hover:text-blue-600 transition duration-300 py-1"
188+
(click)="closeMobileMenu()"
189+
>Contact</a
190+
>
191+
<a
192+
routerLink="chat"
193+
class="text-blue-600 hover:text-blue-800 transition duration-300 flex items-center py-1"
194+
(click)="closeMobileMenu()"
195+
>
196+
<span>Chat</span>
197+
<span class="ml-1 bg-blue-500 text-white text-xs px-1.5 py-0.5 rounded-full">BETA</span>
198+
</a>
199+
</div>
134200
</div>
135201
</nav>
136202

0 commit comments

Comments
 (0)