By signing up you agree to our
Terms of Service
diff --git a/website/src/pages/dashboard.tsx b/website/src/pages/dashboard.tsx
new file mode 100644
index 00000000..018227af
--- /dev/null
+++ b/website/src/pages/dashboard.tsx
@@ -0,0 +1,37 @@
+import { Box, useColorMode } from "@chakra-ui/react";
+import Head from "next/head";
+import { Header } from "src/components/Header";
+import { LeaderboardWidget, SideMenu, TaskOption } from "src/components/Widgets";
+import { colors } from "styles/Theme/colors";
+
+const Dashboard = () => {
+ const { colorMode } = useColorMode();
+ return (
+ <>
+
+
Dashboard - Open Assistant
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ );
+};
+
+Dashboard.getLayout = (page) => (
+
+
+ {page}
+
+);
+
+export default Dashboard;
diff --git a/website/src/pages/evaluate/rank_user_replies.tsx b/website/src/pages/evaluate/rank_user_replies.tsx
index 250b17fc..3f806a8a 100644
--- a/website/src/pages/evaluate/rank_user_replies.tsx
+++ b/website/src/pages/evaluate/rank_user_replies.tsx
@@ -1,7 +1,9 @@
import { useColorMode } from "@chakra-ui/react";
import Head from "next/head";
import { useState } from "react";
+import { ContextMessages } from "src/components/ContextMessages";
import { LoadingScreen } from "src/components/Loading/LoadingScreen";
+import { Message } from "src/components/Messages";
import { Sortable } from "src/components/Sortable/Sortable";
import { SurveyCard } from "src/components/Survey/SurveyCard";
import { TaskControls } from "src/components/Survey/TaskControls";
@@ -9,8 +11,6 @@ import fetcher from "src/lib/fetcher";
import poster from "src/lib/poster";
import useSWRImmutable from "swr/immutable";
import useSWRMutation from "swr/mutation";
-import { Message } from "src/components/Messages";
-import { ContextMessages } from "src/components/ContextMessages";
const RankUserReplies = () => {
const [tasks, setTasks] = useState([]);
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx
index 08528245..04f99829 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -1,16 +1,10 @@
import Head from "next/head";
-import { useSession } from "next-auth/react";
import { CallToAction } from "src/components/CallToAction";
import { Faq } from "src/components/Faq";
-import { Footer } from "src/components/Footer";
-import { Header } from "src/components/Header";
import { Hero } from "src/components/Hero";
import { getTransparentHeaderLayout } from "src/components/Layout";
-import { TaskSelection } from "src/components/TaskSelection";
const Home = () => {
- const { data: session } = useSession();
-
return (
<>
@@ -20,15 +14,11 @@ const Home = () => {
content="Conversational AI for everyone. An open source project to create a chat enabled GPT LLM run by LAION and contributors around the world."
/>
- {session ? (
-
- ) : (
-
-
-
-
-
- )}
+
+
+
+
+
>
);
};
diff --git a/website/styles/Theme/Components/Container.tsx b/website/styles/Theme/Components/Container.tsx
new file mode 100644
index 00000000..ec7eeed9
--- /dev/null
+++ b/website/styles/Theme/Components/Container.tsx
@@ -0,0 +1,25 @@
+import {
+ color,
+ defineStyle,
+ defineStyleConfig,
+ // transition,
+} from "@chakra-ui/styled-system";
+import { colors } from "../colors";
+
+const baseStyle = defineStyle(({ colorMode }) => ({
+ minWidth: "100%",
+ bg: colorMode === "light" ? colors.light.bg : colors.dark.bg,
+ // transition: "background-color 300ms cubic-bezier(0.4, 0, 1, 1)",
+ color: colorMode === "light" ? colors.light.text : colors.dark.text,
+}));
+
+const variants = {
+ "no-padding": {
+ padding: 0,
+ },
+};
+
+export const containerTheme = defineStyleConfig({
+ baseStyle,
+ variants,
+});
diff --git a/website/styles/Theme/colors.tsx b/website/styles/Theme/colors.tsx
new file mode 100644
index 00000000..acadfa2b
--- /dev/null
+++ b/website/styles/Theme/colors.tsx
@@ -0,0 +1,14 @@
+export const colors = {
+ light: {
+ bg: "gray.100",
+ btn: "gray.50",
+ div: "white",
+ text: "black",
+ },
+ dark: {
+ bg: "gray.900",
+ btn: "gray.600",
+ div: "gray.700",
+ text: "gray.200",
+ },
+};
diff --git a/website/styles/Theme/index.tsx b/website/styles/Theme/index.tsx
new file mode 100644
index 00000000..9e9b0d82
--- /dev/null
+++ b/website/styles/Theme/index.tsx
@@ -0,0 +1,68 @@
+import {
+ type ThemeConfig,
+ extendTheme,
+ usePrefersReducedMotion,
+} from "@chakra-ui/react";
+import { containerTheme } from "./Components/Container";
+import { StyleFunctionProps, Styles } from "@chakra-ui/theme-tools";
+
+const config: ThemeConfig = {
+ initialColorMode: "system",
+ useSystemColorMode: false,
+ disableTransitionOnChange: true,
+};
+
+const components = {
+ Container: containerTheme,
+ Box: (props: StyleFunctionProps) => ({
+ backgroundColor: props.colorMode === "light" ? "white" : "gray.800",
+ }),
+ Button: {
+ baseStyle: {
+ fontWeight: "normal",
+ },
+ sizes: {
+ lg: {
+ fontSize: "md",
+ paddingY: "7",
+ },
+ },
+ variants: {
+ solid: (props: StyleFunctionProps) => ({
+ bg: props.colorMode === "light" ? "gray.100" : "gray.600",
+ _hover: {
+ bg: props.colorMode === "light" ? "gray.200" : "#3D4A60",
+ },
+ _active: {
+ bg: props.colorMode === "light" ? "gray.300" : "#374254",
+ },
+ borderRadius: "lg",
+ }),
+ // gradient: (props: StyleFunctionProps) => ({
+ // bg: `linear-gradient(${white}, ${bgColor}) padding-box,
+ // linear-gradient(135deg, ${lgFrom}, ${lgTo}) border-box`,
+ // }),
+ },
+ },
+};
+
+const breakpoints = {
+ sm: "640px",
+ md: "768px",
+ lg: "1024px",
+ xl: "1280px",
+ "2xl": "1536px",
+};
+
+const styles = {
+ global: (props) => ({
+ main: {
+ fontFamily: "Inter",
+ },
+ header: {
+ fontFamily: "Inter",
+ },
+ }),
+};
+
+export const theme = extendTheme({ config, styles, components, breakpoints });