diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..cbb41ab
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,6 @@
+{
+ "name": "AlignmentSearch",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {}
+}
diff --git a/web/src/components/about.tsx b/web/src/components/about.tsx
new file mode 100644
index 0000000..d83df48
--- /dev/null
+++ b/web/src/components/about.tsx
@@ -0,0 +1,65 @@
+
+import React, { useState } from "react";
+
+const Footer: React.FC = () => {
+ const [isContentVisible, setIsContentVisible] = useState(false);
+
+ const toggleContentVisibility = () => {
+ setIsContentVisible(!isContentVisible);
+ };
+
+ return (
+
+ );
+};
+
+export default Footer;
\ No newline at end of file
diff --git a/web/src/components/header.tsx b/web/src/components/header.tsx
new file mode 100644
index 0000000..0e53931
--- /dev/null
+++ b/web/src/components/header.tsx
@@ -0,0 +1,30 @@
+import React from "react";
+import Link from "next/link";
+import About from "./about";
+
+const Header: React.FC<{ page: "index" | "semantic" }> = ({ page }) => {
+ const sidebar = page === "index" ? (
+
+ Conversational Agent Semantic Search
Conversational Agent
- Semantic Search - - ) : ( - - Conversational Agent -Semantic Search
- - ); - - return (<> -- This site has been created by McGill students Henri Lemoine, Fraser Lee, and Thomas Lemoine - as an attempt to create a "conversational FAQ" that can answer questions about AI alignment. - When asked a question, we -
-- We've created this as an attempt on the $5k bounty for a LW conversational agent. -
-- We hope that it can be a useful tool for the community, and we're eager to hear feedback and suggestions. - For a technical report on our implemention, see our LessWrong post. -
- >); -}; - -export default Header; diff --git a/web/src/pages/index.tsx b/web/src/pages/index.tsx index 6f6e397..12d2dae 100644 --- a/web/src/pages/index.tsx +++ b/web/src/pages/index.tsx @@ -5,8 +5,8 @@ import React from "react"; import { type NextPage } from "next"; import { useState } from "react"; -import Header from "../header"; -import SearchBox from "../searchbox"; +import Header from "../components/header"; +import SearchBox from "../components/searchbox"; type Citation = { title: string; diff --git a/web/src/pages/semantic.tsx b/web/src/pages/semantic.tsx index dc49649..beb63af 100644 --- a/web/src/pages/semantic.tsx +++ b/web/src/pages/semantic.tsx @@ -3,8 +3,8 @@ const API_URL = process.env.NEXT_PUBLIC_API_URL || "http://127.0.0.1:3000"; import { type NextPage } from "next"; import React from "react"; import Head from "next/head"; -import Header from "../header"; -import SearchBox from "../searchbox"; +import Header from "../components/header"; +import SearchBox from "../components/searchbox"; import { useState } from "react"; const Semantic: NextPage = () => { diff --git a/web/src/styles/globals.css b/web/src/styles/globals.css index f304db2..e6fa162 100644 --- a/web/src/styles/globals.css +++ b/web/src/styles/globals.css @@ -2,6 +2,11 @@ @tailwind components; @tailwind utilities; +body{ + @apply min-h-screen; /* full height of viewport */ + font-family: warnock-pro, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif; +} + h1 { @apply text-4xl font-bold my-4; } @@ -27,12 +32,6 @@ p { @apply my-2; } -button { - @apply bg-white hover:bg-gray-300 px-0.5 py-0 w-fit h-fit; - @apply border border-gray-300; - @apply text-gray-700; -} - ol { @apply list-decimal; }