huaisianhuang 3 years ago
parent
commit
e3738eaa22

+ 17 - 27
css/style.css

@@ -1,8 +1,9 @@
 @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap");
 @font-face {
   font-family: drechifont;
-  src: url(../drechifont-proportional.woff);
-  font-weight: 300; }
+  src: url(../drechifont-Proportional.woff);
+  font-weight: 300;
+  font-display: swap; }
 
 @font-face {
   font-family: 'Taipei Sans TC Beta';
@@ -75,32 +76,21 @@ body {
     @media screen and (max-width: 576px) {
       .header__text-box {
         width: 98vw; } }
-    .header__text-box h2 {
-      font-size: 4rem;
-      font-family: drechifont;
-      color: white;
-      text-shadow: #494949 1px 0 10px;
-      position: relative; }
+    .header__text-box .title__img {
+      width: 100%; }
+    .header__text-box .pen__img {
+      position: absolute;
+      width: 110px;
+      height: 109px;
+      left: 90%;
+      top: 44%; }
       @media screen and (max-width: 576px) {
-        .header__text-box h2 {
-          font-size: 2.6rem;
-          letter-spacing: 1px;
-          font-weight: lighter;
-          text-shadow: #696969 1px 0 10px;
-          line-height: 3.4rem; } }
-      .header__text-box h2 img {
-        position: absolute;
-        width: 110px;
-        height: 109px;
-        left: 90%;
-        top: 44%; }
-        @media screen and (max-width: 576px) {
-          .header__text-box h2 img {
-            width: 70px;
-            height: 80px;
-            left: 80%;
-            top: 75%;
-            transform: rotate(5deg); } }
+        .header__text-box .pen__img {
+          width: 70px;
+          height: 80px;
+          left: 80%;
+          top: 75%;
+          transform: rotate(5deg); } }
   .header__polygon-box {
     position: absolute;
     bottom: 3%;

BIN
images/title_mb.webp


BIN
images/title_pc.webp


BIN
images/triangle_工作區域 1.png


BIN
images/wave-1_工作區域 1.png


BIN
images/wave-2_工作區域 1.png


BIN
images/wave-3_工作區域 1.png


+ 3 - 2
index.html

@@ -36,7 +36,6 @@
     <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
 </head>
 <body>
-   
     <div style="overflow-x:hidden;">
     <!--  Header  -->
     <header class="header">
@@ -45,7 +44,9 @@
             <hr class="header__line">
         </div>
         <div class="header__text-box">
-            <h2>攜手走過疫情<br>幸福空間與設計師們一起邀請您打造家園<img src="images/pencil.png"></h2>
+            <img class="title__img d-none d-md-block" src="images/title_pc.webp" alt="">
+            <img class="title__img d-block d-md-none" src="images/title_mb.webp" alt="">
+            <img class="pen__img" src="images/pencil.png">
         </div>
         <div class="header__polygon-box">
             <img src="./images/Polygon.webp" width="28px" alt="">

+ 17 - 25
scss/main.scss

@@ -4,8 +4,9 @@ $font-color: #707070;
 
 @font-face {
     font-family: drechifont;
-    src: url(../drechifont-proportional.woff);
+    src: url(../drechifont-Proportional.woff);
     font-weight: 300;
+    font-display: swap;
 }
 
 @font-face {
@@ -87,32 +88,23 @@ body {
         @media screen and(max-width: 576px) {
             width: 98vw;
         }
-        h2 {
-            font-size: 4rem;
-            font-family: drechifont;
-            color: white;
-            text-shadow: #494949 1px 0 10px;
-            position: relative;
+        .title__img {
+            width: 100%;
             @media screen and(max-width: 576px) {
-                font-size: 2.6rem;
-                letter-spacing: 1px;
-                font-weight: lighter;
-                text-shadow: #696969 1px 0 10px;
-                line-height: 3.4rem;
             }
-            img {
-                position: absolute;
-                width: 110px;
-                height: 109px;
-                left: 90%;
-                top: 44%;
-                @media screen and(max-width: 576px) {
-                    width: 70px;
-                    height: 80px;
-                    left: 80%;
-                    top: 75%;
-                    transform: rotate(5deg);
-                }
+        }
+        .pen__img {
+            position: absolute;
+            width: 110px;
+            height: 109px;
+            left: 90%;
+            top: 44%;
+            @media screen and(max-width: 576px) {
+                width: 70px;
+                height: 80px;
+                left: 80%;
+                top: 75%;
+                transform: rotate(5deg);
             }
         }
     }