Skip to content

Commit 6380a0c

Browse files
authored
Merge pull request #126 from codeforpdx/issue-125/disclaimer-page
Feature: Disclaimer Page
2 parents 5a29db7 + e3777c1 commit 6380a0c

File tree

5 files changed

+515
-24
lines changed

5 files changed

+515
-24
lines changed

frontend/src/About.tsx

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,10 @@
1-
import { useNavigate } from "react-router-dom";
1+
import BackLink from "./shared/components/BackLink";
22

33
export default function About() {
4-
const navigate = useNavigate();
5-
64
return (
7-
<div className="flex items-center h-dvh pt-16 sm:pt-0">
5+
<div className="flex items-center pt-16 sm:mt-26 sm:pt-0">
86
<div className="relative max-w-2xl m-auto p-8 bg-[#F4F4F2] rounded-lg shadow-md">
9-
<button
10-
className="absolute top-4 left-4 flex text-[#4a90e2] hover:text-[#3a7bc8] font-semibold cursor-pointer"
11-
onClick={() => navigate(-1)}
12-
aria-label="Go back"
13-
>
14-
<svg
15-
className="w-6 h-6 mr-2"
16-
fill="none"
17-
stroke="currentColor"
18-
strokeWidth={2}
19-
viewBox="0 0 24 24"
20-
>
21-
<path
22-
strokeLinecap="round"
23-
strokeLinejoin="round"
24-
d="M15 19l-7-7 7-7"
25-
/>
26-
</svg>
27-
Back
28-
</button>
7+
<BackLink />
298
<p className="my-6">
309
<strong>Tenant First Aid</strong> is an AI-powered chatbot designed to
3110
help tenants navigate rental issues, answer questions, and provides

frontend/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Chat from "./Chat";
33
import About from "./About";
44
import SessionContextProvider from "./contexts/SessionContext";
55
import Navbar from "./pages/Chat/components/Navbar";
6+
import Disclaimer from "./Disclaimer";
67

78
export default function App() {
89
return (
@@ -12,6 +13,7 @@ export default function App() {
1213
<Routes>
1314
<Route path="/" element={<Chat />} />
1415
<Route path="/about" element={<About />} />
16+
<Route path="/disclaimer" element={<Disclaimer />} />
1517
</Routes>
1618
</Router>
1719
</SessionContextProvider>

0 commit comments

Comments
 (0)