summaryrefslogtreecommitdiff
path: root/src/index.tsx
blob: 1ed365d14080a1667c5caa9a6dfd0963dc3de154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { definePlugin } from "decky-frontend-lib";
import React from "react";
import { FaGlobe } from "react-icons/fa"; // Example icon

function Content() {
  return (
    <div
      style={{
        width: "100%",
        height: "100vh", // Use the full viewport height
        display: "flex",
        flexDirection: "column",
      }}
    >
      <iframe
        src="https://github.com/ublue-os/bazzite/releases/" // Replace with your desired URL
        style={{
          flex: 1, // Ensures the iframe stretches to fill the parent container
          width: "100%",
          border: "none",
        }}
        title="WebPage Viewer"
      ></iframe>
    </div>
  );
}

export default definePlugin(() => {
  return {
    name: "WebPage Viewer",
    title: <div>WebPage Viewer</div>, // Title shown in Decky
    icon: <FaGlobe />,                // Icon for the plugin
    content: <Content />,
    onDismount() {},
  };
});