chao 3 달 전
부모
커밋
d03bb7ea77
2개의 변경된 파일53개의 추가작업 그리고 7개의 파일을 삭제
  1. 5 5
      _navbar.md
  2. 48 2
      index.html

+ 5 - 5
_navbar.md

@@ -1,6 +1,6 @@
-- Translations
 
-  - [图形化简体](https://blockly-pi-help.cocorobo.cn)
-  - [图形化繁体](https://blockly-pi-help.cocorobo.hk)
-  - [python 简体](/)
-  - [python 繁体](https://python-pi-help.cocorobo.hk)
+- [简](/)
+
+- [繁](https://pi-help.cocorobo.hk/python)
+
+- [English](https://pi-help.cocorobo.en/python)

+ 48 - 2
index.html

@@ -51,12 +51,58 @@
       border-radius: 10px;
       border-left: 5px solid rgba(238, 91, 10, 1.0);
     }
+
+    .Blockly_python {
+      position: fixed;
+      top: 8px;
+      left: 500px;
+      z-index: 10;
+    }
+    .Blockly_python div span{
+      display: inline-block;
+      padding: 10px 0;
+      font-size: 20px;
+      /* background-color: #225dd5; */
+      color: #000;
+      cursor: pointer;
+      font-weight: 500;
+    }
+    .Blockly_python div .Blockly_python_active{
+      /* background-color: #225dd5; */
+      color: #225dd5;
+      border-bottom: 5px solid #225dd5;
+    }
+    @media screen and (max-width: 1500px) {
+      .Blockly_python {
+        left: 400px;
+      }
+    }
+    @media screen and (max-width: 1300px) {
+      .Blockly_python {
+        left: 320px;
+      }
+    }
+    @media screen and (max-width: 1100px) {
+      .Blockly_python {
+        left: 310px;
+      }
+    }
+    @media screen and (max-width: 800px) {
+      .Blockly_python {
+        left: 10px;
+      }
+    }
   </style>
 </head>
 
 <body>
-  <!-- <nav>cocorobo</nav> -->
-  <a href=""></a>
+  <div class="Blockly_python">
+    <div>
+      <a href="https://pi-help.cocorobo.cn"><span>图形化</span></a>
+      &nbsp;&nbsp;&nbsp;&nbsp;
+      <span class="Blockly_python_active">Python</span>
+    </div>
+  </div>
   <div class="loading_div" id="loading_div">
     <img src="./media/loading.gif" alt="">
   </div>