diff --git a/website/src/components/Loading/LoadingScreen.jsx b/website/src/components/Loading/LoadingScreen.jsx
index 57323f8c..56e9edcb 100644
--- a/website/src/components/Loading/LoadingScreen.jsx
+++ b/website/src/components/Loading/LoadingScreen.jsx
@@ -1,12 +1,12 @@
-import { Progress } from "@chakra-ui/react";
+import { Container, Progress } from "@chakra-ui/react";
export const LoadingScreen = ({ text }) => (
-
+
);
diff --git a/website/src/components/TwoColumns.tsx b/website/src/components/TwoColumns.tsx
index 5792f7d0..e3f59433 100644
--- a/website/src/components/TwoColumns.tsx
+++ b/website/src/components/TwoColumns.tsx
@@ -1,14 +1,17 @@
+import { Container, useColorModeValue } from "@chakra-ui/react";
+
+
export const TwoColumns = ({ children }: { children: React.ReactNode[] }) => {
if (!Array.isArray(children) || children.length !== 2) {
throw new Error("TwoColumns expects 2 children");
}
-
+ const bg = useColorModeValue("white", "gray.700")
const [first, second] = children;
return (
-
+
+ {first}
+ {second}
+
);
};
diff --git a/website/src/pages/create/assistant_reply.tsx b/website/src/pages/create/assistant_reply.tsx
index a7f058f8..e60fde66 100644
--- a/website/src/pages/create/assistant_reply.tsx
+++ b/website/src/pages/create/assistant_reply.tsx
@@ -1,4 +1,4 @@
-import { Textarea } from "@chakra-ui/react";
+import { Container, Textarea } from "@chakra-ui/react";
import { useRef, useState } from "react";
import useSWRMutation from "swr/mutation";
import useSWRImmutable from "swr/immutable";
@@ -45,12 +45,12 @@ const AssistantReply = () => {
}
if (tasks.length == 0) {
- return No tasks found...
;
+ return No tasks found...;
}
const task = tasks[0].task;
return (
-
+
<>
Reply as the assistant
@@ -78,7 +78,7 @@ const AssistantReply = () => {
-
+
);
};
diff --git a/website/src/pages/create/user_reply.tsx b/website/src/pages/create/user_reply.tsx
index 18427c71..3b8adedd 100644
--- a/website/src/pages/create/user_reply.tsx
+++ b/website/src/pages/create/user_reply.tsx
@@ -1,4 +1,4 @@
-import { Textarea } from "@chakra-ui/react";
+import { Container, Textarea, useColorModeValue } from "@chakra-ui/react";
import { useRef, useState } from "react";
import useSWRMutation from "swr/mutation";
import useSWRImmutable from "swr/immutable";
@@ -12,6 +12,7 @@ import { LoadingScreen } from "@/components/Loading/LoadingScreen";
const UserReply = () => {
const [tasks, setTasks] = useState([]);
+ const bg = useColorModeValue("white", "gray.400");
const inputRef = useRef(null);
@@ -45,12 +46,12 @@ const UserReply = () => {
}
if (tasks.length == 0) {
- return No tasks found...
;
+ return No tasks found...;
}
const task = tasks[0].task;
return (
-
+
<>
Reply as a user
@@ -61,7 +62,7 @@ const UserReply = () => {
-
+
Prompt
{tasks[0].id}
@@ -78,8 +79,8 @@ const UserReply = () => {
Submit
-
-
+
+
);
};
diff --git a/website/src/pages/evaluate/rank_initial_prompts.tsx b/website/src/pages/evaluate/rank_initial_prompts.tsx
index 1c7ac361..63568023 100644
--- a/website/src/pages/evaluate/rank_initial_prompts.tsx
+++ b/website/src/pages/evaluate/rank_initial_prompts.tsx
@@ -10,6 +10,7 @@ import poster from "src/lib/poster";
import { Button } from "src/components/Button";
import { LoadingScreen } from "@/components/Loading/LoadingScreen";
+import { Container, useColorModeValue } from "@chakra-ui/react";
const RankInitialPrompts = () => {
const [tasks, setTasks] = useState([]);
@@ -18,6 +19,7 @@ const RankInitialPrompts = () => {
* The best prompt will have index 0, and the worst is the last.
*/
const [ranking, setRanking] = useState([]);
+ const bg = useColorModeValue("gray.100", "gray.800")
const { isLoading } = useSWRImmutable("/api/new_task/rank_initial_prompts", fetcher, {
onSuccess: (data) => {
@@ -50,7 +52,7 @@ const RankInitialPrompts = () => {
}
if (tasks.length == 0) {
- return No tasks found...
;
+ return No tasks found...;
}
const prompts = tasks[0].task.prompts as string[];
@@ -65,8 +67,8 @@ const RankInitialPrompts = () => {
Rank Initial Prompts
-
-
+
+
Instructions
Given the following prompts, sort them from best to worst, best being first, worst being last.
@@ -94,7 +96,7 @@ const RankInitialPrompts = () => {
))}
-
+
@@ -115,7 +117,7 @@ const RankInitialPrompts = () => {
-
+
>
);
};