Commit d619d5db95142389e0bc3d2ed4e3e7a06bf40da4

Authored by liuqimichale
1 parent aefc33a1

banner

src/assets/css/commonCss/reset.css
... ... @@ -141,3 +141,18 @@ table {
141 141 color: #F00;
142 142 }
143 143  
  144 +.textCommonPadding{
  145 + padding: 49px 0;
  146 +}
  147 +.heading-text{
  148 + padding-bottom: 29px;
  149 + text-align: center;
  150 + font-size: 30px;
  151 + color: #0C51C0;
  152 +}
  153 +.des-text{
  154 + font-size: 14px;
  155 + color: #333;
  156 + text-align: center;
  157 +}
  158 +
... ...
src/views/home/index.vue
1 1 <template>
2   - <div>首页</div>
  2 + <div>
  3 + <div class="banner-wrapper">
  4 +
  5 +
  6 + <ul class="widthCommon banner-text">
  7 + <li>
  8 + <div>覆盖城市</div>
  9 + <div>100<span>+</span></div>
  10 + </li>
  11 + <li>
  12 + <div>覆盖城市</div>
  13 + <div>100<span>+</span></div>
  14 + </li>
  15 + <li>
  16 + <div>覆盖城市</div>
  17 + <div>100<span>+</span></div>
  18 + </li>
  19 + <li>
  20 + <div>覆盖城市</div>
  21 + <div>100<span>+</span></div>
  22 + </li>
  23 + </ul>
  24 + </div>
  25 + <div class="widthCommon textCommonPadding">
  26 + <div class="heading-text">我们是谁?</div>
  27 + <div class="des-text">
  28 + 公司主营业务面向城市智慧停车、公安交通、公共交通三大领域,为政府、企业、个人提供综合交通信息服务,通过交通规划、方案设计、系统建设、运营和服务,深度整合城市动静态交通数据,构建以物联网、互联网、云计算、大数据、人工智能为核心技术的产品研发、生产、系统建设和维护为一体的城市级动静态交通业务生态服务体系。
  29 + </div>
  30 + </div>
  31 + </div>
3 32 </template>
4 33  
5 34 <script>
... ... @@ -9,5 +38,26 @@ export default {
9 38 </script>
10 39  
11 40 <style scoped lang="">
  41 + .banner-wrapper{
  42 + height: 761px;
  43 + background:rgba(0,0,0,.58);
  44 + position: relative;
  45 + }
  46 + .banner-text{
  47 + height: 143px;
  48 + position: absolute;
  49 + bottom: 0;
  50 + left: 50%;
  51 + transform: translateX(-50%);
  52 + display: flex;
  53 + }
  54 + .banner-text li{
  55 + flex: 1;
  56 + height: 71px;
  57 + line-height: 71px;
  58 + font-size: 30px;
  59 + color: #FFF;
  60 + text-align: center;
  61 + }
12 62  
13 63 </style>
... ...