### Install Dependencies Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/widgets/header-slider-widget/header-slider-example.mdx Installs the required front-end libraries for the header slider component. This includes Bootstrap for styling, Swiper for carousel functionality, Bootstrap Icons for icons, and AOS for animations. ```bash npm install bootstrap swiper bootstrap-icons aos ``` -------------------------------- ### Development setup and commands for Juniper UI in Bash Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/README.mdx Provides essential commands for setting up the development environment, including cloning the repository, installing dependencies, running the development server, executing tests, and building for production. ```bash # Fork and clone git clone https://github.com/your-username/juniper-ui.git cd juniper-ui # Install dependencies npm install # Start development server npm run dev # Run tests npm test # Build for production npm run build ``` -------------------------------- ### Choosing Juniper UI Documentation Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/README.mdx A guide to selecting the appropriate Juniper UI documentation based on user needs, such as learning, quick implementation, or production projects. It maps specific needs to the Developer Guide, Quick Reference, and Complete Example documentation types. ```markdown | Need | Start With | Then Reference | |------|------------|----------------| | **Learning** | Developer Guide | Quick Reference for patterns | | **Quick Implementation** | Quick Reference | Example for complete code | | **Production Project** | Example | Developer Guide for customization | | **AI-Assisted Development** | Quick Reference | Developer Guide for context | | **Troubleshooting** | Developer Guide | Quick Reference for solutions | ``` -------------------------------- ### Juniper UI Documentation Comparison Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/README.mdx A comparative analysis of the Juniper UI documentation types (Developer Guide, Quick Reference, Example) across key aspects like length, focus, learning curve, implementation speed, and code completeness. This helps users understand the trade-offs and benefits of each documentation style. ```markdown | Aspect | Developer Guide | Quick Reference | Example | |--------|----------------|-----------------|---------| | **Length** | 972 lines | 473 lines | 594 lines | | **Focus** | Theory + Practice | Practical patterns | Working implementation | | **Learning Curve** | Steep | Shallow | Moderate | | **Implementation Speed** | Slow | Fast | Medium | | **Code Completeness** | Partial examples | Essential snippets | Complete working code | ``` -------------------------------- ### Documentation Setup and Contribution Workflow (Bash) Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/README.mdx Outlines the steps for setting up the documentation repository, including forking, cloning, creating a new branch, making changes, and pushing them. This is a standard Git workflow for contributing to projects. ```bash # Fork and clone the documentation repository git clone https://github.com/your-username/juniper-docs.git cd juniper-docs # Create a new branch for your changes git checkout -b feature/update-documentation # Make your changes to the MDX files # Add new component documentation # Update existing examples # Commit and push your changes git add . git commit -m "Add documentation for new component" git push origin feature/update-documentation ``` -------------------------------- ### JavaScript Dependency Imports Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/widgets/header-slider-widget/header-slider-developer-guide.mdx Demonstrates how to import necessary JavaScript modules for Bootstrap, Swiper (with specific modules), and AOS in your main application file. ```javascript import 'bootstrap'; import Swiper from 'swiper'; import { Navigation, Pagination, Autoplay, EffectFade } from 'swiper/modules'; import AOS from 'aos'; import 'aos/dist/aos.css'; ``` -------------------------------- ### JavaScript Module Import Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/widgets/header-slider-widget/header-slider-example.mdx This snippet shows how to import a JavaScript module for interactive features. It's typically used to load client-side scripts that enhance the user experience. ```JavaScript import './script.js'; ``` -------------------------------- ### Header Slider Widget Documentation Options Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/README.mdx Details the different documentation types available for the Header Slider widget: Developer Guide for in-depth understanding, Quick Reference for rapid implementation, and Complete Example for production-ready code. It guides users on choosing the appropriate documentation based on their needs. ```markdown ### 📚 **Developer Guide** (`widgets/header-slider-widget/header-slider-developer-guide.mdx`) **Complete reference manual** for deep understanding and implementation. **Use when:** - Learning the component architecture and best practices - Implementing complex customizations - Troubleshooting issues - Training team members - Need comprehensive theoretical coverage **Features:** - Complete component architecture breakdown - Detailed JavaScript implementation patterns - SCSS styling guide with variables - Animation implementation with AOS - Responsive design strategies - Performance optimization techniques - Accessibility features - Common issues and solutions - AI integration patterns ### 🚀 **Quick Reference** (`widgets/header-slider-widget/header-slider-quick-reference.mdx`) **Fast lookup guide** for rapid implementation and development. **Use when:** - Need to implement the component quickly - Working with AI assistants for code generation - Doing rapid prototyping - Already familiar with the concepts - Need essential code patterns **Features:** - Essential HTML, CSS, and JavaScript patterns - Common customization snippets - Responsive breakpoint strategies - AOS animation integration - Performance optimization tips - AI prompt templates - Dependencies checklist ### 💡 **Complete Example** (`widgets/header-slider-widget/header-slider-example.mdx`) **Production-ready implementation** to use as a starting point. **Use when:** - Starting a new project with the header slider - Need a complete working implementation - Want to see how everything fits together - Need production-ready code to copy - Implementing the component for the first time **Features:** - Full working HTML structure with real content - Complete SCSS styles with all dependencies - ApostropheCMS widget player implementation - Real-world usage examples - Setup instructions for immediate use - Feature checklist of included functionality ``` -------------------------------- ### AI Prompt Template: Basic Header Slider Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/widgets/header-slider-widget/header-slider-developer-guide.mdx A basic prompt template for AI assistants to generate a header slider component with essential features like multiple slides, navigation, and transitions. ```apidoc Create a header slider component with the following specifications: - 3 slides with different background images - Main heading and subheading for each slide - 2 call-to-action buttons per slide - Navigation arrows and pagination dots - Autoplay with 5-second intervals - Fade transition effect - Mobile responsive design ``` -------------------------------- ### Required Project Dependencies Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/widgets/header-slider-widget/header-slider-developer-guide.mdx Lists the essential npm package dependencies required for the header slider widget, including Bootstrap, Swiper, Bootstrap Icons, and AOS. ```json { "dependencies": { "bootstrap": "^5.3.2", "swiper": "^11.0.0", "bootstrap-icons": "^1.11.2", "aos": "^2.3.1" } } ``` -------------------------------- ### Optimize CSS, JavaScript, and images using npm scripts in Bash Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/README.mdx Executes build scripts for asset optimization, including minification for CSS and JavaScript, and image optimization. Requires a project setup with npm. ```bash # Optimize CSS npm run build:css -- --minify # Optimize JavaScript npm run build:js -- --minify # Optimize images npm run optimize:images ``` -------------------------------- ### JavaScript: Performance Monitoring for Header Slider Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/widgets/header-slider-widget/header-slider-developer-guide.mdx Demonstrates JavaScript code for performance monitoring using the Performance Observer API. It includes marking and measuring slide transition times to identify potential performance bottlenecks. ```javascript // Performance monitoring const performanceObserver = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { if (entry.name.includes('header-slider')) { console.log('Header Slider Performance:', entry); } }); }); performanceObserver.observe({ entryTypes: ['measure'] }); // Measure slide transitions performance.mark('slide-transition-start'); // ... transition code ... performance.mark('slide-transition-end'); performance.measure('header-slider-transition', 'slide-transition-start', 'slide-transition-end'); ``` -------------------------------- ### Performance Monitoring Setup (JavaScript) Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/README.mdx Configures Juniper UI's performance monitoring capabilities to track key metrics like load time and interaction time. The collected data can be sent to an analytics service for analysis and reporting. ```javascript // Performance monitoring JuniperUI.monitor({ metrics: ['loadTime', 'renderTime', 'interactionTime'], report: function(data) { // Send to analytics analytics.track('juniper_performance', data); } }); ``` -------------------------------- ### HTML Lists with Bootstrap Styling Source: https://github.com/hellocomputer-za/juniper-docs/blob/main/elements/lists.mdx Demonstrates the structure for unordered, ordered, and description lists using semantic HTML elements and Bootstrap utility classes. Includes examples for `list-unstyled`, `list-inline`, and Bootstrap's grid system for description lists. ```html