Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Law Student Dashboard</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="stylesheet" href="/static/css/entrance.css"> | |
| <script src="/static/js/entrance.js" defer></script> | |
| <style> | |
| /* Reset */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: "Segoe UI", sans-serif; | |
| } | |
| body { | |
| background: linear-gradient(135deg, #f5f7fa, #c3cfe2); | |
| min-height: 100vh; | |
| display: flex; | |
| } | |
| /* Sidebar */ | |
| .sidebar { | |
| width: 250px; | |
| background: #0f172a; | |
| color: white; | |
| padding: 20px; | |
| position: fixed; | |
| height: 100vh; | |
| overflow-y: auto; | |
| transition: all 0.3s; | |
| } | |
| .sidebar h2 { | |
| text-align: center; | |
| margin-bottom: 30px; | |
| font-size: 24px; | |
| border-bottom: 2px solid #64748b; | |
| padding-bottom: 10px; | |
| } | |
| .sidebar a { | |
| display: block; | |
| color: #e2e8f0; | |
| padding: 12px 15px; | |
| margin: 10px 0; | |
| border-radius: 8px; | |
| transition: 0.3s ease; | |
| text-decoration: none; | |
| } | |
| .sidebar a:hover { | |
| background: #1e293b; | |
| } | |
| /* Main Content */ | |
| .main { | |
| margin-left: 270px; | |
| padding: 30px; | |
| flex: 1; | |
| } | |
| .header { | |
| font-size: 28px; | |
| font-weight: bold; | |
| color: #1e293b; | |
| margin-bottom: 25px; | |
| } | |
| .cards { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); | |
| gap: 20px; | |
| } | |
| .card { | |
| background: white; | |
| padding: 20px; | |
| border-radius: 15px; | |
| box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| cursor: pointer; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .card:hover { | |
| transform: translateY(-10px); | |
| box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); | |
| } | |
| .card::before { | |
| content: ''; | |
| position: absolute; | |
| width: 150%; | |
| height: 150%; | |
| background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent); | |
| top: -50%; | |
| left: -50%; | |
| transition: all 0.5s ease; | |
| } | |
| .card:hover::before { | |
| top: -30%; | |
| left: -30%; | |
| } | |
| .card h3 { | |
| margin-bottom: 10px; | |
| color: #0f172a; | |
| } | |
| .card p { | |
| color: #475569; | |
| } | |
| /* Chatbot Button */ | |
| .chatbot-btn { | |
| position: fixed; | |
| bottom: 30px; | |
| right: 30px; | |
| background: #2563eb; | |
| color: white; | |
| border: none; | |
| padding: 15px 20px; | |
| border-radius: 50px; | |
| font-size: 16px; | |
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); | |
| cursor: pointer; | |
| transition: 0.3s ease; | |
| } | |
| .chatbot-btn:hover { | |
| background: #1e40af; | |
| } | |
| @media(max-width: 768px) { | |
| .sidebar { | |
| width: 100%; | |
| height: auto; | |
| position: relative; | |
| } | |
| .main { | |
| margin-left: 0; | |
| } | |
| } | |
| #content-area { | |
| margin-top: 40px; | |
| padding: 25px; | |
| background: #ffffff; | |
| border-radius: 15px; | |
| box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); | |
| display: none; | |
| } | |
| #content-area h2 { | |
| color: #0f172a; | |
| margin-bottom: 15px; | |
| } | |
| #content-area ul { | |
| list-style: disc; | |
| padding-left: 20px; | |
| } | |
| #content-area li { | |
| margin-bottom: 10px; | |
| color: #334155; | |
| } | |
| #content-area a { | |
| text-decoration: none; | |
| color: #2563eb; | |
| } | |
| #content-area a:hover { | |
| text-decoration: underline; | |
| } | |
| #content-area { | |
| animation: fadeIn 0.3s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .back-video { | |
| position: fixed; | |
| right: 0; | |
| bottom: 0; | |
| min-height: 100%; | |
| min-width: 100%; | |
| z-index: -1; | |
| } | |
| @media (min-aspect-ratio:16/9) { | |
| .back-video { | |
| width: auto; | |
| height: auto; | |
| } | |
| } | |
| @media (max-aspect-ratio:16/9) { | |
| .back-video { | |
| width: auto; | |
| height: 100%; | |
| } | |
| } | |
| /* User Profile Dropdown Styles */ | |
| .user-profile-menu { | |
| position: fixed; | |
| top: 20px; | |
| right: 30px; | |
| z-index: 1001; | |
| display: flex; | |
| align-items: center; | |
| cursor: pointer; | |
| } | |
| .profile-icon-btn { | |
| width: 42px; | |
| height: 42px; | |
| border-radius: 50%; | |
| background: linear-gradient(135deg, #2563eb, #1e40af); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: white; | |
| font-size: 1.2rem; | |
| border: 2px solid rgba(255, 255, 255, 0.4); | |
| transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); | |
| box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); | |
| } | |
| .profile-icon-btn:hover { | |
| transform: scale(1.1); | |
| border-color: white; | |
| box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); | |
| } | |
| .dropdown-menu { | |
| position: absolute; | |
| top: 120%; | |
| right: 0; | |
| width: 200px; | |
| background: white; | |
| border-radius: 12px; | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| overflow: hidden; | |
| display: none; | |
| flex-direction: column; | |
| border: 1px solid rgba(37, 99, 235, 0.1); | |
| animation: dropdownFade 0.3s ease; | |
| } | |
| @keyframes dropdownFade { | |
| from { | |
| opacity: 0; | |
| transform: translateY(-10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .dropdown-menu.show { | |
| display: flex; | |
| } | |
| .dropdown-item { | |
| padding: 12px 20px; | |
| font-size: 0.95rem; | |
| color: #1e293b; | |
| text-decoration: none; | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| transition: background 0.2s; | |
| border-bottom: 1px solid rgba(0, 0, 0, 0.05); | |
| } | |
| .dropdown-item:last-child { | |
| border-bottom: none; | |
| } | |
| .dropdown-item:hover { | |
| background: rgba(37, 99, 235, 0.05); | |
| } | |
| .dropdown-item.role-info { | |
| font-weight: 600; | |
| color: #2563eb; | |
| background: rgba(37, 99, 235, 0.05); | |
| cursor: default; | |
| } | |
| .logout-action { | |
| color: #dc2626; | |
| font-weight: 500; | |
| } | |
| .logout-action:hover { | |
| background: rgba(220, 38, 38, 0.05); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="sidebar"> | |
| <h2>Law Student</h2> | |
| <a href="#" onclick="showSidebarContent('laws')">π Indian Laws</a> | |
| <a href="#" onclick="showSidebarContent('materials')">π Study Materials</a> | |
| <a href="#" onclick="showSidebarContent('cases')">π§ Case Studies</a> | |
| <a href="#" onclick="showSidebarContent('events')">π Legal Events</a> | |
| <a href="#" onclick="showSidebarContent('chatbot')">βοΈ Legal Chatbot</a> | |
| </div> | |
| <video autoplay loop muted plays-inline class="back-video"> | |
| <source src="/static/video.mp4" type="video/mp4"> | |
| </video> | |
| <div class="user-profile-menu" id="userProfileMenu"> | |
| <div class="profile-icon-btn"> | |
| <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> | |
| <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path> | |
| <circle cx="12" cy="7" r="4"></circle> | |
| </svg> | |
| </div> | |
| <div class="dropdown-menu" id="dropdownMenu"> | |
| <div class="dropdown-item role-info"> | |
| Role: Law Student | |
| </div> | |
| <a href="#" class="dropdown-item logout-action" onclick="logout()"> | |
| <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> | |
| <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path> | |
| <polyline points="16 17 21 12 16 7"></polyline> | |
| <line x1="21" y1="12" x2="9" y2="12"></line> | |
| </svg> | |
| Logout | |
| </a> | |
| </div> | |
| </div> | |
| <div class="main"> | |
| <div class="header">Welcome to Your Legal Learning Dashboard</div> | |
| <div class="cards"> | |
| <div class="card" onmouseover="showContent('fundamental')"> | |
| <h3>Fundamental Rights</h3> | |
| <p>Explore key constitutional rights every citizen and law student must know.</p> | |
| </div> | |
| <div class="card" onmouseover="showContent('ipc')"> | |
| <h3>IPC Essentials</h3> | |
| <p>Learn major sections of the Indian Penal Code through visual explanations.</p> | |
| </div> | |
| <div class="card" onmouseover="showContent('judgments')"> | |
| <h3>Recent Judgments</h3> | |
| <p>Stay updated with landmark verdicts and their implications.</p> | |
| </div> | |
| <div class="card" onmouseover="showContent('notes')"> | |
| <h3>Downloadable Notes</h3> | |
| <p>Access law subject notes, PDF guides, and court practice tips.</p> | |
| </div> | |
| </div> | |
| <div id="content-area"></div> | |
| </div> | |
| <button class="chatbot-btn" onclick="openChatbot()">π¬ Ask Legal Bot</button> | |
| <script> | |
| </script> | |
| </body> | |
| </html> |