bharath/webapp/src/views/pages/notifications.ejs
Vivek ed320e82c1 feat: add 35+ features - i18n, voice input, gamification, driver tools, marketplace
- Multi-language support (English, Hindi, Tamil, Telugu) with icon-based UI
- Voice input (Web Speech API) for low-literacy users
- Driver tools: Ledger, Trip Planner, Return Load, Safety, Maintenance, FASTag
- Marketplace: WhatsApp share, Rate Intelligence, Classifieds, Fleet
- Engagement: Gamification (XP/Levels), Challenges, Leaderboard, Referrals, Feed
- Business: Invoice (GST+UPI), Reports+CSV, Notifications, Documents, Bank
- Games: Rate Guesser, Route Quiz
- SEO: Sitemap, public load share pages with OG tags
- India utilities: vehicle validation, UPI links, toll/fuel calculator
- 29 routes, 54 templates, 4 languages, 3 migration files
2026-05-31 09:19:16 +00:00

22 lines
1.2 KiB
Text

<% var title = 'Notifications'; %>
<%- include('../partials/header') %>
<div class="tricolor-strip"><div class="tricolor-saffron"></div><div class="tricolor-white"></div><div class="tricolor-green"></div></div>
<section class="section" style="padding-top:var(--space-lg)">
<div class="container">
<h2 style="font-size:1.3rem;margin-bottom:var(--space-md)">🔔 Notifications</h2>
<% if (notifications.length === 0) { %>
<div class="card text-center" style="padding:var(--space-2xl)"><p>✅ All clear! No pending actions.</p></div>
<% } else { notifications.forEach(n => { %>
<a href="<%= n.url || '#' %>" class="card card-accent" style="display:block;text-decoration:none;color:inherit;margin-bottom:var(--space-sm);border-left-color:<%= n.priority==='high'?'red':n.priority==='medium'?'orange':'var(--gray-300)' %>">
<div style="display:flex;gap:var(--space-sm);align-items:start">
<span style="font-size:1.3rem"><%= n.icon %></span>
<div>
<strong style="font-size:0.9rem"><%= n.title %></strong>
<div style="font-size:0.8rem;color:var(--gray-700)"><%= n.subtitle || '' %></div>
</div>
</div>
</a>
<% }) } %>
</div>
</section>
<%- include('../partials/footer') %>