Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ashcroft08/provesa-web/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheNavbar component provides the main navigation for the PROVESA Web application. It features a responsive design with a glass-morphism effect, scroll detection for transparency changes, and a mobile-friendly slide-out menu.
Import
Props
Enables transparent mode when at the top of the page. When
true, the navbar will be fully transparent (with white text) until the user scrolls down. Perfect for use with hero sections.Custom logo URL. If not provided, defaults to the built-in PROVESA logo. The logo automatically inverts to white when in transparent mode.
Usage
Basic Usage
With Transparent Mode (Homepage)
With Custom Logo
Real Example from +layout.svelte
Features
Navigation Links
The navbar includes the following navigation items:- Inicio - Links to
/#inicio - Productos - Links to
/#productos - Nosotros - Links to
/#nosotros-teaser(home) or/nosotros(other pages) - Concursos - Links to
/concursos - Trabaja con Nosotros - Links to
/empleo
Scroll Detection
The navbar automatically detects when the user scrolls more than 50px from the top:Mobile Menu
On mobile devices (< 768px), the navigation links are hidden and replaced with a hamburger menu button. When clicked, a full-screen overlay menu appears with:- Large, touch-friendly navigation links
- PROVESA logo
- Close button in the top-right corner
Styling
Glass-morphism Effect
The navbar uses a glass-morphism effect when not transparent:Transparent Mode
Whentransparent={true} and at the top of the page:
- Background becomes fully transparent
- Text color changes to white
- Logo inverts to white using CSS filters
- Border becomes transparent
Active States
Navigation links feature an animated underline on hover:Component Behavior
Dynamic “Nosotros” Link
The “Nosotros” link intelligently changes based on the current page:- On homepage (
/): Links to/#nosotros-teaser(anchor link) - On other pages: Links to
/nosotros(full page)
Fixed Positioning
The navbar is fixed to the top of the viewport:Accessibility
- Uses semantic
<nav>element - Mobile menu uses
<button>for proper accessibility - Logo link includes descriptive
alttext - Navigation links are keyboard accessible
Dependencies
lucide-svelte- Menu and X icons$app/state- Access to current page URL$lib/assets/images/provesa-logo.png- Default logo
Related Components
- Footer - Site footer component
- HeroSlider - Often used with transparent navbar
