Lynx UI Framework

Component Library & Guide

Standard UI elements, layout primitives, navigation structures, and interactive popups available across the application.

Header Navigation List (header ul)

The header ul (typically with ID #main-menu) houses navigation menu links. In desktop viewports (min-width: 1081px), it renders as an inline-flex horizontal menu bar. On mobile and tablet devices, it automatically transforms into an animated slide-over menu triggered via togglePop('main-menu').

Class / Selector Description
.right-menu Aligns menu items to the right side of the header navigation bar on desktop screens (margin-left: auto).
.left-menu Aligns menu items directly adjacent to the logo on the left side of the header container.
.hidden-large Hides elements on large/desktop screens (such as the mobile hamburger toggle button).
togglePop('main-menu') JavaScript helper that opens or closes the mobile overlay menu.
<!-- Navigation list inside header -->
<ul id="main-menu" class="right-menu">
    <li class="close-button" onclick="togglePop('main-menu')"><i class="bi bi-x-lg"></i> Close</li>
    <li><a href="index.php">Home</a></li>
    <li><a href="web-development.php">Websites</a></li>
    <li><a href="seo-marketing.php">SEO & Marketing</a></li>
    <li><a href="contact.php">Contact</a></li>
</ul>

<!-- Mobile menu toggle button -->
<btn onclick="togglePop('main-menu')" class="hidden-large">
    <i class="bi bi-list"></i>
</btn>

Pop Alert (.pop-alert)

The .pop-alert is a floating, prominent notification card anchored at the bottom of the viewport. It is used for cookie consent notices, announcements, or persistent action prompts. It is activated by adding the .active class or triggered seamlessly with togglePop('pop-alert-id').

<!-- Pop Alert Markup -->
<div class="pop-alert active" id="cookies-info-pop">
    <h4>We Use Cookies!</h4>
    <p>
        We use cookies to personalize your experience on our website! 
        Read our <a href="./privacy-policy.php">'Privacy Policy'</a> and 
        <a href="./terms-of-service.php">'Terms of Service'</a> to know more.
    </p>
    <button class="white-button" onclick="togglePop('cookies-info-pop')">Close</button>
    <button class="blue-button" onclick="acceptCookies()">Accept</button>
</div>

Pop-Page Modal (.pop-page)

Full-screen backdrop overlay modal system for user account popups, cart panels, and complex dialogues.

Sample Modal Window

This is a full-screen pop page overlay triggered by togglePop('sample-modal').