diff --git a/cache/solidity-files-cache.json b/cache/solidity-files-cache.json new file mode 100644 index 0000000..8448463 --- /dev/null +++ b/cache/solidity-files-cache.json @@ -0,0 +1,14 @@ +{ + "_format": "ethers-rs-sol-cache-3", + "paths": { + "artifacts": "out", + "build_infos": "out/build-info", + "sources": "src", + "tests": "test", + "scripts": "script", + "libraries": [ + "lib" + ] + }, + "files": {} +} \ No newline at end of file diff --git a/package.json b/package.json index 7f58dcb..3916edf 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@types/react-dom": "^18.0.0", "axios": "^1.5.0", "dompurify": "^3.0.5", + "lodash": "^4.17.21", "lottie-web": "^5.12.2", "openai": "^4.6.0", "openai-fetch": "^1.6.3", @@ -22,6 +23,7 @@ "react-dom": "^18.2.0", "react-markdown": "^8.0.7", "react-scripts": "5.0.1", + "tailwindcss": "^3.3.5", "typescript": "^4.4.2", "web-vitals": "^2.1.0" }, diff --git a/src/App.css b/src/App.css deleted file mode 100644 index 8ea1444..0000000 --- a/src/App.css +++ /dev/null @@ -1,87 +0,0 @@ -@import url('https://fonts.googleapis.com/css2?family=San+Francisco+Pro:wght@400;600&display=swap'); - -.App { - display: flex; - justify-content: center; /* Adjusted to flex-start to allow content to start from the top */ - align-items: center; - min-height: 100vh; /* Adjusted to min-height to allow the content to grow beyond the viewport height */ - background-color: #f0f0f0; - font-family: 'San Francisco Pro', sans-serif; - padding-top: 20px; /* Added padding at the top to give some space */ -} - -.rectangle { - width: 90%; - max-width: 400px; - max-height: 80vh; /* Set a max-height to allow for scrolling */ - overflow-y: auto; /* Allow vertical scrolling */ - background-color: #fff; - border-radius: 25px; - box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05); - padding: 20px; - display: flex; - flex-direction: column; - gap: 20px; - text-align: center; - margin: 20px; -} - -.text-input { - padding: 14px; - border-radius: 14px; - border: 1px solid #e5e5e5; - font-size: 16px; - width: 100%; - box-sizing: border-box; - outline: none; - -webkit-appearance: none; -} - -@keyframes fadeIn { - from { - opacity: 0; - } - to { - opacity: 1; - } -} - -.output-window { - padding: 0px; - border-radius: 14px; - overflow-y: auto; - word-break: break-word; - text-align: left; - border-color: #373738; - color: #e5e5e5; -} - - -/* Smoothing out input field for iOS */ -.text-input:focus { - border-color: #007aff; -} - -/* Dark mode styles for iOS */ -@media (prefers-color-scheme: dark) { - .App { - background-color: #000; - } - - .rectangle { - background-color: #1c1c1e; - } - - .text-input{ - background-color: #2c2c2e; - border-color: #373738; - color: #e5e5e5; - } - .text-input{ - animation: fadeIn 2s ease-in-out; /* Fade-in effect on load */ - } - - .text-input:focus { - border-color: #0a84ff; - } -} diff --git a/src/App.tsx b/src/App.tsx index f5c15d3..313a9b6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react'; import lottie from 'lottie-web'; -import './App.css'; import { OpenAIClient } from 'openai-fetch'; import DOMpurify from 'dompurify'; @@ -10,9 +9,44 @@ const client = new OpenAIClient({ apiKey: process.env.REACT_APP_OPENAI_API_KEY, }); +interface User { + name: string; + email: string; + location: string; + } + +// Define the UserInfoTab component here or import it if it's in a separate file +const UserInfoTab: React.FC<{ user: User }> = ({ user }) => { + // State to track if the extra information is visible + const [isInfoVisible, setIsInfoVisible] = useState(false); + + // Function to toggle the visibility of the extra information + const toggleInfo = () => { + setIsInfoVisible(!isInfoVisible); + }; + + return ( +
Email: {user.email}
+Location: {user.location}
+