wmaple hace 3 años
padre
commit
a21e4cc6d7

assets/images/index/banner.png → assets/images/home/banner.png


assets/images/index/getApp.png → assets/images/home/getApp.png


assets/images/index/goole.png → assets/images/home/goole.png


assets/images/index/ios.png → assets/images/home/ios.png


assets/images/index/map.png → assets/images/home/map.png


BIN
assets/images/home/phone/banner-pho.png


assets/images/index/qrcode.png → assets/images/home/qrcode.png


assets/images/index/take-out-people.png → assets/images/home/take-out-people.png


assets/images/index/take-out-shadow.png → assets/images/home/take-out-shadow.png


+ 53 - 12
assets/style/index.css

@@ -2,10 +2,20 @@
 h2,
 h3,
 h4,
-h5 {
+h5,
+p {
   margin: 0;
   padding: 0;
 }
+.font72 {
+  font-size: 3.75vw;
+}
+.font60 {
+  font-size: 3.125vw;
+}
+.font24 {
+  font-size: 1.25vw;
+}
 .index-page {
   width: 100%;
 }
@@ -13,9 +23,19 @@ h5 {
   position: relative;
   width: 100%;
   height: 42.135vw;
-  background: url('../images//index/banner.png') no-repeat;
+  background: url('../../images/home/banner.png') no-repeat;
   background-size: 100% 100%;
   z-index: 3;
+  display: flex;
+  flex-direction: column;
+  justify-content: center;
+  align-items: center;
+  color: #ffffff;
+}
+
+.index-page .banner p {
+  margin-bottom: 0.76vw;
+  letter-spacing: -1.5px;
 }
 
 .index-page .getApp {
@@ -23,21 +43,21 @@ h5 {
   width: 100%;
   height: 41.67vw;
   margin-top: -5.73vw;
-  background: url('../images//index/getApp.png') no-repeat;
+  background: url('../../images/home/getApp.png') no-repeat;
   background-size: 100% 100%;
 }
 
 .index-page .getApp .where {
   padding-top: 14.58vw;
   margin-left: 12.5vw;
-  font-size: 60px;
+  font-size: 3.125vw;
   color: #242a30;
 }
 
 .index-page .getApp .answer {
   margin-top: 1.18vw;
   margin-left: 12.5vw;
-  font-size: 24px;
+  font-size: 1.25vw;
   color: #959799;
 }
 
@@ -80,7 +100,7 @@ h5 {
 
 .index-page .take-out .food-answer {
   text-align: center;
-  font-size: 24px;
+  font-size: 1.25vw;
   color: #242a30;
   margin-top: 1.18vw;
 }
@@ -137,23 +157,25 @@ h5 {
 }
 
 .index-page .take-out .take-out-body .take-out-title {
-  font-size: 72px;
+  font-size: 3.75vw;
   text-shadow: 13.5px 23.38px 54px 0px rgba(3, 3, 3, 0.38);
   font-weight: 500;
 }
 
 .index-page .take-out .take-out-body .about {
-  font-size: 24px;
+  font-size: 1.25vw;
   font-weight: 500;
   width: 15.208vw;
   letter-spacing: -0.6px;
   text-shadow: 13.5px 23.38px 54px 0px rgba(3, 3, 3, 0.38);
+  margin-bottom: 1.82vw;
 }
 
 .index-page .take-out .take-out-body p {
   font-size: 16px;
   font-weight: 400;
   letter-spacing: -0.4px;
+  margin-bottom: 2.19vw;
 }
 
 .index-page .take-out .take-out-body .toway {
@@ -164,12 +186,12 @@ h5 {
 .index-page .map {
   width: 100%;
   height: 56.25vw;
-  background: url('../images/index/map.png') no-repeat;
+  background: url('../../images/home/map.png') no-repeat;
   background-size: 100% 100%;
 }
 
 .index-page .map h1 {
-  font-size: 72px;
+  font-size: 3.75vw;
   font-weight: 400;
   color: #018cfb;
   padding-top: 7.708vw;
@@ -178,12 +200,14 @@ h5 {
 
 .index-page .map p {
   width: 42.71vw;
-  font-size: 24px;
+  font-size: 1.25vw;
   font-weight: 500;
   color: #242a30;
   line-height: 30px;
   margin-left: 12.448vw;
   word-break: break-all;
+  margin-bottom: 3.125vw;
+  margin-top: 1.35vw;
 }
 
 .index-page .map .select {
@@ -203,7 +227,7 @@ h5 {
   text-align: center;
   line-height: 2.81vw;
   color: #fff;
-  font-size: 24px;
+  font-size: 1.25vw;
   font-weight: 600;
   z-index: 3;
 }
@@ -232,3 +256,20 @@ h5 {
 .index-page .map .select .pull-box .pull-item:last-child {
   border: none;
 }
+
+@media screen and (max-width: 960px) {
+  .font72 {
+    font-size: 9.6vw;
+  }
+  .font60 {
+    font-size: 8vw;
+  }
+  .font24 {
+    font-size: 3.2vw;
+  }
+  .index-page .banner {
+    height: 89.2vw;
+    background: url('../../images//home/phone/banner-pho.png') no-repeat;
+    background-size: 100% 100%;
+  }
+}

+ 12 - 9
index.html

@@ -6,22 +6,24 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>首页</title>
     <link rel="stylesheet" href="./assets/style/common/index.css" />
-    <link rel="stylesheet" href="./assets/style/index.css" />
+    <link rel="stylesheet" href="./assets/style/home/index.css" />
   </head>
   <body>
+    <!--#include file="./components/header1.html"-->
     <div class="index-page">
-      <div class="box1">
-        <!-- #include file="./components/header1.html" -->
+      <div class="banner">
+        <p class="font60">Asian Cuisine</p>
+        <p class="font60">With' The Taste Of Home</p>
+        <div class="font24">Asian food delivery platform</div>
       </div>
-      <div class="banner"></div>
       <div class="getApp">
         <div class="where">Have you got the app?</div>
         <div class="answer">Get yours now-available on the iOS and Android app stores!</div>
         <div class="qrcodebox">
-          <img class="qrcode" src="./assets//images/index/qrcode.png" alt="" />
+          <img class="qrcode" src="./assets//images/home/qrcode.png" alt="" />
           <div class="tobox">
-            <img class="ios" src="./assets//images/index/ios.png" alt="" />
-            <img class="ios" src="./assets//images/index/goole.png" alt="" />
+            <img class="ios" src="./assets//images/home/ios.png" alt="" />
+            <img class="ios" src="./assets//images/home/goole.png" alt="" />
           </div>
         </div>
       </div>
@@ -30,8 +32,8 @@
         <div class="food-answer">Operating in 10 Countries Around the World</div>
         <div class="take-out-body">
           <div class="img-box">
-            <img class="take-out-img" src="./assets/images/index/take-out-shadow.png" alt="" />
-            <img class="take-out-img take-out-people" src="./assets/images/index/take-out-people.png" alt="" />
+            <img class="take-out-img" src="./assets/images/home/take-out-shadow.png" alt="" />
+            <img class="take-out-img take-out-people" src="./assets/images/home/take-out-people.png" alt="" />
             <div class="img-info take-out-img-info">
               <h1 class="take-out-title whiteColor">Deliver</h1>
               <div class="about whiteColor">with HungryPanda</div>
@@ -71,4 +73,5 @@
       </div>
     </div>
   </body>
+  <script type="module" src="./assets/js/common/index.js" defer></script>
 </html>