Design System

Single Page Header

The spa-header component, prefixed by gds-spa-header, is an alternative, simplified header component for single-page applications.

When using the spa-header component, please add -has-spa-header to the <body> tag for proper spacing.

<header className="gds-spa-header">
    <div className="gds-spa-header__primary-nav">
        <div className="gds-spa-header__section gds-spa-header__section-icon">
            <a className="gds-spa-header__section-link" href="#back"
                ><i className="btl bt-arrow-left"></i
            ></a>
        </div>
        <div className="gds-spa-header__section gds-spa-header__section-icon">
            <img
                className="gds-spa-header__logo-mark"
                src="https://c.gumgum.com/ads/com/gumgum/logo/logo-mark.svg"
            />
        </div>
        <div className="gds-spa-header__section gds-spa-header__section--product">
            <h6 className="gds-page-header__product-name">Product Name</h6>
        </div>
    </div>
    <div className="gds-spa-header__secondary-nav">
        <div className="gds-spa-header__section gds-spa-header__section-icon">
            <a className="gds-spa-header__section-link" href="#search"
                ><i className="btl bt-search"></i
            ></a>
        </div>
        <div className="gds-spa-header__section gds-spa-header__section-icon">
            <a className="gds-spa-header__section-link" href="#alerts"
                ><i className="btl bt-bell"></i
            ></a>
        </div>
        <div className="gds-spa-header__section gds-spa-header__section-icon">
            <a className="gds-spa-header__section-link" href="#logout"
                ><i className="btl bt-sign-out"></i
            ></a>
        </div>
        <div className="gds-spa-header__section gds-spa-header__section--white">
            <div className="gds-avatar -m-l-2" data-gds-avatar>
                <div className="gds-avatar__image">
                    <img
                        src="https://c.gumgum.com/ads/com/gumgum/documentation/avatars/avatar--default2.jpg"
                        alt="User Name"
                        height="100%"
                    />
                </div>
                <div className="gds-avatar__menu">
                    <ul className="gds-avatar__menu-list">
                        <li className="gds-avatar__menu-list-item -ellipsis">
                            <a className="gds-avatar__menu-list-link" href="#profile">Profile</a>
                        </li>
                        <li className="gds-avatar__menu-list-item -ellipsis">
                            <a className="gds-avatar__menu-list-link" href="#settings">Settings</a>
                        </li>
                        <li className="gds-avatar__menu-list-divider"></li>
                        <li className="gds-avatar__menu-list-item -ellipsis">
                            <a className="gds-avatar__menu-list-link" href="#logout">Logout</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</header>