Spaces:
Running
Running
Download index.html from SanjayPandaG/website-v2: direct link, hf CLI and curl.
- Browser
- Download file 46.4 kB
-
https://huggingface.co/spaces/SanjayPandaG/website-v2/resolve/main/index.html
- Command line
-
hf download hf://spaces/SanjayPandaG/website-v2/index.html
-
curl -L -o index.html https://huggingface.co/spaces/SanjayPandaG/website-v2/resolve/main/index.html
46.4 kB
| <html> | |
| <head> | |
| <title>My app</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta charset="utf-8"> | |
| <script src="https://cdn.tailwindcss.com"> | |
| </script> | |
| <!-- Inter Font --> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet"> | |
| <style> | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background-color: #f0f4f8; /* Light blue-gray background */ | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| } | |
| /* Custom styles for navigation active state and iframe */ | |
| .nav-link.active { | |
| @apply text-white bg-teal-700; | |
| } | |
| /* Styles for dropdown menus */ | |
| .dropdown-menu { | |
| @apply absolute bg-teal-700 shadow-lg rounded-md py-2 min-w-[160px] z-20; | |
| opacity: 0; | |
| visibility: hidden; | |
| transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; | |
| } | |
| /* Show dropdown on parent hover */ | |
| .group:hover .dropdown-menu { | |
| opacity: 1; | |
| visibility: visible; | |
| } | |
| /* Nested dropdown for services (removed from HTML, but keeping CSS for flexibility if reintroduced) */ | |
| .nested-dropdown-menu { | |
| @apply absolute bg-teal-700 shadow-lg rounded-md py-2 min-w-[160px] z-30; | |
| left: 100%; /* Position to the right of parent */ | |
| top: 0; | |
| opacity: 0; | |
| visibility: hidden; | |
| transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; | |
| } | |
| /* Show nested dropdown on parent hover */ | |
| .group:hover .nested-dropdown-menu { | |
| opacity: 1; | |
| visibility: visible; | |
| } | |
| .content-iframe { | |
| width: 100%; | |
| height: calc(100vh - 12rem); /* Adjusted height to accommodate the button below */ | |
| border: none; | |
| background-color: #ffffff; | |
| border-radius: 0.75rem; /* rounded-xl */ | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */ | |
| } | |
| .loading-overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(255, 255, 255, 0.8); | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 10; | |
| border-radius: 0.75rem; | |
| } | |
| .spinner { | |
| border: 4px solid rgba(0, 0, 0, 0.1); | |
| border-left-color: #3b82f6; /* Blue spinner */ | |
| border-radius: 50%; | |
| width: 40px; | |
| height: 40px; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| /* Ensure content area takes available space */ | |
| main { | |
| flex-grow: 1; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: flex-start; /* Align content to top */ | |
| padding: 1.5rem; /* p-6 */ | |
| } | |
| .static-content { | |
| background-color: #ffffff; | |
| padding: 2.5rem; /* p-10 */ | |
| border-radius: 0.75rem; /* rounded-xl */ | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */ | |
| max-width: 80rem; /* max-w-7xl */ | |
| width: 100%; | |
| min-height: calc(100vh - 10rem); /* Ensure it takes up space */ | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| text-align: center; | |
| } | |
| .static-content h2 { | |
| @apply text-4xl font-extrabold text-gray-900 mb-6; | |
| } | |
| .static-content p { | |
| @apply text-lg text-gray-700 leading-relaxed mb-4; | |
| } | |
| .static-content ul { | |
| @apply list-disc list-inside text-left text-gray-700 mb-4; | |
| } | |
| .static-content li { | |
| @apply mb-2; | |
| } | |
| .static-content .action-button { /* Renamed from service-button for general use */ | |
| @apply bg-teal-600 hover:bg-teal-700 text-white font-semibold py-3 px-6 rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-teal-500 focus:ring-offset-2 transition duration-300 ease-in-out transform hover:scale-105; | |
| margin-top: 1.5rem; /* mt-6 */ | |
| } | |
| .contact-detail-item { | |
| @apply text-lg text-gray-700 mb-2; | |
| } | |
| .contact-form-input { | |
| @apply w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-teal-500; | |
| } | |
| .contact-form-label { | |
| @apply block text-sm font-medium text-gray-700 mb-1; | |
| } | |
| .contact-form-button { | |
| @apply bg-teal-600 hover:bg-teal-700 text-white font-semibold py-3 px-6 rounded-lg shadow-md transition duration-300 ease-in-out transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:ring-offset-2; | |
| } | |
| /* Breadcrumb styles */ | |
| #breadcrumb-container { | |
| @apply w-full max-w-7xl mx-auto px-6 py-3 bg-white rounded-lg shadow-md text-gray-600 text-sm mb-6; | |
| display: flex; | |
| align-items: center; | |
| flex-wrap: wrap; /* Allow wrapping on small screens */ | |
| } | |
| #breadcrumb-container span { | |
| margin-right: 0.5rem; | |
| } | |
| #breadcrumb-container a { | |
| @apply text-teal-600 hover:underline; | |
| } | |
| #breadcrumb-container .separator { | |
| margin: 0 0.25rem; | |
| color: #a0aec0; /* gray-400 */ | |
| } | |
| #breadcrumb-container .current-page { | |
| @apply font-semibold text-gray-800; | |
| } | |
| /* Mobile specific styles for dropdowns */ | |
| @media (max-width: 767px) { | |
| .dropdown-menu, .nested-dropdown-menu { | |
| position: static; /* Remove absolute positioning on mobile */ | |
| display: none; /* Hidden by default, controlled by JS */ | |
| width: 100%; | |
| box-shadow: none; | |
| background-color: rgba(0, 0, 0, 0.1); /* Slightly transparent background for mobile submenus */ | |
| padding-left: 1rem; /* Indent submenus */ | |
| opacity: 1; /* Ensure visible when toggled by JS on mobile */ | |
| visibility: visible; /* Ensure visible when toggled by JS on mobile */ | |
| } | |
| .dropdown-menu.active-mobile, .nested-dropdown-menu.active-mobile { | |
| display: block; /* Show when active on mobile */ | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100"> | |
| <!-- Header and Navigation --> | |
| <header class="bg-gradient-to-r from-teal-600 to-emerald-600 shadow-lg py-4 px-6 md:px-8"> | |
| <div class="container mx-auto flex items-center justify-between"> | |
| <a href="#" id="home-link-logo" class="text-white text-3xl font-bold hover:text-teal-100 transition duration-300">Sanjay PandaG</a> | |
| <button id="menu-toggle" class="md:hidden text-white focus:outline-none"> | |
| <svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path></svg> | |
| </button> | |
| <ul id="main-nav" class="hidden md:flex flex-col md:flex-row md:space-x-6 space-y-2 md:space-y-0 mt-4 md:mt-0 items-center md:flex-nowrap"> | |
| <!-- Home Parent Menu --> | |
| <li class="relative group"> | |
| <a href="#" class="nav-link text-white text-lg hover:text-teal-200 transition duration-300 px-3 py-2 rounded-md flex items-center" data-page="home-parent"> | |
| Home | |
| <svg class="ml-1 w-4 h-4 transform group-hover:rotate-180 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg> | |
| </a> | |
| <ul class="dropdown-menu"> | |
| <li><a href="#" data-page="home-main">Main Home</a></li> | |
| <li><a href="#" data-page="about-gayaji">About Gaya Ji</a></li> | |
| <li><a href="#" data-page="manas-puja" data-url="https://huggingface.co/spaces/SanjayPandaG/manas-puja">About Manas Puja</a></li> | |
| <li><a href="#" data-page="option-1">Option 1</a></li> | |
| <li><a href="#" data-page="option-2">Option 2</a></li> | |
| </ul> | |
| </li> | |
| <!-- About Parent Menu --> | |
| <li class="relative group"> | |
| <a href="#" class="nav-link text-white text-lg hover:text-teal-200 transition duration-300 px-3 py-2 rounded-md flex items-center" data-page="about-parent"> | |
| About | |
| <svg class="ml-1 w-4 h-4 transform group-hover:rotate-180 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg> | |
| </a> | |
| <ul class="dropdown-menu"> | |
| <li><a href="#" data-page="about-sanjay">About Sanjay Ji</a></li> | |
| <li><a href="#" data-page="family-tree">Our Family Tree</a></li> | |
| <li><a href="#" data-page="our-glorious-history">Our Glorious History</a></li> | |
| <li><a href="#" data-page="new-about-item">New About Item</a></li> | |
| <li><a href="#" data-page="new-about-item-2">New About Item 2</a></li> | |
| </ul> | |
| </li> | |
| <!-- Services Parent Menu --> | |
| <li class="relative group"> | |
| <a href="#" class="nav-link text-white text-lg hover:text-teal-200 transition duration-300 px-3 py-2 rounded-md flex items-center" data-page="services-parent"> | |
| Services | |
| <svg class="ml-1 w-4 h-4 transform group-hover:rotate-180 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg> | |
| </a> | |
| <ul class="dropdown-menu"> | |
| <li><a href="#" data-page="pitra-puja" data-url="https://huggingface.co/spaces/SanjayPandaG/pitra-puja">Pitra Puja</a></li> | |
| <li><a href="#" data-page="shraddh-puja">Shraddh Puja</a></li> | |
| <li><a href="#" data-page="digital-card" data-url="https://studio--connectcard-sciox.us-central1.hosted.app/card/BwAE00jXiiNXNtUnt8TWqqBKNft2">My card</a></li> | |
| <li><a href="#" data-page="new-service-item">New Service Item</a></li> | |
| <li><a href="#" data-page="new-service-item-2">New Service Item 2</a></li> | |
| </ul> | |
| </li> | |
| <!-- Contact Us Parent Menu --> | |
| <li class="relative group"> | |
| <a href="#" class="nav-link text-white text-lg hover:text-teal-200 transition duration-300 px-3 py-2 rounded-md flex items-center" data-page="contact-us-parent"> | |
| Contact Us | |
| <svg class="ml-1 w-4 h-4 transform group-hover:rotate-180 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg> | |
| </a> | |
| <ul class="dropdown-menu"> | |
| <li><a href="#" data-page="contact-details">Our Contact Details</a></li> | |
| <li><a href="#" data-page="contact-form-external" data-url="test contact.html">Contact form</a></li> | |
| <li><a href="#" data-page="registration-form" data-url="https://huggingface.co/spaces/SanjayPandaG/registered-panda-ji">Registration form</a></li> | |
| <li><a href="#" data-page="new-contact-item">New Contact Item</a></li> | |
| <li><a href="#" data-page="new-contact-item-2">New Contact Item 2</a></li> | |
| </ul> | |
| </li> | |
| </ul> | |
| </div> | |
| </header> | |
| <!-- Main Content Area --> | |
| <main class="container mx-auto p-6 flex-grow"> | |
| <!-- Breadcrumb Navigation --> | |
| <nav id="breadcrumb-container" aria-label="breadcrumb"> | |
| <!-- Breadcrumb items will be dynamically inserted here --> | |
| </nav> | |
| <div id="content-area" class="relative w-full h-full min-h-[60vh]"> | |
| <!-- Loading Overlay --> | |
| <div id="loading-overlay" class="loading-overlay hidden"> | |
| <div class="spinner"></div> | |
| </div> | |
| <!-- Iframe for external content --> | |
| <iframe id="main-iframe" class="content-iframe hidden" title="External Content"></iframe> | |
| <button id="external-link-button" class="action-button mt-4 hidden" onclick="window.open(document.getElementById('main-iframe').src, '_blank');">Open in New Tab</button> | |
| <!-- Static content sections --> | |
| <section id="home-main-content" class="static-content"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Welcome+Home" alt="Welcome to Sanjay PandaG's Portal" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">Welcome to Sanjay PandaG's Portal</h2> | |
| <p>This is your central hub for all information related to GayaJi, Sanjay PandaG, our family, services, and more. Explore our site to learn about our rich heritage and the spiritual services we offer.</p> | |
| <p class="text-sm text-gray-500 mt-8"> | |
| *Note: Some sections like 'Registration Form' and 'Digital Card' will load external websites within this page.* | |
| </p> | |
| <button class="action-button" onclick="loadContent('about-sanjay')">Click here to know more...</button> | |
| </section> | |
| <section id="about-gayaji-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Gaya+Ji" alt="Gaya Ji Temple" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">About GayaJi</h2> | |
| <p>Gaya is a city of ancient historical and mythological significance, particularly renowned as a sacred place for performing the 'Pind Daan' ritual for ancestors.</p> | |
| <p>Situated in the state of Bihar, India, Gaya is mentioned in the ancient scriptures like the Vedas, Ramayana, and Mahabharata. It is believed that Lord Rama himself performed Pind Daan here for his father, Dasharatha.</p> | |
| <p>The city is home to the famous Vishnupad Temple, built over the footprint of Lord Vishnu, and the serene Falgu River, where rituals are performed.</p> | |
| <p>Pilgrims from all over the world visit Gaya to seek blessings for their departed loved ones and ensure their liberation (moksha).</p> | |
| <button class="action-button" onclick="window.open('https://en.wikipedia.org/wiki/Gaya,_India', '_blank')">Click here to know more...</button> | |
| </section> | |
| <section id="manas-puja-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Manas+Puja" alt="Manas Puja Ritual" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">About Manas Puja</h2> | |
| <p>Manas Puja is a form of worship where the devotee performs all rituals mentally, offering everything to the deity through visualization and inner devotion. It is considered a highly spiritual practice, emphasizing the purity of thought and intention over physical offerings.</p> | |
| <p>This form of worship can be performed anywhere, at any time, and is particularly beneficial for those who may not have access to traditional puja materials or temples. It deepens one's connection with the divine through meditation and inner surrender.</p> | |
| <button class="action-button" onclick="window.open('https://huggingface.co/spaces/SanjayPandaG/manas-puja', '_blank')">Click here to know more...</button> | |
| </section> | |
| <section id="option-1-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Option+1" alt="Option 1 Placeholder" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">Option 1 Content</h2> | |
| <p>This section provides details about Option 1, a key feature or service offered under the Home category. It aims to give users a quick overview of what this option entails and its benefits.</p> | |
| <p>Further information, including specific steps or applications, can be found by clicking the button below.</p> | |
| <button class="action-button" onclick="alert('More details for Option 1 coming soon!');">Click here to know more...</button> | |
| </section> | |
| <section id="option-2-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Option+2" alt="Option 2 Placeholder" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">Option 2 Content</h2> | |
| <p>Discover more about Option 2, another important aspect of our offerings. This section highlights its unique characteristics and how it can serve your needs effectively.</p> | |
| <p>We are continuously working to expand our resources and provide comprehensive information for all our services and features.</p> | |
| <button class="action-button" onclick="alert('More details for Option 2 coming soon!');">Click here to know more...</button> | |
| </section> | |
| <section id="about-sanjay-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Sanjay+PandaG" alt="Sanjay PandaG" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">About Sanjay PandaG</h2> | |
| <p>Sanjay PandaG comes from a lineage of traditional priests (Pandas) who have served pilgrims in Gaya for generations, assisting them in performing various religious rites and rituals, especially the crucial Pind Daan.</p> | |
| <p>With deep knowledge of Vedic scriptures and a profound understanding of the rituals, Sanjay PandaG ensures that every ceremony is performed with utmost devotion and precision, providing spiritual solace to devotees.</p> | |
| <p>He is committed to preserving the ancient traditions of Gaya and guiding individuals through their spiritual journeys with integrity and compassion.</p> | |
| <button class="action-button" onclick="alert('Detailed biography coming soon!');">Click here to know more...</button> | |
| </section> | |
| <section id="family-tree-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Family+Tree" alt="Family Tree Illustration" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">Family Tree</h2> | |
| <p>Our family has a rich history deeply intertwined with the spiritual heritage of Gaya. For centuries, we have dedicated ourselves to serving pilgrims and upholding the sacred traditions of our ancestors.</p> | |
| <p>We are proud custodians of a legacy that emphasizes spiritual guidance, devotion, and community service. Our lineage continues to provide unwavering support to those seeking to perform their ancestral rites in Gaya.</p> | |
| <p>Details of the family lineage and historical records are preserved and cherished, reflecting our commitment to this sacred duty.</p> | |
| <button class="action-button" onclick="alert('View detailed family tree coming soon!');">Click here to know more...</button> | |
| </section> | |
| <section id="our-glorious-history-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=History" alt="Ancient Scroll" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">Our Glorious History</h2> | |
| <p>Our lineage in Gaya boasts a glorious history, spanning generations dedicated to spiritual service and the preservation of ancient rites. Rooted deeply in the traditions of this sacred city, our family has been a pillar of guidance for countless pilgrims.</p> | |
| <p>From the earliest records, our ancestors have served as custodians of the Pind Daan rituals, ensuring their authentic performance and passing down invaluable knowledge through the ages. This rich heritage is a testament to our unwavering commitment to dharma and community.</p> | |
| <p>We continue to honor this legacy, striving to connect modern devotees with the timeless spiritual practices of Gaya.</p> | |
| <button class="action-button" onclick="alert('Explore our historical archives coming soon!');">Click here to know more...</button> | |
| </section> | |
| <section id="new-about-item-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=New+About+1" alt="New About Item 1" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">New About Item Content</h2> | |
| <p>This is placeholder content for the new item under the About menu. It can be expanded to cover various topics related to our mission and values.</p> | |
| <button class="action-button" onclick="alert('More details for New About Item 1 coming soon!');">Click here to know more...</button> | |
| </section> | |
| <section id="new-about-item-2-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=New+About+2" alt="New About Item 2" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">New About Item 2 Content</h2> | |
| <p>This is additional placeholder content for the About menu. This section can delve deeper into specific aspects of our organization or community involvement.</p> | |
| <button class="action-button" onclick="alert('More details for New About Item 2 coming soon!');">Click here to know more...');</button> | |
| </section> | |
| <section id="pitra-puja-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Pitra+Puja" alt="Pitra Puja Ritual" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">Pitra Puja</h2> | |
| <p>Pitra Puja is a sacred ritual performed to honor and seek blessings from ancestors. It is believed to bring peace to the departed souls and prosperity to the family.</p> | |
| <p>This comprehensive ceremony involves specific offerings and prayers conducted by experienced priests, ensuring the spiritual well-being of your lineage.</p> | |
| <button class="action-button" onclick="window.open('https://huggingface.co/spaces/SanjayPandaG/pitra-puja', '_blank')">Click here to know more...</button> | |
| </section> | |
| <section id="shraddh-puja-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Shraddh+Puja" alt="Shraddh Puja Ritual" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">Shraddh Puja</h2> | |
| <p>Shraddh Puja is a significant Hindu ritual performed to pay homage to one's ancestors and ensure their peace and liberation in the afterlife. It is an act of profound respect and gratitude towards those who have departed.</p> | |
| <p>Our services include guiding you through the complete Shraddh ceremony, ensuring all Vedic rites are performed meticulously. This includes offerings of food, water, and prayers, performed according to traditional scriptures.</p> | |
| <p>Performing Shraddh Puja is believed to bring blessings from ancestors, fostering prosperity, peace, and well-being for the family.</p> | |
| <button class="action-button" onclick="alert('More details on Shraddh Puja rituals coming soon!');">Click here to know more...</button> | |
| </section> | |
| <section id="digital-card-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Digital+Card" alt="Digital Card" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">My Digital Card</h2> | |
| <p>Access your personalized digital card here. This card provides a convenient way to share your contact information and connect with others effortlessly.</p> | |
| <p>It's an eco-friendly and modern alternative to traditional business cards, allowing for instant updates and easy sharing.</p> | |
| <button class="action-button" onclick="window.open('https://studio--connectcard-sciox.us-central1.hosted.app/card/BwAE00jXiiNXNtUnt8TWqqBKNft2', '_blank')">Click here to view your card...</button> | |
| </section> | |
| <section id="new-service-item-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=New+Service+1" alt="New Service Item 1" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">New Service Item Content</h2> | |
| <p>This is placeholder content for the new item under the Services menu. It can be expanded to describe a new offering or a specialized service.</p> | |
| <button class="action-button" onclick="alert('More details for New Service Item 1 coming soon!');">Click here to know more...</button> | |
| </section> | |
| <section id="new-service-item-2-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=New+Service+2" alt="New Service Item 2" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">New Service Item 2 Content</h2> | |
| <p>This is additional placeholder content for the Services menu. This section is dedicated to outlining another new service, detailing its benefits and application.</p> | |
| <button class="action-button" onclick="alert('More details for New Service Item 2 coming soon!');">Click here to know more...</button> | |
| </section> | |
| <section id="contact-details-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Contact+Us" alt="Contact Us" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">Our Contact Details</h2> | |
| <p class="contact-detail-item"><strong>Name:</strong> Sanjay PandaG</p> | |
| <p class="contact-detail-item"><strong>Address:</strong> [Your Address Here], Gaya, Bihar, India</p> | |
| <p class="contact-detail-item"><strong>Email:</strong> <a href="mailto:your.email@example.com" class="text-blue-600 hover:underline">your.email@example.com</a></p> | |
| <p class="contact-detail-item"><strong>Mobile:</strong> +91 [Your Mobile Number]</p> | |
| <p class="contact-detail-item"><strong>WhatsApp:</strong> +91 [Your WhatsApp Number]</p> | |
| <p class="mt-8 text-gray-600">Please replace placeholder details with your actual contact information.</p> | |
| <button class="action-button" onclick="loadContent('contact-form-external', 'test contact.html')">Click here to send a message...</button> | |
| </section> | |
| <section id="registration-form-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=Registration" alt="Registration Form" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">Registration Form</h2> | |
| <p>To register for our services or programs, please use the form provided on the external page. This ensures secure and efficient processing of your details.</p> | |
| <p>Click the button below to proceed to the registration page.</p> | |
| <button class="action-button" onclick="window.open('https://huggingface.co/spaces/SanjayPandaG/registered-panda-ji', '_blank')">Click here to register...</button> | |
| </section> | |
| <section id="new-contact-item-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=New+Contact+1" alt="New Contact Item 1" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">New Contact Item Content</h2> | |
| <p>This is placeholder content for the new item under the Contact Us menu. It can be used for additional contact methods or specific departmental contacts.</p> | |
| <button class="action-button" onclick="alert('More details for New Contact Item 1 coming soon!');">Click here to know more...</button> | |
| </section> | |
| <section id="new-contact-item-2-content" class="static-content hidden"> | |
| <img src="https://placehold.co/600x400/E0F2F7/26A69A?text=New+Contact+2" alt="New Contact Item 2" class="w-full max-w-md rounded-lg shadow-md mb-6"> | |
| <h2 class="text-teal-700">New Contact Item 2 Content</h2> | |
| <p>This is additional placeholder content for the Contact Us menu. This section can provide information about our support hours or a FAQ section.</p> | |
| <button class="action-button" onclick="alert('More details for New Contact Item 2 coming soon!');">Click here to know more...</button> | |
| </section> | |
| </div> | |
| </main> | |
| <!-- Footer --> | |
| <footer class="bg-gray-800 text-white text-center p-4 mt-8"> | |
| <p>© 2025 Sanjay PandaG. All rights reserved.</p> | |
| <p class="text-sm mt-2">Designed and Developed by Sanjay PandaG's Team</p> | |
| </footer> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', () => { | |
| // Select all direct nav-links and also those within dropdowns for active state management | |
| const navLinks = document.querySelectorAll('#main-nav > li > a.nav-link, .dropdown-menu a, .nested-dropdown-menu a'); | |
| const mainIframe = document.getElementById('main-iframe'); | |
| const contentArea = document.getElementById('content-area'); | |
| const loadingOverlay = document.getElementById('loading-overlay'); | |
| const staticContentSections = document.querySelectorAll('.static-content'); | |
| const menuToggle = document.getElementById('menu-toggle'); | |
| const mainNav = document.getElementById('main-nav'); | |
| const homeLinkLogo = document.getElementById('home-link-logo'); | |
| const externalLinkButton = document.getElementById('external-link-button'); | |
| const breadcrumbContainer = document.getElementById('breadcrumb-container'); | |
| // Define the page hierarchy and display names for breadcrumbs | |
| const pageHierarchy = { | |
| 'home-main': { name: 'Main Home', parent: null }, | |
| 'about-gayaji': { name: 'About Gaya Ji', parent: 'home-parent' }, | |
| 'manas-puja': { name: 'About Manas Puja', parent: 'home-parent' }, | |
| 'option-1': { name: 'Option 1', parent: 'home-parent' }, | |
| 'option-2': { name: 'Option 2', parent: 'home-parent' }, | |
| 'new-home-item': { name: 'New Home Item', parent: 'home-parent' }, // Although removed, keeping for breadcrumb logic if it was there | |
| 'about-sanjay': { name: 'About Sanjay Ji', parent: 'about-parent' }, | |
| 'family-tree': { name: 'Our Family Tree', parent: 'about-parent' }, | |
| 'our-glorious-history': { name: 'Our Glorious History', parent: 'about-parent' }, | |
| 'new-about-item': { name: 'New About Item', parent: 'about-parent' }, | |
| 'new-about-item-2': { name: 'New About Item 2', parent: 'about-parent' }, | |
| 'pitra-puja': { name: 'Pitra Puja', parent: 'services-parent' }, | |
| 'shraddh-puja': { name: 'Shraddh Puja', parent: 'services-parent' }, | |
| 'digital-card': { name: 'My card', parent: 'services-parent' }, | |
| 'new-service-item': { name: 'New Service Item', parent: 'services-parent' }, | |
| 'new-service-item-2': { name: 'New Service Item 2', parent: 'services-parent' }, | |
| 'contact-details': { name: 'Our Contact Details', parent: 'contact-us-parent' }, | |
| 'contact-form-external': { name: 'Contact form', parent: 'contact-us-parent' }, // Updated for external contact form | |
| 'registration-form': { name: 'Registration form', parent: 'contact-us-parent' }, | |
| 'new-contact-item': { name: 'New Contact Item', parent: 'contact-us-parent' }, | |
| 'new-contact-item-2': { name: 'New Contact Item 2', parent: 'contact-us-parent' }, | |
| // Parent menu items (used for breadcrumb path, not direct content pages) | |
| 'home-parent': { name: 'Home', parent: null }, | |
| 'about-parent': { name: 'About', parent: null }, | |
| 'services-parent': { name: 'Services', parent: null }, | |
| 'contact-us-parent': { name: 'Contact Us', parent: null } | |
| }; | |
| // Function to update the breadcrumb | |
| function updateBreadcrumb(currentPageDataPage) { | |
| let path = []; | |
| let currentPage = currentPageDataPage; | |
| // Build the path from current page up to the top | |
| while (currentPage && pageHierarchy[currentPage]) { | |
| path.unshift({ | |
| dataPage: currentPage, | |
| name: pageHierarchy[currentPage].name | |
| }); | |
| currentPage = pageHierarchy[currentPage].parent; | |
| } | |
| // Render the breadcrumb | |
| breadcrumbContainer.innerHTML = ''; | |
| path.forEach((item, index) => { | |
| if (index > 0) { | |
| const separator = document.createElement('span'); | |
| separator.classList.add('separator'); | |
| separator.textContent = '>>'; | |
| breadcrumbContainer.appendChild(separator); | |
| } | |
| const breadcrumbLink = document.createElement('a'); | |
| breadcrumbLink.href = '#'; // Prevent actual navigation for breadcrumb links | |
| breadcrumbLink.textContent = item.name; | |
| breadcrumbLink.dataset.page = item.dataPage; // Store data-page for click handling | |
| breadcrumbLink.classList.add('hover:underline'); // Add hover effect | |
| if (index === path.length - 1) { | |
| breadcrumbLink.classList.add('current-page'); | |
| breadcrumbLink.style.pointerEvents = 'none'; // Make current page not clickable | |
| } else { | |
| // Add click listener for non-current breadcrumb items | |
| breadcrumbLink.addEventListener('click', (e) => { | |
| e.preventDefault(); | |
| loadContent(item.dataPage); | |
| }); | |
| } | |
| breadcrumbContainer.appendChild(breadcrumbLink); | |
| }); | |
| } | |
| // Function to show loading spinner | |
| function showLoading() { | |
| loadingOverlay.classList.remove('hidden'); | |
| } | |
| // Function to hide loading spinner | |
| function hideLoading() { | |
| loadingOverlay.classList.add('hidden'); | |
| } | |
| // Function to hide all static content sections | |
| function hideAllStaticContent() { | |
| staticContentSections.forEach(section => { | |
| section.classList.add('hidden'); | |
| }); | |
| } | |
| // Function to activate a navigation link | |
| function activateNavLink(activePage) { | |
| navLinks.forEach(link => { | |
| if (link.dataset.page === activePage) { | |
| link.classList.add('active'); | |
| } else { | |
| link.classList.remove('active'); | |
| } | |
| }); | |
| } | |
| // Function to load content based on data-page or data-url | |
| function loadContent(pageName, url = null) { | |
| // Hide iframe and all static content initially | |
| mainIframe.classList.add('hidden'); | |
| hideAllStaticContent(); | |
| externalLinkButton.classList.add('hidden'); // Hide the external link button by default | |
| activateNavLink(pageName); // Set active class on nav link | |
| updateBreadcrumb(pageName); // Update breadcrumb | |
| // Remove any previously added fallback divs | |
| const existingFallback = contentArea.querySelector('.static-content.text-red-600'); | |
| if (existingFallback) { | |
| existingFallback.remove(); | |
| } | |
| if (url) { | |
| // Load external URL in iframe | |
| showLoading(); | |
| mainIframe.src = url; | |
| mainIframe.classList.remove('hidden'); | |
| externalLinkButton.classList.remove('hidden'); // Show the external link button for iframes | |
| // Handle iframe load event to hide loading | |
| mainIframe.onload = () => { | |
| hideLoading(); | |
| // Check if content loaded successfully (basic check, not foolproof for X-Frame-Options) | |
| try { | |
| // Attempt to access contentDocument, will throw error if X-Frame-Options blocks | |
| if (mainIframe.contentDocument) { | |
| console.log(`Content loaded into iframe: ${url}`); | |
| } | |
| } catch (e) { | |
| console.warn(`Could not access iframe content for ${url}. It might be blocked by X-Frame-Options or CSP.`, e); | |
| // Fallback for blocked content - show a message or redirect | |
| mainIframe.classList.add('hidden'); // Hide the empty iframe | |
| externalLinkButton.classList.add('hidden'); // Hide the button too if iframe is blocked | |
| const fallbackDiv = document.createElement('div'); | |
| fallbackDiv.className = 'static-content text-red-600'; | |
| fallbackDiv.innerHTML = `<h2 class="text-red-700">Content Blocked!</h2><p>The page you are trying to view (${url}) cannot be embedded directly due to security restrictions (X-Frame-Options or CSP).</p><p>Please <a href="${url}" target="_blank" class="text-blue-600 hover:underline">click here to open it in a new tab</a>.</p>`; | |
| contentArea.appendChild(fallbackDiv); | |
| hideLoading(); | |
| } | |
| }; | |
| mainIframe.onerror = () => { | |
| hideLoading(); | |
| console.error(`Error loading iframe content: ${url}`); | |
| mainIframe.classList.add('hidden'); | |
| externalLinkButton.classList.add('hidden'); // Hide the button on error | |
| const errorDiv = document.createElement('div'); | |
| errorDiv.className = 'static-content text-red-600'; | |
| errorDiv.innerHTML = `<h2 class="text-red-700">Loading Error!</h2><p>There was an error loading the content from ${url}. Please try again later or open it directly.</p><p><a href="${url}" target="_blank" class="text-blue-600 hover:underline">Open in new tab</a></p>`; | |
| contentArea.appendChild(errorDiv); | |
| }; | |
| } else { | |
| // Show static content section | |
| const targetSection = document.getElementById(`${pageName}-content`); | |
| if (targetSection) { | |
| targetSection.classList.remove('hidden'); | |
| } | |
| hideLoading(); // No loading for static content | |
| } | |
| } | |
| // Event listeners for navigation links (including dropdown items) | |
| navLinks.forEach(link => { | |
| link.addEventListener('click', (event) => { | |
| const isDesktop = mainNav.classList.contains('md:flex'); | |
| if (link.dataset.page || link.dataset.url) { // This is a leaf node or a direct link | |
| event.preventDefault(); | |
| const pageName = link.dataset.page; | |
| const url = link.dataset.url; | |
| loadContent(pageName, url); | |
| // Close mobile menu after selection | |
| if (!isDesktop) { | |
| // mainNav.classList.add('hidden'); // Keep main menu visible on mobile after selection | |
| document.querySelectorAll('.dropdown-menu.active-mobile, .nested-dropdown-menu.active-mobile').forEach(menu => { | |
| menu.classList.remove('active-mobile'); | |
| }); | |
| } | |
| } else { // This is a parent link (e.g., "About Us", "Services", "Contact Us") | |
| if (!isDesktop) { // If on mobile view | |
| const parentLi = link.closest('li.group'); | |
| if (parentLi) { | |
| const dropdown = parentLi.querySelector('.dropdown-menu'); // Only top-level dropdowns | |
| if (dropdown) { | |
| event.preventDefault(); // Prevent page jump for parent links | |
| dropdown.classList.toggle('active-mobile'); | |
| } | |
| } | |
| } else { // On desktop, prevent click on parent link from navigating | |
| event.preventDefault(); | |
| } | |
| } | |
| }); | |
| }); | |
| // Event listener for Home link in logo | |
| homeLinkLogo.addEventListener('click', (event) => { | |
| event.preventDefault(); | |
| loadContent('home-main'); // Load the new 'Main Home' page | |
| if (!mainNav.classList.contains('md:flex')) { | |
| // mainNav.classList.add('hidden'); // Keep main menu visible on mobile after selection | |
| } | |
| }); | |
| // Mobile menu toggle | |
| menuToggle.addEventListener('click', () => { | |
| mainNav.classList.toggle('hidden'); | |
| mainNav.classList.toggle('flex'); | |
| mainNav.classList.toggle('flex-col'); | |
| // Close any open dropdowns when main menu is toggled | |
| document.querySelectorAll('.dropdown-menu.active-mobile, .nested-dropdown-menu.active-mobile').forEach(menu => { | |
| menu.classList.remove('active-mobile'); | |
| }); | |
| }); | |
| // Initial load: show the new 'Main Home' page and set its breadcrumb | |
| loadContent('home-main'); | |
| }); | |
| </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=SanjayPandaG/website-v2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> | |
| </script> | |
| </head> | |
| <body class="flex justify-center items-center h-screen overflow-hidden bg-white font-sans text-center px-6"> | |
| <div class="w-full"> | |
| <span class="text-xs rounded-full mb-2 inline-block px-2 py-1 border border-amber-500/15 bg-amber-500/15 text-amber-500">🔥 New version dropped!</span> | |
| <h1 class="text-4xl lg:text-6xl font-bold font-sans"> | |
| <span class="text-2xl lg:text-4xl text-gray-400 block font-medium">I'm ready to work,</span> | |
| Ask me anything. | |
| </h1> | |
| </div> | |
| <img src="https://enzostvs-deepsite.hf.space/arrow.svg" class="absolute bottom-8 left-0 w-[100px] transform rotate-[30deg]" /> | |
| <script></script> | |
| </body> | |
| </html> | |