Add PWA install badge for desktop and tablet (manifest, SW, Add to Home Screen).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-26 21:57:39 +08:00
parent aca9d80e64
commit cb97a45051
14 changed files with 356 additions and 4 deletions
+6 -2
View File
@@ -1,6 +1,7 @@
import { FormEvent, useState } from "react";
import { useNavigate } from "react-router-dom";
import { login, setSession } from "../api/client";
import InstallBadge from "../components/InstallBadge";
export default function LoginPage() {
const nav = useNavigate();
@@ -27,8 +28,11 @@ export default function LoginPage() {
return (
<div className="login-wrap">
<form className="login-box" onSubmit={onSubmit}>
<h1>OKX </h1>
<p></p>
<div className="login-title-row">
<h1>OKX </h1>
<InstallBadge />
</div>
<p> · /</p>
{err ? <div className="err">{err}</div> : null}
<div className="field">
<label htmlFor="user"></label>