diff --git a/src/components/forms/signin.tsx b/src/components/forms/signin.tsx
new file mode 100644
index 00000000..13c63cf5
--- /dev/null
+++ b/src/components/forms/signin.tsx
@@ -0,0 +1,82 @@
+import { useState } from "react";
+import logo from "@assets/img/128_keri_logo.png";
+
+export function Signin(): JSX.Element {
+ const [vendorUrl, setVendorUrl] = useState("");
+ const [passcode, setPasscode] = useState("");
+
+ const handleConnection = async () => {
+ const resp = await chrome.runtime.sendMessage({
+ type: "authentication",
+ subtype: "persist-token",
+ message: "passcode generated",
+ passcode,
+ vendorUrl,
+ });
+ console.log("res in signin", resp);
+ };
+
+ return (
+
+
+
KERI
+
Settings Icons
+
+
+
+
+
+ setVendorUrl(e.target.value)}
+ />
+
+
+ setPasscode(e.target.value)}
+ />
+
+
+
+
+
+
+
+ );
+}
diff --git a/src/components/main.tsx b/src/components/main.tsx
new file mode 100644
index 00000000..5d485a88
--- /dev/null
+++ b/src/components/main.tsx
@@ -0,0 +1,79 @@
+import { userService } from "@pages/background/services/user";
+
+export function Main(): JSX.Element {
+ const handleLogout = async () => {
+ await userService.removeToken();
+ };
+ return (
+
+
+
+
+ );
+}
diff --git a/tailwind.config.cjs b/tailwind.config.cjs
index 6369be41..c09f6182 100644
--- a/tailwind.config.cjs
+++ b/tailwind.config.cjs
@@ -1,12 +1,23 @@
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
+ colors: {
+ blue: "#1fb6ff",
+ purple: "#7e5bef",
+ pink: "#ff49db",
+ orange: "#ff7849",
+ green: "#13ce66",
+ yellow: "#ffc82c",
+ "gray-dark": "#273444",
+ gray: "#8492a6",
+ "gray-light": "#d3dce6",
+ },
extend: {
animation: {
- 'spin-slow': 'spin 20s linear infinite',
- }
+ "spin-slow": "spin 20s linear infinite",
+ },
},
},
- prefix: '',
+ prefix: "",
plugins: [],
-}
+};
diff --git a/tsconfig.json b/tsconfig.json
index fe6f0e5b..b1e8cae3 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -19,7 +19,8 @@
"paths": {
"@src/*": ["src/*"],
"@assets/*": ["src/assets/*"],
- "@pages/*": ["src/pages/*"]
+ "@pages/*": ["src/pages/*"],
+ "@components/*": ["src/components/*"]
}
},
"include": ["src",
diff --git a/vite.config.ts b/vite.config.ts
index 1ed8cf8a..6feec579 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -12,6 +12,7 @@ import pkg from './package.json';
const root = resolve(__dirname, 'src');
const pagesDir = resolve(root, 'pages');
const assetsDir = resolve(root, 'assets');
+const componentsDir = resolve(root, 'components');
const outDir = resolve(__dirname, 'dist');
const publicDir = resolve(__dirname, 'public');
@@ -31,6 +32,7 @@ export default defineConfig({
'@src': root,
'@assets': assetsDir,
'@pages': pagesDir,
+ '@components': componentsDir,
},
},
plugins: [