Ver código fonte

【新增】优化欢迎页面样式并更新版本

- 修改页面样式,增加滚动支持,调整布局
- 更新版本号至 0.1.2
- 添加新版本的 index.html 和 metadata.json 文件
- 更新 index.json 中的包信息
PJ568 1 ano atrás
pai
commit
94d4db40ea

+ 3 - 3
index.json

@@ -2,12 +2,12 @@
   "packages": [
     {
       "id": "pageos-hello",
-      "name": "PageOS Hello",
+      "name": "PageOS 欢迎",
       "icon": "",
       "author": "PJ568",
-      "latest_version": "0.1.1",
+      "latest_version": "0.1.2",
       "description": "A PageOS web application",
-      "location": "./packages/pageos-hello/0.1.1"
+      "location": "./packages/pageos-hello/0.1.2"
     },
     {
       "id": "pageos-app-launcher",

+ 22 - 19
packages/pageos-hello/0.1.1/index.html → packages/pageos-hello/0.1.2/index.html

@@ -35,7 +35,7 @@
         --accent-font-color: #f5f5f5;
         --secondary-font-color: #eeeeee;
 
-        --margin-padding: 0.5rem;
+        --margin-padding: 1rem;
         --border-thickness: 0.2rem;
         --border-radius: 0.5rem;
         --shadow: 0.6rem 0.6rem 0.1rem 0.1rem rgba(0, 0, 0, 0.2);
@@ -48,15 +48,8 @@
         width: 100%;
         height: 100%;
         max-height: 100%;
-        align-items: center;
-        justify-content: center;
         gap: var(--margin-padding);
       }
-
-      .container.focused {
-        --secondary-font-color: var(--accent-font-color);
-        --secondary-color: var(--accent-color);
-      }
     </style>
     <link
       rel="icon"
@@ -66,19 +59,23 @@
   </head>
   <body>
     <div class="container">
-      <h1>欢迎使用 PageOS</h1>
       <div class="links">
+        <h1>欢迎使用 PageOS</h1>
         <style>
           .links {
+            width: 100%;
+            height: 100%;
             display: flex;
             flex-direction: column;
-            gap: 0.5rem;
-            margin-top: 1rem;
+            gap: var(--margin-padding);
+            padding: var(--margin-padding);
+            overflow-y: scroll;
+            justify-content: center;
           }
           .links a {
             color: var(--accent-color);
             text-decoration: none;
-            padding: 0.5rem;
+            padding: var(--margin-padding);
             border: var(--border-thickness) solid var(--secondary-color);
             border-radius: var(--border-radius);
             transition: all 0.2s ease;
@@ -86,6 +83,7 @@
           .links a:hover {
             background-color: var(--focused-bg-color);
             border-color: var(--accent-color);
+            box-shadow: var(--shadow);
           }
           .links a:active {
             transform: translateY(0.1rem);
@@ -95,38 +93,43 @@
           href="https://github.com/swaybien/pageos"
           target="_blank"
           rel="noopener"
-          >PageOS 项目主页</a
-        >
+          >PageOS 项目主页
+        </a>
         <a
           href="https://github.com/swaybien/pageos-core"
           target="_blank"
           rel="noopener"
-          >pageos-core</a
         >
+          pageos-core
+        </a>
         <a
           href="https://github.com/swaybien/pageos-pkgr"
           target="_blank"
           rel="noopener"
-          >pageos-pkgr</a
         >
+          pageos-pkgr
+        </a>
         <a
           href="https://github.com/swaybien/pageos-apps"
           target="_blank"
           rel="noopener"
-          >pageos-apps</a
         >
+          pageos-apps
+        </a>
         <a
           href="https://github.com/swaybien/pageos-greet"
           target="_blank"
           rel="noopener"
-          >pageos-greet</a
         >
+          pageos-greet
+        </a>
         <a
           href="https://github.com/swaybien/pageos-pkgr-ui"
           target="_blank"
           rel="noopener"
-          >pageos-pkgr-ui</a
         >
+          pageos-pkgr-ui
+        </a>
       </div>
     </div>
   </body>

+ 3 - 3
packages/pageos-hello/0.1.1/metadata.json → packages/pageos-hello/0.1.2/metadata.json

@@ -1,7 +1,7 @@
 {
-  "name": "PageOS Hello",
+  "name": "PageOS 欢迎",
   "id": "pageos-hello",
-  "version": "0.1.1",
+  "version": "0.1.2",
   "description": "A PageOS web application",
   "icon": "",
   "author": "PJ568",
@@ -10,6 +10,6 @@
   "permissions": [],
   "entry": "index.html",
   "all_files": {
-    "index.html": "ecc74040554cea8ecb44458cfcd5757f1bd8c53c9bf2955d8c1f6fbf46e1497c"
+    "index.html": "d64d7352139bd576ce18c81625220f6e90bf49de5339ddecf2c0c3a8716f9baf"
   }
 }

+ 2 - 1
packages/pageos-hello/versions.txt

@@ -1,2 +1,3 @@
 0.1.0
-0.1.1
+0.1.1
+0.1.2