diff --git a/extension/src/hashpass/app/site_login_popup/page.tsx b/extension/src/hashpass/app/site_login_popup/page.tsx index b83e49f..ec64541 100644 --- a/extension/src/hashpass/app/site_login_popup/page.tsx +++ b/extension/src/hashpass/app/site_login_popup/page.tsx @@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react'; import Site_LogIn from "./site_login_component" +import '../globals.css'; export default function Site_Signup_Popup() { const [domain, setDomain] = useState(''); @@ -17,11 +18,11 @@ export default function Site_Signup_Popup() { }, []); return ( -
- -
+
+ +
{domain}
- ); + ); } \ No newline at end of file diff --git a/extension/src/hashpass/app/site_login_popup/site_login_component.tsx b/extension/src/hashpass/app/site_login_popup/site_login_component.tsx index 69b98af..807d4b1 100644 --- a/extension/src/hashpass/app/site_login_popup/site_login_component.tsx +++ b/extension/src/hashpass/app/site_login_popup/site_login_component.tsx @@ -38,23 +38,31 @@ export default function Site_LogIn() { }; - return ( -
-

Enter Simple Passphrase to log in to site

- + return ( +
+

+ Log In with HashPass +

+ +
+ setKeyString(e.target.value)} - className="w-full p-2 border rounded-md mb-3" - placeholder="Enter Simple Passphrase" + placeholder="Simple Passphrase" + className="w-full px-4 py-2 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-400 focus:border-transparent transition duration-200" /> - -
- ); + + +
+ ); } \ No newline at end of file diff --git a/extension/src/hashpass/app/site_signup_popup/page.tsx b/extension/src/hashpass/app/site_signup_popup/page.tsx index 811d35a..ba14703 100644 --- a/extension/src/hashpass/app/site_signup_popup/page.tsx +++ b/extension/src/hashpass/app/site_signup_popup/page.tsx @@ -17,9 +17,9 @@ export default function Site_Signup_Popup() { }, []); return ( -
- -
+
+ +
{domain}
diff --git a/extension/src/hashpass/app/site_signup_popup/site_signup_component.tsx b/extension/src/hashpass/app/site_signup_popup/site_signup_component.tsx index 44ac72c..3558dd1 100644 --- a/extension/src/hashpass/app/site_signup_popup/site_signup_component.tsx +++ b/extension/src/hashpass/app/site_signup_popup/site_signup_component.tsx @@ -5,77 +5,85 @@ import {calculatePassword} from '../security_components/components/password_gene import { parse } from "tldts"; export default function Site_SignUp() { - const UUID = "f98699a0-d010-4a68-833e-fc9cbbcdf800" - const userIdEncrypted = "DSvanR4myji5VmzC06OutTH+nsVUbcOc0pqP7iLPgePsrNj5obsMXkZd+yI9m6MRzf/Xeq921dzq73rvTi/zEQ==" - // valid simple pass for testing is Passpass@1 - - const [keyString, setKeyString] = useState(""); - - const handlePassEntry = async () => { - console.log("Generate password button clicked"); - console.log("Key String: " + keyString); - console.log("userIdEncrypted: " + userIdEncrypted) - - const decryptedText = await decrypt(userIdEncrypted, keyString); - console.log("Decrypted Data: " + decryptedText); - - if(decryptedText === UUID){ - console.log("Valid Simple passphrase: User Authenticated") + const UUID = "f98699a0-d010-4a68-833e-fc9cbbcdf800" + const userIdEncrypted = "DSvanR4myji5VmzC06OutTH+nsVUbcOc0pqP7iLPgePsrNj5obsMXkZd+yI9m6MRzf/Xeq921dzq73rvTi/zEQ==" + // valid simple pass for testing is Passpass@1 - const domain = parse(window.location.href).domain; - console.log("Parsed Domain:", domain); - try { - const response = await fetch("https://8fy84busdk.execute-api.us-east-1.amazonaws.com/API/insertDomainName", { - method: "POST", - headers: { - "Content-Type": "application/json" - }, - body: JSON.stringify({ - UUID, - domain - }) - }); - if (!response.ok) { - throw new Error("Failed to add domain to DB"); - } - const result = await response.json(); - console.log("Domain successfully added:", result); - } catch (err) { - console.error("Error adding domain:", err); - } + const [keyString, setKeyString] = useState(""); - const password = await calculatePassword(keyString); - console.log("Password String: ", password) - - chrome.runtime.sendMessage({ - action: "fillPassword", - passphrase: password - }, (response) => { - console.log("Message acknowledged by service worker", response); - }); - } - else{ - console.log("Invalid Simple Passphrase") + const handlePassEntry = async () => { + console.log("Generate password button clicked"); + console.log("Key String: " + keyString); + console.log("userIdEncrypted: " + userIdEncrypted) + + const decryptedText = await decrypt(userIdEncrypted, keyString); + console.log("Decrypted Data: " + decryptedText); + + if(decryptedText === UUID){ + console.log("Valid Simple passphrase: User Authenticated") + + const domain = parse(window.location.href).domain; + console.log("Parsed Domain:", domain); + try { + const response = await fetch("https://8fy84busdk.execute-api.us-east-1.amazonaws.com/API/insertDomainName", { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + UUID, + domain + }) + }); + if (!response.ok) { + throw new Error("Failed to add domain to DB"); } - }; + const result = await response.json(); + console.log("Domain successfully added:", result); + } catch (err) { + console.error("Error adding domain:", err); + } + + const password = await calculatePassword(keyString); + console.log("Password String: ", password) + + chrome.runtime.sendMessage({ + action: "fillPassword", + passphrase: password + }, (response) => { + console.log("Message acknowledged by service worker", response); + }); + } + else{ + console.log("Invalid Simple Passphrase") + } + }; - return ( -
-

Sign Up

-

Click the button to generate password for site

- - setKeyString(e.target.value)} - className="w-full p-2 border rounded-md mb-3" - placeholder="Enter Simple Passphrase" - /> - -
- ); + return ( +
+

+ Sign Up with HashPass +

+ +
+ + setKeyString(e.target.value)} + placeholder="Simple Passphrase" + className="w-full px-4 py-2 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-400 focus:border-transparent transition duration-200" + /> +
+ + +
+ ); } \ No newline at end of file diff --git a/extension/src/hashpass/package.json b/extension/src/hashpass/package.json index 84c3ccf..ad9ec2a 100644 --- a/extension/src/hashpass/package.json +++ b/extension/src/hashpass/package.json @@ -35,12 +35,13 @@ "@types/react": "^19", "@types/react-dom": "^19", "@types/ssh2": "^1.15.4", + "autoprefixer": "^10.4.21", "esbuild": "^0.25.0", "eslint": "^9", "eslint-config-next": "15.1.6", "jest": "^29.7.0", - "postcss": "^8", - "tailwindcss": "^3.4.1", + "postcss": "^8.5.3", + "tailwindcss": "^3.4.17", "ts-node": "^10.9.2", "typescript": "^5" } diff --git a/extension/src/hashpass/postcss.config.js b/extension/src/hashpass/postcss.config.js new file mode 100644 index 0000000..2e7af2b --- /dev/null +++ b/extension/src/hashpass/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/extension/src/hashpass/public/content.js b/extension/src/hashpass/public/content.js index d53830b..9f6bac4 100644 --- a/extension/src/hashpass/public/content.js +++ b/extension/src/hashpass/public/content.js @@ -1,16 +1,27 @@ // Function to inject a login popup into the page using the bundled TSX component function injectLoginPopup() { - const container = document.createElement('div'); - container.id = 'hashpass-login-popup'; - container.style.position = 'fixed'; - container.style.top = '20%'; - container.style.left = '50%'; - container.style.transform = 'translateX(-50%)'; - container.style.zIndex = '10000'; - document.body.appendChild(container); + const host = document.createElement('div'); + host.id = 'hashpass-login-popup'; + host.style.position = 'fixed'; + host.style.bottom = '40px'; + host.style.right = '40px'; + host.style.top = 'unset'; + host.style.left = 'unset'; + host.style.transform = 'none'; + host.style.zIndex = '10000'; + + const shadow = host.attachShadow({ mode: 'open' }); + const link = document.createElement('link'); + link.rel = 'stylesheet'; + link.href = chrome.runtime.getURL('tailwind.css'); + shadow.appendChild(link); + const reactContainer = document.createElement('div'); + shadow.appendChild(reactContainer); + + document.body.appendChild(host); if (window.Components && typeof window.Components.renderSiteLogIn === 'function') { - window.Components.renderSiteLogIn(container); + window.Components.renderSiteLogIn(reactContainer); } else { console.error('Login component function not available.'); } @@ -18,17 +29,28 @@ function injectLoginPopup() { // Function to inject a signup popup into the page using the bundled TSX component function injectSignupPopup() { - const container = document.createElement('div'); - container.id = 'hashpass-signup-popup'; - container.style.position = 'fixed'; - container.style.top = '20%'; - container.style.left = '50%'; - container.style.transform = 'translateX(-50%)'; - container.style.zIndex = '10000'; - document.body.appendChild(container); + const host = document.createElement('div'); + host.id = 'hashpass-signup-popup'; + host.style.position = 'fixed'; + host.style.bottom = '40px'; + host.style.right = '40px'; + host.style.top = 'unset'; + host.style.left = 'unset'; + host.style.transform = 'none'; + host.style.zIndex = '10000'; + + const shadow = host.attachShadow({ mode: 'open' }); + const link = document.createElement('link'); + link.rel = 'stylesheet'; + link.href = chrome.runtime.getURL('tailwind.css'); + shadow.appendChild(link); + const reactContainer = document.createElement('div'); + shadow.appendChild(reactContainer); + + document.body.appendChild(host); if (window.Components && typeof window.Components.renderSiteSignUp === 'function') { - window.Components.renderSiteSignUp(container); + window.Components.renderSiteSignUp(reactContainer); } else { console.error('Signup component function not available.'); } diff --git a/extension/src/hashpass/public/dist/components.bundle.js b/extension/src/hashpass/public/dist/components.bundle.js index fb82818..8108e9a 100644 --- a/extension/src/hashpass/public/dist/components.bundle.js +++ b/extension/src/hashpass/public/dist/components.bundle.js @@ -65138,22 +65138,22 @@ var Components = (() => { console.log("Invalid Simple Passphrase"); } }; - return /* @__PURE__ */ import_react2.default.createElement("div", { className: "max-w-md mx-auto p-6 bg-white shadow-lg rounded-xl" }, /* @__PURE__ */ import_react2.default.createElement("h2", { className: "text-xl font-bold mb-4" }, "Enter Simple Passphrase to log in to site"), /* @__PURE__ */ import_react2.default.createElement("label", { className: "block text-sm font-medium text-gray-700" }, "Simple Passphrase:"), /* @__PURE__ */ import_react2.default.createElement( + return /* @__PURE__ */ import_react2.default.createElement("div", { className: "w-[350px] mt-4 p-6 bg-white shadow-2xl rounded-2xl relative" }, /* @__PURE__ */ import_react2.default.createElement("h2", { className: "text-2xl font-semibold text-gray-800 mb-6 text-center" }, "Log In with HashPass"), /* @__PURE__ */ import_react2.default.createElement("div", { className: "mb-5" }, /* @__PURE__ */ import_react2.default.createElement("label", { className: "block text-sm font-medium text-gray-600 mb-2" }, "Enter your passphrase:"), /* @__PURE__ */ import_react2.default.createElement( "input", { type: "text", value: keyString, onChange: (e3) => setKeyString(e3.target.value), - className: "w-full p-2 border rounded-md mb-3", - placeholder: "Enter Simple Passphrase" + placeholder: "Simple Passphrase", + className: "w-full px-4 py-2 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-400 focus:border-transparent transition duration-200" } - ), /* @__PURE__ */ import_react2.default.createElement( + )), /* @__PURE__ */ import_react2.default.createElement( "button", { onClick: handlePassEntry, - className: "w-full bg-blue-500 text-white p-2 rounded-md hover:bg-blue-600" + className: "w-full bg-gradient-to-r from-blue-500 to-indigo-500 text-white py-2 rounded-lg font-medium hover:from-blue-600 hover:to-indigo-600 transition duration-300" }, - "Generate Password to Login" + "Generate Password & Login" )); } @@ -65640,22 +65640,22 @@ var Components = (() => { console.log("Invalid Simple Passphrase"); } }; - return /* @__PURE__ */ import_react4.default.createElement("div", { className: "w-64 p-4 bg-white shadow-lg rounded-lg text-center" }, /* @__PURE__ */ import_react4.default.createElement("h2", { className: "text-lg font-semibold mb-2" }, "Sign Up"), /* @__PURE__ */ import_react4.default.createElement("p", { className: "text-sm text-gray-600 mb-4" }, "Click the button to generate password for site"), /* @__PURE__ */ import_react4.default.createElement("label", { className: "block text-sm font-medium text-gray-700" }, "Simple Passphrase:"), /* @__PURE__ */ import_react4.default.createElement( + return /* @__PURE__ */ import_react4.default.createElement("div", { className: "w-[350px] mt-4 p-6 bg-white shadow-2xl rounded-2xl relative" }, /* @__PURE__ */ import_react4.default.createElement("h2", { className: "text-2xl font-semibold text-gray-800 mb-6 text-center" }, "Sign Up with HashPass"), /* @__PURE__ */ import_react4.default.createElement("div", { className: "mb-5" }, /* @__PURE__ */ import_react4.default.createElement("label", { className: "block text-sm font-medium text-gray-600 mb-2" }, "Enter your passphrase:"), /* @__PURE__ */ import_react4.default.createElement( "input", { type: "text", value: keyString, onChange: (e3) => setKeyString(e3.target.value), - className: "w-full p-2 border rounded-md mb-3", - placeholder: "Enter Simple Passphrase" + placeholder: "Simple Passphrase", + className: "w-full px-4 py-2 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-400 focus:border-transparent transition duration-200" } - ), /* @__PURE__ */ import_react4.default.createElement( + )), /* @__PURE__ */ import_react4.default.createElement( "button", { onClick: handlePassEntry, - className: "w-full bg-blue-500 text-white p-2 rounded-md hover:bg-blue-600" + className: "w-full bg-gradient-to-r from-blue-500 to-indigo-500 text-white py-2 rounded-lg font-medium hover:from-blue-600 hover:to-indigo-600 transition duration-300" }, - "Generate Password to Login" + "Generate Password to Sign Up" )); } diff --git a/extension/src/hashpass/public/logo/logo.png b/extension/src/hashpass/public/logo/logo.png new file mode 100644 index 0000000..eca91f8 Binary files /dev/null and b/extension/src/hashpass/public/logo/logo.png differ diff --git a/extension/src/hashpass/public/manifest.json b/extension/src/hashpass/public/manifest.json index a7c2588..2ed06d1 100644 --- a/extension/src/hashpass/public/manifest.json +++ b/extension/src/hashpass/public/manifest.json @@ -20,12 +20,17 @@ } ], "action": { - "default_popup": "popup/index.html" + "default_popup": "popup/index.html", + "default_icon": { + "16": "logo/logo.png", + "48": "logo/logo.png", + "128": "logo/logo.png" + } }, "options_page": "login/index.html", "web_accessible_resources": [ { - "resources": ["dashboard/index.html"], + "resources": ["dashboard/index.html", "tailwind.css"], "matches": [""] } ], diff --git a/extension/src/hashpass/public/tailwind.css b/extension/src/hashpass/public/tailwind.css new file mode 100644 index 0000000..baed259 --- /dev/null +++ b/extension/src/hashpass/public/tailwind.css @@ -0,0 +1 @@ +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mt-16{margin-top:4rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-64{width:16rem}.w-full{width:100%}.max-w-md{max-width:28rem}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from:#3b82f6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(59,130,246,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-indigo-500{--tw-gradient-to:#6366f1 var(--tw-gradient-to-position)}.to-indigo-600{--tw-gradient-to:#4f46e5 var(--tw-gradient-to-position)}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-2xl,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.hover\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}.hover\:from-blue-600:hover{--tw-gradient-from:#2563eb var(--tw-gradient-from-position);--tw-gradient-to:rgba(37,99,235,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:to-indigo-600:hover{--tw-gradient-to:#4f46e5 var(--tw-gradient-to-position)}.focus\:border-transparent:focus{border-color:transparent}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-blue-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(96 165 250/var(--tw-ring-opacity,1))} \ No newline at end of file diff --git a/extension/src/hashpass/tailwind.config.js b/extension/src/hashpass/tailwind.config.js new file mode 100644 index 0000000..49862c2 --- /dev/null +++ b/extension/src/hashpass/tailwind.config.js @@ -0,0 +1,10 @@ +module.exports = { + content: [ + "./app/**/*.{js,ts,jsx,tsx}", + "./components/**/*.{js,ts,jsx,tsx}", + ], + theme: { + extend: {}, + }, + plugins: [], +}; diff --git a/extension/src/hashpass/tailwind.css b/extension/src/hashpass/tailwind.css new file mode 100644 index 0000000..bd6213e --- /dev/null +++ b/extension/src/hashpass/tailwind.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; \ No newline at end of file