freyr 0.2.8

A UI component library for Dioxus web.
Documentation
pub const NAVBAR_STYLES: &str = r#"
    html, body {
        margin: 0;
        padding: 0;
    }

    .navbar {
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 25px;
        position: relative;
        z-index: 99;
    }

    .nav-div {
        display: flex;
        align-items: center;
    }

    .nav-header-wrapper {
        font-size: 1.5rem;
        font-weight: bold;
        cursor: pointer;
    }

    .nav-logo {
        height: 52px;
        width: 52px;
        cursor: pointer;
    }

    .hamburger {
        display: none;
    }

    .menu {
        display: flex;
        position: static;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
        align-items: center;
        height: 40px;
        width: 100%;
    }

    .menu-items {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .menu-item {
        padding: 10px 15px;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.3s ease, background-color 0.3s ease;
    }
   
    .menu-items.left {
        justify-content: flex-start;
    }
   
    .menu-items.center {
        justify-content: center;
    }
   
    .menu-items.right {
        justify-content: flex-end;
    }

    .menu-item:hover {
        color: #ccc;
        background-color: transparent;
    }

    @media (max-width: 600px) {
        .no-nav-header {
            padding: 16px 25px;
        }
       
        .hamburger {
            cursor: pointer;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            height: 24px;
            width: 30px;
            background: none;
            border: none;
            outline: none;
            padding: 0;
            position: absolute;
            right: 15px;
            z-index: 20;
        }

        .menu {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100vh;
            background-color: var(--background-color);
            padding: 20px 0;
            z-index: 15;
        }

        .nav-logo {
            height: 30px;
            width: 30px;
        }

        .menu.open {
            display: flex;
            animation: slideDown 0.4s ease-in-out;
        }

        .menu-items {
            flex-direction: column;
            align-items: center;
        }

        .menu-item {
            display: block;
            text-decoration: none;
            transition: color 0.3s ease, background-color 0.3s ease;
            color: var(--nav-item-color);
            padding: 20px;
        }
    }

    @keyframes slideDown {
        from {
            transform: translateY(-10%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
"#;