HUD (Heads-Up Display) Components
Futuristic interface components with a cyberpunk HUD aesthetic, featuring glowing borders, glassmorphism effects, and animated SVG frames.
HUD components are perfect for creating immersive, sci-fi themed dashboards and interfaces. They include modals, offcanvas panels, cards, and buttons with glowing neon effects.
HUD Modal Component
Futuristic modal dialogs with glassmorphism and glowing effects
Live Demo
Click the buttons to see HUD modals in action:
Basic Modal Structure
A basic HUD modal with header and footer:
<div class="modal fade modal-hud" id="hudModal" tabindex="-1" 
     aria-labelledby="hudModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <div class="hud-header-svg-container" aria-hidden="true">
                    @include("components.hud.modal-header-svg")
                </div>
                <h5 class="modal-title orbitron" id="hudModalLabel">System Alert</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" 
                        aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <p>Modal content goes here.</p>
            </div>
            <div class="modal-footer">
                <div class="hud-footer-svg-container" aria-hidden="true">
                    @include("components.hud.modal-footer-svg")
                </div>
                <button type="button" class="btn btn-cyber" data-bs-dismiss="modal">
                    Close
                </button>
            </div>
        </div>
    </div>
</div>
<!-- Trigger -->
<button class="btn btn-cyber" data-bs-toggle="modal" data-bs-target="#hudModal">
    Launch HUD Modal
</button>Usage Guidelines
- Add the .modal-hudclass to the modal wrapper
- Include SVG header/footer decorations using the provided components
- Use the .orbitronfont class for modal titles
- Use .btn-cyberbuttons for actions to maintain the HUD aesthetic
HUD Offcanvas Component
Slide-in panels with HUD styling for navigation and menus
Live Demo
Click to open a HUD offcanvas panel:
Offcanvas Structure
Basic HUD offcanvas with menu items:
<div class="offcanvas offcanvas-start offcanvas-hud" tabindex="-1" 
     id="hudOffcanvas" aria-labelledby="hudOffcanvasLabel">
    <div class="offcanvas-header">
        <h5 class="offcanvas-title orbitron" id="hudOffcanvasLabel">
            System Interface
        </h5>
        <button type="button" class="btn-close" data-bs-dismiss="offcanvas" 
                aria-label="Close"></button>
    </div>
    <div class="hud-divider-top" aria-hidden="true">
        @include("components.hud.offcanvas-divider-top")
    </div>
    <div class="offcanvas-body">
        <div class="menu-header orbitron">Navigation</div>
        <div class="list-group list-group-flush">
            <a href="#" class="list-group-item list-group-item-action">
                <span class="material-symbols-rounded">dashboard</span>
                Dashboard
            </a>
            <a href="#" class="list-group-item list-group-item-action">
                <span class="material-symbols-rounded">settings</span>
                Settings
            </a>
        </div>
        <div class="hud-divider-bottom" aria-hidden="true">
            @include("components.hud.offcanvas-divider-bottom")
        </div>
    </div>
</div>
<!-- Trigger -->
<button class="btn btn-cyber" data-bs-toggle="offcanvas" data-bs-target="#hudOffcanvas">
    Open HUD Menu
</button>Usage Guidelines
- Add the .offcanvas-hudclass to the offcanvas element
- Include top and bottom SVG dividers for visual separation
- Use .menu-header.orbitronfor section headers
- Standard Bootstrap list-group items work seamlessly
HUD Card Component
Glassmorphism cards with glowing borders and neon effects
Live Demo
Interactive HUD cards with hover effects:
Active Users
1,247
Currently online
Server Load
42%
Optimal performance
Response Time
28ms
Average latency
Basic HUD Card
Simple HUD card for displaying metrics:
<div class="hud-card">
    <h6 class="orbitron">Card Title</h6>
    <h2 class="text-primary mb-2">1,247</h2>
    <p class="text-muted small mb-0">Subtitle or description</p>
</div>Grid Layout with HUD Cards
Multiple HUD cards in a responsive grid:
<div class="row g-3">
    <div class="col-md-4">
        <div class="hud-card">
            <h6 class="orbitron">Metric 1</h6>
            <h2 class="text-success">98%</h2>
            <p class="text-muted small mb-0">Status message</p>
        </div>
    </div>
    <div class="col-md-4">
        <div class="hud-card">
            <h6 class="orbitron">Metric 2</h6>
            <h2 class="text-warning">76%</h2>
            <p class="text-muted small mb-0">Status message</p>
        </div>
    </div>
    <div class="col-md-4">
        <div class="hud-card">
            <h6 class="orbitron">Metric 3</h6>
            <h2 class="text-info">125</h2>
            <p class="text-muted small mb-0">Status message</p>
        </div>
    </div>
</div>Usage Guidelines
- Add the .hud-cardclass to any container element
- Use .orbitronfont for headings to enhance the futuristic look
- Cards automatically include hover effects with enhanced glow
- Ideal for metrics, stats, and data visualization panels
Styling Reference
Quick reference for all HUD component classes
palette Class Reference
| Class | Component | Description | 
|---|---|---|
| .modal-hud | Modal | Applies HUD styling to modals - glassmorphism, glowing borders, animated SVG decorations | 
| .offcanvas-hud | Offcanvas | Applies HUD styling to offcanvas panels with glowing effects | 
| .hud-card | Container | Glassmorphism card with glowing cyan/magenta borders, includes hover glow animation | 
| .btn-cyber | Button | Glowing cyan button with hover effects and glassmorphism background | 
| .orbitron | Typography | Orbitron font for futuristic headings and labels | 
| .menu-header | Typography | Styled section header for offcanvas menus | 
css CSS Reference
Core CSS for HUD components:
/* HUD Modal Styles */
.modal-hud {
  --bs-modal-bg: transparent;
  --bs-modal-border-color: transparent;
}
.modal-hud .modal-content {
  background: rgba(13, 2, 33, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
  border-left: 1px solid rgba(0, 255, 255, 0.3);
  border-right: 1px solid rgba(0, 255, 255, 0.3);
}
/* HUD Offcanvas Styles */
.offcanvas-hud {
  background: rgba(13, 2, 33, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
  border-right: 1px solid rgba(0, 255, 255, 0.3);
}
/* HUD Card Styles */
.hud-card {
  background: rgba(13, 2, 33, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
  transition: all 0.3s ease;
}
.hud-card:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
  border-color: rgba(0, 255, 255, 0.6);
}
/* Cyber Button Styles */
.btn-cyber {
  background-color: rgba(0, 255, 255, 0.15);
  border: 1px solid rgba(0, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}
.btn-cyber:hover {
  background-color: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  color: #ffffff;
}info Best Practices
- Typography: Always use the .orbitronclass for HUD component titles
- Icons: Material Symbols Rounded work best with the HUD aesthetic
- Colors: Stick to cyan, magenta, and neon colors for consistency
- Background: HUD components look best against dark backgrounds
- Accessibility: Always include proper ARIA labels and roles
