lybenson 8 жил өмнө
parent
commit
9da8ad0d46

+ 28 - 5
src/components/common/BHeader.vue

@@ -1,18 +1,21 @@
 <template>
-  <div class="header" style="background-image: url('http://i0.hdslb.com/bfs/archive/4b9c7031618e743f3ed3e13f74ebc0130c55d981.jpg';">
+  <div class="header" style="background-image: url('//i0.hdslb.com/bfs/archive/4f59bf959d51592016e07efe62969c411288826a.png');">
   	<div class="header-layer"></div>
   	<a class="header-link" target="_blank" href="http://www.bilibili.com" data-loc-id="142"></a>
   	<div class="h-center">
   		<a href="/" class="logo" style="background-image: url('//i0.hdslb.com/bfs/archive/bb2aa0d954bf59d4ee555a8a603fe83888463b6b.png');"></a>
   		<div class="banner-title">哔哩哔哩 (゜-゜)つロ 干杯~</div>
+      <search class="msearch"></search>
   	</div>
-  	<div class="num"></div>
   </div>
 </template>
 
 <script>
+import Search from './Search.vue'
 export default {
-
+  components: {
+    Search
+  }
 }
 </script>
 
@@ -35,6 +38,26 @@ export default {
     	margin 0 auto
     	position relative
     	height 170px
-    	transition .2s heigh
-    
+    	top -170px
+    	transition .2s height
+    	.logo
+    		position absolute
+    		width 220px
+    		height 105px
+    		left 24px
+    		top 55px
+    		background transparent no-repeat left center
+    		z-index 100
+    	.banner-title
+    		position absolute
+    		top 114px
+    		left 255px
+    		line-height 20px
+    		padding 6px 10px
+    		background-color rgba(0, 0, 0, 0.68)
+    		color #fff
+    		border-radius 4px
+    		font-size 14px
+    		max-width  350px
+    		transition .2s
 </style>

+ 10 - 2
src/components/common/Search.vue

@@ -1,5 +1,7 @@
 <template>
-	<div></div>
+	<div class="search">
+		
+	</div>
 </template>
 <script>
 	export default {
@@ -8,5 +10,11 @@
 </script>
 
 <style lang="stylus">
-	
+	.search
+		width 100px
+		height 32px
+		background red
+		position absolute
+		top calc(170px - (56px - 32px) - 32px)
+		right 0px
 </style>

+ 11 - 4
src/components/common/TopContainer.vue

@@ -2,7 +2,7 @@
   <div class="top_container">
     <div class="z_top b-header-blur b-header-blur-black">
       <div class="b-header-mask-wrp">
-        <div class="b-header-mask-bg" style="background-image: url('//i0.hdslb.com/bfs/archive/4b9c7031618e743f3ed3e13f74ebc0130c55d981.jpg');"></div>
+        <div class="b-header-mask-bg" style="background-image: url('//i0.hdslb.com/bfs/archive/4f59bf959d51592016e07efe62969c411288826a.png');"></div>
         <div class="b-header-mask"></div>
       </div>
       <div class="z_header">
@@ -124,7 +124,7 @@ export default {
           width 100%
           height 100%
           z-index 100
-          background-color rgba(255, 255, 255, 0.4)
+          background-color rgba(0, 0, 0, 0.4)
       .z_header
         display block
         margin 0 auto
@@ -144,6 +144,10 @@ export default {
           float left
           height 42px
           font-size 12px
+          span
+            font-weight bold
+          a
+            font-weight bold
           li
             .new
               position absolute
@@ -154,6 +158,8 @@ export default {
               width 22px
               height 10px
               background-position -851px -412px
+            a.i-link
+              font-size 12px
           ul
             zoom 1
             &:after
@@ -172,12 +178,12 @@ export default {
               a.i-link
                 height 100%
                 display block
-                color #222
+                color #fff
               &.home
                 margin-left -10px
                 background-image url(../../assets/images/icons.png)
                 background-repeat no-repeat
-                background-position -910px -74px
+                background-position -845px -74px
                 .i-link
                   width 50px
                   height 42px
@@ -214,6 +220,7 @@ export default {
                       display block
                       margin 0px
                       padding 0px
+                      font-weight 700
                   .s-line
                     display inline-block
                     border-left 1px solid #222