// Sample topics data const topics = [ { id: 'getting-started', title: 'Getting Started', icon: 'compass', content: `

Getting Started Guide

Welcome to Knowledge Navigator! This guide will help you get familiar with our platform.

Account Setup

Learn how to create and manage your account settings.

Preferences

Customize your experience with our preference settings.

Frequently Asked Questions

How do I reset my password?

Visit the account recovery page and follow the instructions sent to your email.

Is there a mobile app?

Yes! Our mobile app is available for both iOS and Android devices.

` }, { id: 'features', title: 'Features', icon: 'zap', content: `

Platform Features

Powerful Tools

Discover all the amazing features we offer.

Advanced Search

Find exactly what you're looking for with our powerful search capabilities.

Bookmarking

Save important content for quick access later.

Sharing

Easily share content with your team or collaborators.

Notifications

Stay updated with real-time notifications.

` }, { id: 'tutorials', title: 'Tutorials', icon: 'video', content: `

Video Tutorials

Learn how to use our platform with these helpful video guides.

Getting Started

3:42 min

Advanced Features

7:15 min

Collaboration Tools

5:28 min

Mobile App Guide

4:53 min

Need more help?

Contact our support team for personalized assistance with any questions.

` } { id: 'resources', title: 'Resources', icon: 'download', content: `

Helpful Resources

Download these resources to help you get the most out of our platform.

User Manual (PDF)
Cheat Sheet
Video Transcripts

External Resources

` }, { id: 'updates', title: 'Updates', icon: 'clock', content: `

Recent Updates

Stay informed about the latest improvements to our platform.

NEW June 2023

Advanced Analytics Dashboard

Track your usage patterns and get personalized recommendations.

IMPROVED May 2023

Search Functionality

Faster and more accurate search results with our updated algorithm.

FIXED April 2023

Mobile App Stability

Various bug fixes and performance improvements for mobile users.

Get notified about future updates
` }, { id: 'community', title: 'Community', icon: 'users', content: `

Join Our Community

Connect with other users and share your knowledge.

Discussion Forum

Ask questions and get answers from our community.

Events

Join our webinars and live training sessions.

Open Source

Contribute to our open source projects.

Community Guidelines

Please read our community guidelines before participating.

` }, { id: 'contact', title: 'Contact Us', icon: 'mail', content: `

Get in Touch

We'd love to hear from you! Contact our team for support or feedback.

Email Support

Our team typically responds within 24 hours.

support@knowledgenavigator.com

Live Chat

Available Monday-Friday, 9am-5pm EST.

Phone Support

Call us at +1 (800) 123-4567.

Business hours: Mon-Fri, 9am-5pm EST.

Office Location

123 Knowledge Street
Tech City, TC 10001
United States

Feedback Form

` } ]; // Initialize the page document.addEventListener('DOMContentLoaded', function() { // Populate topic tiles const topicGrid = document.getElementById('topic-grid'); topics.forEach((topic, index) => { const tile = document.createElement('div'); tile.className = `topic-tile cursor-pointer p-3 rounded-lg border border-gray-200 hover:border-indigo-200 transition-colors ${index === 0 ? 'active-topic' : ''}`; tile.innerHTML = `
${topic.title}
`; tile.addEventListener('click', () => { // Remove active class from all tiles document.querySelectorAll('.topic-tile').forEach(t => { t.classList.remove('active-topic'); }); // Add active class to clicked tile tile.classList.add('active-topic'); // Update content display updateContentDisplay(topic); }); topicGrid.appendChild(tile); }); // Display first topic's content by default if (topics.length > 0) { updateContentDisplay(topics[0]); } // Replace feather icons feather.replace(); }); // Update content display with selected topic function updateContentDisplay(topic) { const contentDisplay = document.getElementById('content-display'); contentDisplay.className = 'content-section'; contentDisplay.innerHTML = topic.content; // Replace feather icons in new content feather.replace(); }