首页 头部

各类常见的PC头部

通用PC头部
经典头部
Hi:欢迎来到layui-ul
奥宏科技
个人中心
安全中心
数据中心
充值
提现
退出
在线客服
Hi:欢迎来到layui-ul
奥宏科技
个人中心
安全中心
数据中心
充值
提现
退出
在线客服
凸出造型头部
预览效果
ulthon_admin-奥宏快速开发后台
奥古斯宏
  • HTML
  • SCSS
  • CSS
  • UniApp
<div class="ul-header-shape" data-augmented-ui="br-clip-x bl-clip-x">
    <div class="left">
        <img class="logo" src="/static/images/ulthon_logo_108.png">
    </div>
    <div class="main">ulthon_admin-奥宏快速开发后台</div>
    <div class="right">
        <div class="list-item">
            <a href="/" class="item"><i class="layui-icon layui-icon-home"></i></a>
            <div class="item">
                <img src="/static/images/avatar.png" style="height: 30px;width: 30px;margin-right: 8px;">
                <span>奥古斯宏</span>
            </div>
            <div class="item"><i class="layui-icon layui-icon-logout"></i></div>
        </div>
    </div>
</div>
.ul-header-shape {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(rgb(0, 197, 254), rgb(2, 158, 245));
    color: #fff;
    padding: 10px 10px 25px 10px;


    --aug-bl-inset2: 20% !important;
    --aug-bl-inset1: 0px !important;
    --aug-bl: 15px !important;

    --aug-br-inset1: 20% !important;
    --aug-br-inset2: 0px !important;
    --aug-br: 15px !important;


    &>div {
        flex: 1;
    }

    .main {
        flex: 2;
        margin-bottom: -55px;
        font-size: 24px;
        text-align: center;
    }

    .left {
        .logo {
            height: 50px;
        }
    }

    .right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 100%;

        .list-item {
            display: flex;
            align-items: center;
            justify-content: flex-end;

            .item {
                margin-left: 18px;
                cursor: pointer;
                color: #fff;
            }
        }
    }

}
.ul-header-shape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(#00c5fe, #029ef5);
  color: #fff;
  padding: 10px 10px 25px 10px;
  --aug-bl-inset2: 20% !important;
  --aug-bl-inset1: 0px !important;
  --aug-bl: 15px !important;
  --aug-br-inset1: 20% !important;
  --aug-br-inset2: 0px !important;
  --aug-br: 15px !important;
}
.ul-header-shape > div {
  flex: 1;
}
.ul-header-shape .main {
  flex: 2;
  margin-bottom: -55px;
  font-size: 24px;
  text-align: center;
}
.ul-header-shape .left .logo {
  height: 50px;
}
.ul-header-shape .right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.ul-header-shape .right .list-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.ul-header-shape .right .list-item .item {
  margin-left: 18px;
  cursor: pointer;
  color: #fff;
}
<view class="ul-header-shape" data-augmented-ui="br-clip-x bl-clip-x">
    <view class="left">
        <img class="logo" src="/static/images/ulthon_logo_108.png">
    </view>
    <view class="main">ulthon_admin-奥宏快速开发后台</view>
    <view class="right">
        <view class="list-item">
            <a href="/" class="item"><i class="layui-icon layui-icon-home"></i></a>
            <view class="item">
                <img src="/static/images/avatar.png" style="height: 30px;width: 30px;margin-right: 8px;">
                <span>奥古斯宏</span>
            </view>
            <view class="item"><i class="layui-icon layui-icon-logout"></i></view>
        </view>
    </view>
</view>

注意,当前组件用到了augmented-ui。

移动门店头部
预览效果
临沂奥宏智能家居
人均200
客服
wifi
  • HTML
  • SCSS
  • CSS
  • UniApp
<div class="ul-shop-header">
    <div class="ul-shop-header__main">
        <div class="ul-shop-header__logo ul-demo-img-bg"></div>
        <div class="ul-shop-header__info">
            <div class="ul-shop-header__info__name">临沂奥宏智能家居 </div>
            <div class="ul-shop-header__info__tag">
                <div class="ul-shop-header__info__tag__item">人均200</div>
                <div class="ul-shop-header__info__tag__item"><i class="ul-shop-header__info__tag__item__icon ul-color-main layui-icon layui-icon-service"></i> 客服</div>
                <div class="ul-shop-header__info__tag__item"><i class="ul-shop-header__info__tag__item__icon ul-color-main layui-icon layui-icon-wifi"></i> wifi</div>
            </div>
        </div>
        <div class="ul-shop-header__right"><i class="layui-icon layui-icon-right"></i></div>
    </div>
    <div class="ul-shop-header__footer">
        <div class="ul-shop-header__footer__item"><i class="ul-shop-header__footer__item__icon layui-icon layui-icon-home"></i> 山东省临沂市应用科学城</div>
        <div class="ul-shop-header__footer__item"><i class="ul-shop-header__footer__item__icon layui-icon layui-icon-release"></i>位置</div>
        <div class="ul-shop-header__footer__item"><i class="ul-shop-header__footer__item__icon layui-icon layui-icon-cellphone"></i>电话</div>
    </div>
</div>
.ul-shop-header {
    padding: 15px;

    &__main {
        display        : flex;
        align-items    : center;
        justify-content: flex-start;
        position       : relative;
    }

    &__logo {
        width : 80px;
        height: 80px;
    }

    &__info {
        margin-left: 15px;

        &__name {
            line-height: 30px;
            font-size  : 16px;
            font-weight: 600;
        }

        &__tag {
            display   : flex;
            margin-top: 5px;

            &__item {
                vertical-align: middle;
                margin-right  : 10px;
                color         : #bbb;
                font-size     : 14px;
            }
        }
    }

    &__right {
        position   : absolute;
        right      : 0;
        top        : 0;
        height     : 100%;
        display    : flex;
        align-items: center;
    }

    &__footer {
        border-top     : 1px solid #eee;
        margin-top     : 10px;
        padding-top    : 10px;
        display        : flex;
        align-items    : flex-start;
        justify-content: flex-start;
        font-size      : 14px;
        color          : #999;

        &__item {
            margin-right: 15px;

            &__icon {
                color       : #333;
                margin-right: 3px;
            }
        }
    }
}
.ul-shop-header {
  padding: 15px;
}
.ul-shop-header__main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}
.ul-shop-header__logo {
  width: 80px;
  height: 80px;
}
.ul-shop-header__info {
  margin-left: 15px;
}
.ul-shop-header__info__name {
  line-height: 30px;
  font-size: 16px;
  font-weight: 600;
}
.ul-shop-header__info__tag {
  display: flex;
  margin-top: 5px;
}
.ul-shop-header__info__tag__item {
  vertical-align: middle;
  margin-right: 10px;
  color: #bbb;
  font-size: 14px;
}
.ul-shop-header__right {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
}
.ul-shop-header__footer {
  border-top: 1px solid #eee;
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 14px;
  color: #999;
}
.ul-shop-header__footer__item {
  margin-right: 15px;
}
.ul-shop-header__footer__item__icon {
  color: #333;
  margin-right: 3px;
}
<view class="ul-shop-header">
    <view class="ul-shop-header__main">
        <view class="ul-shop-header__logo ul-demo-img-bg"></view>
        <view class="ul-shop-header__info">
            <view class="ul-shop-header__info__name">临沂奥宏智能家居 </view>
            <view class="ul-shop-header__info__tag">
                <view class="ul-shop-header__info__tag__item">人均200</view>
                <view class="ul-shop-header__info__tag__item"><i class="ul-shop-header__info__tag__item__icon ul-color-main layui-icon layui-icon-service"></i> 客服</view>
                <view class="ul-shop-header__info__tag__item"><i class="ul-shop-header__info__tag__item__icon ul-color-main layui-icon layui-icon-wifi"></i> wifi</view>
            </view>
        </view>
        <view class="ul-shop-header__right"><i class="layui-icon layui-icon-right"></i></view>
    </view>
    <view class="ul-shop-header__footer">
        <view class="ul-shop-header__footer__item"><i class="ul-shop-header__footer__item__icon layui-icon layui-icon-home"></i> 山东省临沂市应用科学城</view>
        <view class="ul-shop-header__footer__item"><i class="ul-shop-header__footer__item__icon layui-icon layui-icon-release"></i>位置</view>
        <view class="ul-shop-header__footer__item"><i class="ul-shop-header__footer__item__icon layui-icon layui-icon-cellphone"></i>电话</view>
    </view>
</view>