PJ568 1 год назад
Сommit
d11bc036ef
3 измененных файлов с 149 добавлено и 0 удалено
  1. 1 0
      .gitignore
  2. 133 0
      index.html
  3. 15 0
      metadata.json

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/target/

+ 133 - 0
index.html

@@ -0,0 +1,133 @@
+<!DOCTYPE html>
+<html lang="zh-Hans-CN">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <title>PageOS 欢迎</title>
+    <style>
+      /* 全局样式:从 pageos-ui 继承 */
+      * {
+        color: var(--secondary-font-color);
+        font-family: "Maple Mono CN", "Courier New", Courier, monospace;
+        box-sizing: border-box;
+        transition: all 0.2s ease;
+      }
+
+      ::selection {
+        background: var(--accent-bg-color);
+        color: var(--accent-font-color);
+      }
+
+      :root,
+      body {
+        height: 100%;
+        margin: 0;
+        overflow: hidden;
+        background: var(--content-bg-color);
+        padding: var(--margin-padding);
+
+        --accent-color: #64ffda; /* 强调色:边框 */
+        --secondary-color: #00695c; /* 次要色:未激活边框 */
+        --danger-color: #ff6d00; /* 着重色:边框 */
+        --accent-bg-color: #009688;
+        --secondary-bg-color: #616161;
+        --content-bg-color: #424242;
+        --accent-font-color: #f5f5f5;
+        --secondary-font-color: #eeeeee;
+
+        --margin-padding: 0.5rem;
+        --border-thickness: 0.2rem;
+        --border-radius: 0.5rem;
+        --shadow: 0.6rem 0.6rem 0.1rem 0.1rem rgba(0, 0, 0, 0.2);
+        --focused-bg-color: rgba(255, 255, 255, 0.1);
+      }
+
+      .container {
+        display: flex;
+        flex-direction: column;
+        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"
+      type="image/svg+xml"
+      href="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIj4KICA8IS0tIOWkluahhuefqeW9oiAtLT4KICA8cmVjdCB4PSIyIiB5PSIyIiB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHJ4PSIxMCIgcnk9IjEwIgogICAgZmlsbD0iIzQyNDI0MiIKICAgIHN0cm9rZT0iIzAwNjk1YyIKICAgIHN0cm9rZS13aWR0aD0iNCIvPgoKICA8IS0tIOW3puecvO+8muWwj+WchueCuSAtLT4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjE0IiByPSIxLjUiIGZpbGw9IiNmNWY1ZjUiIC8+CgogIDwhLS0g5Y+z55y877ya5bCP5ZyG54K5IC0tPgogIDxjaXJjbGUgY3g9IjIwIiBjeT0iMTQiIHI9IjEuNSIgZmlsbD0iI2Y1ZjVmNSIgLz4KCiAgPCEtLSDpvLvlrZDvvJrnq5bnur8gLS0+CiAgPGxpbmUgeDE9IjE2IiB5MT0iMTYiIHgyPSIxNiIgeTI9IjE4IiBzdHJva2U9IiNmNWY1ZjUiIHN0cm9rZS13aWR0aD0iMS41IiAvPgoKICA8IS0tIOW+rueskeeahOWYtO+8muS4iuaJrOeahOW8p+e6vyAtLT4KICA8cGF0aCBkPSJNIDE0IDIwIFEgMTYgMjIgMTggMjAiIAogICAgICAgIGZpbGw9Im5vbmUiIAogICAgICAgIHN0cm9rZT0iI2Y1ZjVmNSIgCiAgICAgICAgc3Ryb2tlLXdpZHRoPSIxLjUiIAogICAgICAgIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgLz4KPC9zdmc+"
+    />
+  </head>
+  <body>
+    <div class="container">
+      <h1>欢迎使用 PageOS</h1>
+      <div class="links">
+        <style>
+          .links {
+            display: flex;
+            flex-direction: column;
+            gap: 0.5rem;
+            margin-top: 1rem;
+          }
+          .links a {
+            color: var(--accent-color);
+            text-decoration: none;
+            padding: 0.5rem;
+            border: var(--border-thickness) solid var(--secondary-color);
+            border-radius: var(--border-radius);
+            transition: all 0.2s ease;
+          }
+          .links a:hover {
+            background-color: var(--focused-bg-color);
+            border-color: var(--accent-color);
+          }
+          .links a:active {
+            transform: translateY(0.1rem);
+          }
+        </style>
+        <a
+          href="https://github.com/swaybien/pageos"
+          target="_blank"
+          rel="noopener"
+          >PageOS 项目主页</a
+        >
+        <a
+          href="https://github.com/swaybien/pageos-core"
+          target="_blank"
+          rel="noopener"
+          >pageos-core</a
+        >
+        <a
+          href="https://github.com/swaybien/pageos-pkgr"
+          target="_blank"
+          rel="noopener"
+          >pageos-pkgr</a
+        >
+        <a
+          href="https://github.com/swaybien/pageos-apps"
+          target="_blank"
+          rel="noopener"
+          >pageos-apps</a
+        >
+        <a
+          href="https://github.com/swaybien/pageos-greet"
+          target="_blank"
+          rel="noopener"
+          >pageos-greet</a
+        >
+        <a
+          href="https://github.com/swaybien/pageos-pkgr-ui"
+          target="_blank"
+          rel="noopener"
+          >pageos-pkgr-ui</a
+        >
+      </div>
+    </div>
+  </body>
+</html>

+ 15 - 0
metadata.json

@@ -0,0 +1,15 @@
+{
+  "name": "pageos-hello",
+  "id": "pageos-hello",
+  "version": "0.1.0",
+  "description": "A PageOS web application",
+  "icon": "",
+  "author": "PJ568",
+  "type": "webapp",
+  "category": "",
+  "permissions": [],
+  "entry": "index.html",
+  "all_files": {
+    "index.html": "ecc74040554cea8ecb44458cfcd5757f1bd8c53c9bf2955d8c1f6fbf46e1497c"
+  }
+}