浏览代码

chinesefy

ming 3 年之前
父节点
当前提交
bec0483660
共有 2 个文件被更改,包括 10 次插入10 次删除
  1. 9 9
      similar_web/index.html
  2. 1 1
      similar_web/main.py

+ 9 - 9
similar_web/index.html

@@ -116,7 +116,7 @@
               <div>
                 <i class="fas fa-home fa-lg mb-1"></i>
               </div>
-              Home
+              首頁
             </a>
           </li>
           <li class="nav-item text-center mx-2 mx-lg-1">
@@ -125,7 +125,7 @@
                 <i class="fas fa-globe-americas fa-lg mb-1"></i>
                 <!-- <span class="badge rounded-pill badge-notification bg-success">11</span> -->
               </div>
-              News
+              新聞
             </a>
           </li>
           <li class="nav-item text-center mx-2 mx-lg-1">
@@ -134,7 +134,7 @@
                 <i class="fab fa-korvue fa-lg mb-1"></i>
                 <!-- <span class="badge rounded-pill badge-notification bg-success">11</span> -->
               </div>
-              Keywords
+              關鍵字
             </a>
           </li>
         </ul>
@@ -152,9 +152,9 @@
       <div class="col-12 col-12">
           <!-- Search form  -->
         <form id="searchform" class="d-flex input-group search__form">
-          <input type="search" class="form-control search__bar" placeholder="Search" aria-label="Domain Name" id="search_query"  />
+          <input type="search" class="form-control search__bar" placeholder="在此輸入網址" aria-label="Domain Name" id="search_query"  />
           <button class="btn btn-primary search__btn" type="button" data-mdb-ripple-color="dark" id="search__btn" >
-              Search
+              查詢
           </button>
         </form>
           <h3 class="h3 text-center" id="sitename">Website Traffic</h3>
@@ -175,12 +175,12 @@
               <label for="daterng">結束日期:</label><input type="text" name="daterng" id="daterng2">
               <button class='sub__date btn'>套用</button>
             </div>
-            <div class="text-muted mb-2 border-bottom">RANKING</div>
+            <div class="text-muted mb-2 border-bottom">排行</div>
             <div class="row g-5 mb-3">
               <div class="col-sm-4">
                 <div class="card p-3">
                   <div class="card-body text-center">
-                    <h5 class="card-title card__rank__title mb-2">Global Ranks</h5>
+                    <h5 class="card-title card__rank__title mb-2">國際牌行</h5>
                     <p class="card-text" >
                     </p>
                     <span href="#" class="rank__mark"># <strong id="globalrank" class="rank_num">1000</strong></span>
@@ -190,7 +190,7 @@
               <div class="col-sm-4">
                 <div class="card p-3">
                   <div class="card-body text-center">
-                    <h5 class="card-title card__rank__title mb-2">Country Ranks</h5>
+                    <h5 class="card-title card__rank__title mb-2">國內排行</h5>
                     <p class="card-text">
                     </p>
                     <span href="#" class="rank__mark"># <strong id="countryrank" class="rank_num">100</strong></span>
@@ -200,7 +200,7 @@
               <div class="col-sm-4">
                 <div class="card p-3">
                   <div class="card-body text-center">
-                    <h5 class="card-title card__rank__title mb-2"><i class="fas fa-tags"></i>Category</h5>
+                    <h5 class="card-title card__rank__title mb-2"><i class="fas fa-tags"></i>網站類別</h5>
                     <p class="card-text card__rank__cat" id="category">
                       Lorem
                     </p>

+ 1 - 1
similar_web/main.py

@@ -12,7 +12,7 @@ from fastapi.responses import JSONResponse, FileResponse
 from fastapi.middleware.cors import CORSMiddleware
 from pydantic import BaseModel
 
-fake_rank_plus = 600
+fake_rank_plus = 700
 fake_traffic_weighted = 1.3
 
 app = FastAPI()