Spaces:
Running
Running
Download index.html from vikasharry03/nabnet: direct link, hf CLI and curl.
- Browser
- Download file 24.2 kB
-
https://huggingface.co/spaces/vikasharry03/nabnet/resolve/main/index.html
- Command line
-
hf download hf://spaces/vikasharry03/nabnet/index.html
-
curl -L -o index.html https://huggingface.co/spaces/vikasharry03/nabnet/resolve/main/index.html
24.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Nabnet Landing Page</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @keyframes gradient { | |
| 0% { | |
| background-position: 0% 50%; | |
| } | |
| 50% { | |
| background-position: 100% 50%; | |
| } | |
| 100% { | |
| background-position: 0% 50%; | |
| } | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(-45deg, #006747, #009a44, #78be20, #c4d600); | |
| background-size: 400% 400%; | |
| animation: gradient 15s ease infinite; | |
| } | |
| .input-icon { | |
| position: absolute; | |
| left: 15px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| color: #006747; | |
| } | |
| .password-toggle { | |
| position: absolute; | |
| right: 15px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| cursor: pointer; | |
| color: #006747; | |
| } | |
| .logo-container { | |
| background: rgba(255, 255, 255, 0.2); | |
| backdrop-filter: blur(10px); | |
| padding: 2px; | |
| } | |
| .dark .text-gray-800 { | |
| color: white; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 min-h-screen transition-colors duration-200"> | |
| <div class="container mx-auto px-4 py-4"> | |
| <!-- Header --> | |
| <header class="flex items-center justify-between mb-6"> | |
| <div class="flex items-center"> | |
| <div class="logo-container mr-4"> | |
| <img src="https://www.nabard.org/images/logo.png" alt="NABARD Logo" class="h-12"> | |
| </div> | |
| <div> | |
| <h1 class="text-2xl font-bold text-gray-800 dark:text-white">Nabnet</h1> | |
| <p class="text-gray-600 dark:text-gray-300 text-sm">NABARD's Corporate Intranet Portal</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="flex items-center"> | |
| <select class="border rounded px-3 py-1 text-sm"> | |
| <option>लANGUAGE [हिंदी]</option> | |
| <option selected>English</option> | |
| </select> | |
| </div> | |
| <div class="flex items-center space-x-2"> | |
| <button id="decrease-text" class="text-gray-600 hover:text-gray-800"> | |
| <i class="fas fa-text-height"></i> - | |
| </button> | |
| <button id="reset-text" class="text-gray-600 hover:text-gray-800 text-sm"> | |
| Reset | |
| </button> | |
| <button id="increase-text" class="text-gray-600 hover:text-gray-800"> | |
| <i class="fas fa-text-height"></i> + | |
| </button> | |
| </div> | |
| <div class="flex items-center space-x-2"> | |
| <button id="light-theme" class="w-6 h-6 rounded-full bg-white border border-gray-300"></button> | |
| <button id="dark-theme" class="w-6 h-6 rounded-full bg-gray-800"></button> | |
| <button id="sepia-theme" class="w-6 h-6 rounded-full bg-amber-100"></button> | |
| </div> | |
| <button class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded text-sm"> | |
| Logout | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="bg-white bg-opacity-90 rounded-xl shadow-xl max-w-4xl mx-auto p-8 mb-8"> | |
| <!-- Content from the original default.aspx page would go here --> | |
| <div class="prose max-w-none"> | |
| <!-- This is where the existing content from default.aspx would be placed --> | |
| <p>Welcome to Nabnet - NABARD's Corporate Intranet Portal</p> | |
| <!-- More content from the original page would be inserted here --> | |
| </div> | |
| </main> | |
| <!-- Controls Section --> | |
| <div class="flex justify-center mb-6 max-w-6xl mx-auto"> | |
| <div class="relative w-full"> | |
| <input type="text" id="portal-search" placeholder="Search portals... (name or category)" | |
| class="w-full px-4 py-2 pr-10 border rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500"> | |
| <div id="search-results" class="absolute z-10 w-full mt-1 bg-white border rounded-lg shadow-lg max-h-96 overflow-y-auto hidden"></div> | |
| </div> | |
| </div> | |
| <!-- Portal Links Section --> | |
| <div class="bg-white rounded-xl shadow-md max-w-6xl mx-auto p-6 mb-8"> | |
| <h2 class="text-xl font-bold text-gray-800 mb-4">Quick Links to Portals</h2> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">Communication</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="communication-links"></div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">HR</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="hr-links"></div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">RMD</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="rmd-links"></div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">Loans & Grants</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="loans-links"></div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">HO</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="ho-links"></div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">ID</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="id-links"></div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">DOS</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="dos-links"></div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">DDMABi</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="ddmabi-links"></div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">DDM</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="ddm-links"></div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">KMS (Knowledge Management System)</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="kms-links"></div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">Subsidiaries</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="subsidiaries-links"></div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold text-gray-700 mb-3">Others</h3> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3" id="other-links"></div> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="text-center text-sm"> | |
| <div class="flex justify-center space-x-4 mb-4"> | |
| <a href="https://www.youtube.com/user/NABARDonline" target="_blank" class="text-gray-600 hover:text-red-600 dark:text-gray-300 dark:hover:text-red-400"> | |
| <i class="fab fa-youtube text-xl"></i> | |
| </a> | |
| <a href="https://www.instagram.com/nabardonline/" target="_blank" class="text-gray-600 hover:text-pink-600 dark:text-gray-300 dark:hover:text-pink-400"> | |
| <i class="fab fa-instagram text-xl"></i> | |
| </a> | |
| <a href="https://twitter.com/NABARDonline" target="_blank" class="text-gray-600 hover:text-blue-400 dark:text-gray-300 dark:hover:text-blue-300"> | |
| <i class="fab fa-twitter text-xl"></i> | |
| </a> | |
| <a href="https://www.linkedin.com/company/nabard" target="_blank" class="text-gray-600 hover:text-blue-600 dark:text-gray-300 dark:hover:text-blue-400"> | |
| <i class="fab fa-linkedin text-xl"></i> | |
| </a> | |
| <a href="https://www.facebook.com/NABARDonline/" target="_blank" class="text-gray-600 hover:text-blue-600 dark:text-gray-300 dark:hover:text-blue-400"> | |
| <i class="fab fa-facebook text-xl"></i> | |
| </a> | |
| </div> | |
| <p class="text-gray-800 dark:text-gray-200">© 2023 NABARD. All rights reserved.</p> | |
| <p id="current-time" class="text-gray-600 dark:text-gray-400"></p> | |
| </footer> | |
| </div> | |
| <script> | |
| // Current time display | |
| function updateTime() { | |
| const now = new Date(); | |
| document.getElementById('current-time').textContent = | |
| now.toLocaleDateString() + ' ' + now.toLocaleTimeString(); | |
| } | |
| setInterval(updateTime, 1000); | |
| updateTime(); | |
| // Text size controls | |
| document.getElementById('increase-text').addEventListener('click', () => { | |
| document.body.style.fontSize = (parseFloat(getComputedStyle(document.body).fontSize) + 1) + 'px'; | |
| }); | |
| document.getElementById('decrease-text').addEventListener('click', () => { | |
| document.body.style.fontSize = (parseFloat(getComputedStyle(document.body).fontSize) - 1) + 'px'; | |
| }); | |
| document.getElementById('reset-text').addEventListener('click', () => { | |
| document.body.style.fontSize = ''; | |
| }); | |
| // Theme controls | |
| document.getElementById('light-theme').addEventListener('click', () => { | |
| document.body.className = 'bg-gray-50 min-h-screen transition-colors duration-200'; | |
| document.documentElement.classList.remove('dark'); | |
| }); | |
| document.getElementById('dark-theme').addEventListener('click', () => { | |
| document.body.className = 'bg-gray-800 min-h-screen transition-colors duration-200'; | |
| document.documentElement.classList.add('dark'); | |
| }); | |
| document.getElementById('sepia-theme').addEventListener('click', () => { | |
| document.body.className = 'bg-amber-50 min-h-screen transition-colors duration-200'; | |
| document.documentElement.classList.remove('dark'); | |
| }); | |
| // Advanced Search functionality | |
| const portalSearch = document.getElementById('portal-search'); | |
| const searchResults = document.getElementById('search-results'); | |
| // Add close button to search | |
| const searchClose = document.createElement('button'); | |
| searchClose.innerHTML = '<i class="fas fa-times"></i>'; | |
| searchClose.className = 'absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600'; | |
| searchClose.addEventListener('click', () => { | |
| portalSearch.value = ''; | |
| searchResults.classList.add('hidden'); | |
| }); | |
| portalSearch.parentNode.appendChild(searchClose); | |
| // Fuzzy match function | |
| function fuzzyMatch(str, pattern) { | |
| pattern = pattern.toLowerCase().split('').reduce((a, b) => a + '[^' + b + ']*' + b); | |
| return (new RegExp(pattern)).test(str.toLowerCase()); | |
| } | |
| // Highlight matching text | |
| function highlightMatch(text, query) { | |
| const regex = new RegExp(query, 'gi'); | |
| return text.replace(regex, match => `<span class="bg-yellow-200">${match}</span>`); | |
| } | |
| // Get category display name | |
| function getCategoryName(category) { | |
| const categories = { | |
| 'communication': 'Communication', | |
| 'hr': 'HR', | |
| 'rmd': 'RMD', | |
| 'loans': 'Loans', | |
| 'ho': 'HO', | |
| 'id': 'ID', | |
| 'dos': 'DOS', | |
| 'ddmabi': 'DDMABi', | |
| 'ddm': 'DDM', | |
| 'kms': 'KMS', | |
| 'subsidiaries': 'Subsidiaries' | |
| }; | |
| return categories[category] || category; | |
| } | |
| portalSearch.addEventListener('input', (e) => { | |
| const query = e.target.value.toLowerCase().trim(); | |
| searchClose.classList.toggle('hidden', query.length === 0); | |
| if (query.length > 0) { | |
| const filtered = portals.filter(portal => { | |
| return query.length < 3 ? | |
| portal.label.toLowerCase().includes(query) || | |
| portal.category.includes(query) : | |
| fuzzyMatch(portal.label, query) || | |
| fuzzyMatch(portal.category, query); | |
| }); | |
| searchResults.innerHTML = filtered.length ? '' : '<div class="px-4 py-2 text-gray-500">No matching portals found</div>'; | |
| filtered.forEach(portal => { | |
| const result = document.createElement('div'); | |
| result.className = 'px-4 py-3 hover:bg-gray-50 cursor-pointer border-b border-gray-100 flex justify-between items-center'; | |
| const leftContent = document.createElement('div'); | |
| leftContent.className = 'flex-1'; | |
| leftContent.innerHTML = highlightMatch(portal.label, query); | |
| const rightContent = document.createElement('div'); | |
| rightContent.className = 'ml-4'; | |
| const categoryBadge = document.createElement('span'); | |
| categoryBadge.className = 'bg-green-100 text-green-800 text-xs px-2 py-1 rounded'; | |
| categoryBadge.textContent = getCategoryName(portal.category); | |
| rightContent.appendChild(categoryBadge); | |
| result.appendChild(leftContent); | |
| result.appendChild(rightContent); | |
| result.addEventListener('click', () => { | |
| if (portal.url) window.open(portal.url, '_blank'); | |
| }); | |
| searchResults.appendChild(result); | |
| }); | |
| searchResults.classList.remove('hidden'); | |
| } else { | |
| searchResults.classList.add('hidden'); | |
| } | |
| }); | |
| // Close results when clicking elsewhere | |
| document.addEventListener('click', (e) => { | |
| if (!portalSearch.contains(e.target) && !searchResults.contains(e.target)) { | |
| searchResults.classList.add('hidden'); | |
| } | |
| }); | |
| // Show results on search input focus if there's a query | |
| portalSearch.addEventListener('focus', () => { | |
| if (portalSearch.value.trim()) { | |
| portalSearch.dispatchEvent(new Event('input')); | |
| } | |
| }); | |
| const portals = [ | |
| { "label": "Nabnet", "url": "https://www.nabnet.in/home.aspx", "category": "communication" }, | |
| { "label": "Nabnet Blogs", "url": "https://www.nabnet.in/home.aspx", "category": "communication" }, | |
| { "label": "NABARD Contacts", "url": "https://www.nabnet.in/home.aspx", "category": "communication" }, | |
| { "label": "ECM", "url": "https://ecm.nabard.org:8443/edmapp/signin.jsp", "category": "communication" }, | |
| { "label": "Nabsamvad", "url": "https://nabsamvad.nabard.org/", "image": "https://www.nabnet.in/images/nabsam.png", "category": "communication" }, | |
| { "label": "Nabmeetings", "url": "https://nabmeetings.nabard.org", "image": "https://www.nabnet.in/images/nabmeetings.png", "category": "communication" }, | |
| { "label": "Office 365", "url": "https://portal.office.com/", "category": "communication" }, | |
| { "label": "Microsoft Teams", "url": "", "category": "communication" }, | |
| { "label": "SharePoint", "url": "https://nabardmumbai.sharepoint.com/", "category": "communication" }, | |
| { "label": "ITSM", "url": "https://itsm.nabard.org/", "category": "communication" }, | |
| { "label": "Discussion Forum", "url": "https://itsm.nabard.org/", "category": "communication" }, | |
| { "label": "Empower", "url": "https://hrms.nabard.org:1443/psp/ps/?cmd=login", "category": "hr" }, | |
| { "label": "Nabkshem", "url": "https://nabkshem.nabard.org/", "image": "https://www.nabnet.in/images/nabkshem1.jpg", "category": "hr" }, | |
| { "label": "NABARD Student Internship", "url": "https://www.nabard.org/studentinternship/auth/cp/login.aspx", "image": "https://www.nabnet.in/images/sis.png", "category": "hr" }, | |
| { "label": "Training Dashboard", "url": "http://nabtest.nbsc.in/", "image": "https://www.nabnet.in/images/trn_db.png", "category": "hr" }, | |
| { "label": "NABScholar", "url": "https://nabscholar.nabard.org/", "category": "hr" }, | |
| { "label": "Holiday Homes", "url": "https://nabscholar.nabard.org/", "category": "hr" }, | |
| { "label": "Medical Corner", "url": "https://nabscholar.nabard.org/", "category": "hr" }, | |
| { "label": "Nabard Parivar", "url": "https://nabscholar.nabard.org/", "category": "hr" }, | |
| { "label": "Pensioner's Page", "url": "https://nabscholar.nabard.org/", "category": "hr" }, | |
| { "label": "RCSA", "url": "https://rcsa.nabard.org", "image": "https://www.nabnet.in/images/rcsa.png", "category": "rmd" }, | |
| { "label": "ERMS", "url": "https://erms.nabard.org/NABARD.ERMS.PROD", "image": "https://www.nabnet.in/images/erms1.png", "category": "rmd" }, | |
| { "label": "SOP Corner", "url": "https://erms.nabard.org/NABARD.ERMS.PROD", "image": "https://www.nabnet.in/images/erms1.png", "category": "rmd" }, | |
| { "label": "ENGAGE", "url": "https://engage.nabard.org/security/", "image": "https://www.nabnet.in/images/engage.png", "category": "loans" }, | |
| { "label": "RIDF Portal", "url": "https://ridf.nabard.org/ridfui/", "image": "https://www.nabnet.in/images/ridf.jpg", "category": "loans" }, | |
| { "label": "VMS", "url": "https://vms.nabard.org/login.aspx", "image": "https://www.nabnet.in/images/vms1.jpg", "category": "ho" }, | |
| { "label": "NABRefresh Module", "url": "https://www.nabnet.in/dit/users/", "image": "https://www.nabnet.in/images/nabrefresh.png", "category": "ho" }, | |
| { "label": "iSoft", "url": "https://isoft.nabard.org/baasISoftLcl/#/login", "image": "https://www.nabnet.in/images/isoftnew.jpg", "category": "id" }, | |
| { "label": "Supersoft", "url": "https://erms.nabard.org/NABARD.ERMS.PROD", "image": "https://www.nabnet.in/images/erms1.png", "category": "dos" }, | |
| { "label": "Regulator+", "url": "https://erms.nabard.org/NABARD.ERMS.PROD", "image": "https://www.nabnet.in/images/erms1.png", "category": "dos" }, | |
| { "label": "Nabdata Dashboard", "url": "https://nabdata.nabard.org/", "image": "https://www.nabnet.in/images/nabdata.png", "category": "ddmabi" }, | |
| { "label": "ENSURE", "url": "https://ensure.nabard.org", "category": "ddmabi" }, | |
| { "label": "Samiksha", "url": "https://samiksha.nabard.org/", "image": "https://www.nabnet.in/images/Samiksha.png", "category": "ddmabi" }, | |
| { "label": "DDM Connect", "url": "https://ddmconnect.nabnet.in/", "image": "https://www.nabnet.in/images/ddm-connect.png", "category": "ddm" }, | |
| { "label": "DDM Corner", "url": "https://ddmconnect.nabnet.in/", "image": "https://www.nabnet.in/images/ddm-connect.png", "category": "ddm" }, | |
| { "label": "Nabparikshan", "url": "https://nabparikshan.nabnet.in/", "image": "https://www.nabnet.in/images/nabparikshan-ddm.png", "category": "ddm" }, | |
| { "label": "Circulars", "url": "#", "category": "kms" }, | |
| { "label": "Publications/Reports", "url": "#", "category": "kms" }, | |
| { "label": "Reports", "url": "#", "category": "kms" }, | |
| { "label": "Blogs", "url": "#", "category": "kms" }, | |
| { "label": "Department Corners", "url": "#", "category": "kms" }, | |
| { "label": "NABARD Consultancy Services (NABCONS)", "url": "https://nabcons.com", "category": "subsidiaries" }, | |
| { "label": "NABARD Financial Services Limited (NABFINS)", "url": "https://www.nabfins.org", "category": "subsidiaries" }, | |
| { "label": "NABARD Kisan Sanchar Limited (NKSL)", "url": "#", "category": "subsidiaries" }, | |
| { "label": "Nabventures Limited", "url": "https://www.nabard-ventures.com", "category": "subsidiaries" } | |
| ]; | |
| function createPortalElement(portal) { | |
| const portalElement = document.createElement('a'); | |
| portalElement.href = portal.url; | |
| portalElement.target = "_blank"; | |
| portalElement.className = "bg-white rounded-lg p-4 shadow-md hover:shadow-lg transition-shadow flex flex-col items-center justify-center h-full"; | |
| const icon = document.createElement('div'); | |
| icon.className = "h-12 w-12 bg-green-100 rounded-full flex items-center justify-center mb-2 text-green-600"; | |
| icon.innerHTML = '<i class="fas fa-external-link-alt"></i>'; | |
| portalElement.appendChild(icon); | |
| const label = document.createElement('span'); | |
| label.textContent = portal.label; | |
| label.className = "text-center text-xs text-gray-700"; | |
| portalElement.appendChild(label); | |
| return portalElement; | |
| } | |
| // Populate each category from the categorized portals array | |
| portals.forEach(portal => { | |
| let container; | |
| switch(portal.category) { | |
| case 'communication': container = 'communication-links'; break; | |
| case 'hr': container = 'hr-links'; break; | |
| case 'rmd': container = 'rmd-links'; break; | |
| case 'loans': container = 'loans-links'; break; | |
| case 'ho': container = 'ho-links'; break; | |
| case 'id': container = 'id-links'; break; | |
| case 'dos': container = 'dos-links'; break; | |
| case 'ddmabi': container = 'ddmabi-links'; break; | |
| case 'ddm': container = 'ddm-links'; break; | |
| case 'kms': container = 'kms-links'; break; | |
| case 'subsidiaries': container = 'subsidiaries-links'; break; | |
| default: container = 'other-links'; | |
| } | |
| document.getElementById(container).appendChild(createPortalElement(portal)); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=vikasharry03/nabnet" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |