Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Main patient home layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrco committed Jan 7, 2024
1 parent 1fca02e commit bb4099d
Show file tree
Hide file tree
Showing 8 changed files with 232 additions and 110 deletions.
201 changes: 104 additions & 97 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"preview": "vite preview"
},
"dependencies": {
"firebase": "^10.7.1",
"@splinetool/react-spline": "^2.2.6",
"@splinetool/runtime": "^1.0.18",
"axios": "^1.6.5",
"firebase": "^10.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.21.1"
Expand Down
60 changes: 50 additions & 10 deletions frontend/src/views/patient/PatientHome.jsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,60 @@
import Navbar from "./components/Navbar";
import RecordButton from "./components/RecordButton";
import Ai3D from './components/Ai3D';
import Conversation from './components/Conversation';
import Exercises from './components/Exercises';

const PatientHome = () => {
const messages = [
{
sender: 'patient',
text: 'Hi there, and I was hoping to try something new today. Can you guide me through a specific exercise from the set you provided?',
},
{
sender: 'ai',
text: "Of course! I'm glad to hear you've been keeping up with your exercises. Which one were you thinking of trying, or do you have a specific area you'd like to focus on today?",
},
{
sender: 'patient',
text: 'Hi there, and I was hoping to try something new today. Can you guide me through a specific exercise from the set you provided?',
},
{
sender: 'ai',
text: "Of course! I'm glad to hear you've been keeping up with your exercises. Which one were you thinking of trying, or do you have a specific area you'd like to focus on today?",
},
];

return (
<div className="min-h-screen bg-blue-100">
<div className="flex flex-col h-screen">
<Navbar />
<main className="p-6">
<h1 className="text-2xl font-semibold mb-4">
Welcome to Your Home Page
</h1>
<p className="text-gray-700">
Here you can find your daily routines, track your progress, and manage
your health journey.
</p>
<RecordButton />
<main className="flex-grow p-6 overflow-hidden">
<div className="flex h-full">
<div className="w-1/2 flex flex-col justify-between h-full">
<header>
<h1 className="text-4xl font-medium">Welcome Back</h1>
<div className="text-3xl">John</div>
</header>
<Conversation messages={messages} />
<form className="flex items-center">
<input
type="text"
placeholder="You can type here..."
className="input input-bordered w-full max-w-xs mr-2"
/>
<button className="btn btn-neutral">Prompt</button>
</form>
</div>
<div className="w-1/2">
<Exercises />
</div>
</div>
</main>
<RecordButton />
<div className="relative">
<div className="absolute bottom-8 left-1/2 transform -translate-x-1/2">
<Ai3D />
</div>
</div>
</div>
);
};
Expand Down
Loading

0 comments on commit bb4099d

Please sign in to comment.