forked from matijagrcic/azurechatgpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
135 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
import Typography from "@/components/typography"; | ||
import { Card } from "@/components/ui/card"; | ||
import { NewChat } from "@/features/chat/chat-menu/new-chat"; | ||
|
||
export default async function NotFound() { | ||
return ( | ||
<Card className="h-full items-center flex flex-col gap-4 justify-center"> | ||
<div className="text-center"> | ||
<Typography className="" variant="h3"> | ||
Uh-oh! 404 | ||
</Typography> | ||
<div className="text-muted-foreground text-sm"> | ||
How about we start a new chat? | ||
<div className="flex w-full items-center container mx-auto max-w-2xl justify-center h-full gap-2"> | ||
<div className="flex flex-col gap-2 flex-1 items-start"> | ||
<img | ||
alt="Bubble gum man not found" | ||
src="/bubble-gum-man-not-found.png" | ||
className="" | ||
/> | ||
</div> | ||
<div className="gap-5 flex flex-col items-start flex-1"> | ||
<h2 className="text-4xl font-bold"> Uh-oh! 404</h2> | ||
<p className="text-sm text-muted-foreground"> | ||
How about we start a new chat? | ||
</p> | ||
<NewChat /> | ||
</div> | ||
</div> | ||
<NewChat></NewChat> | ||
</Card> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,81 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
:root { | ||
--background: 0 0% 100%; | ||
--foreground: 222.2 84% 4.9%; | ||
|
||
--muted: 210 40% 96.1%; | ||
--muted-foreground: 215.4 16.3% 46.9%; | ||
|
||
--popover: 0 0% 100%; | ||
--popover-foreground: 222.2 84% 4.9%; | ||
|
||
--card: 0 0% 100%; | ||
--card-foreground: 222.2 84% 4.9%; | ||
|
||
--border: 214.3 31.8% 91.4%; | ||
--input: 214.3 31.8% 91.4%; | ||
|
||
--primary: 222.2 47.4% 11.2%; | ||
--primary-foreground: 210 40% 98%; | ||
|
||
--secondary: 210 40% 96.1%; | ||
--secondary-foreground: 222.2 47.4% 11.2%; | ||
|
||
--accent: 210 40% 96.1%; | ||
--accent-foreground: 222.2 47.4% 11.2%; | ||
|
||
--destructive: 0 84.2% 60.2%; | ||
--destructive-foreground: 210 40% 98%; | ||
|
||
--ring: 215 20.2% 65.1%; | ||
|
||
--radius: 0.5rem; | ||
|
||
--brand: 210 94% 49%; | ||
} | ||
|
||
.dark { | ||
--background: 222.2 84% 4.9%; | ||
--foreground: 210 40% 98%; | ||
|
||
--muted: 217.2 32.6% 17.5%; | ||
--muted-foreground: 215 20.2% 65.1%; | ||
|
||
--popover: 222.2 84% 4.9%; | ||
--popover-foreground: 210 40% 98%; | ||
|
||
--card: 222.2 84% 4.9%; | ||
--card-foreground: 210 40% 98%; | ||
|
||
--border: 217.2 32.6% 17.5%; | ||
--input: 217.2 32.6% 17.5%; | ||
|
||
--primary: 210 40% 98%; | ||
--primary-foreground: 222.2 47.4% 11.2%; | ||
|
||
--secondary: 217.2 32.6% 17.5%; | ||
--secondary-foreground: 210 40% 98%; | ||
|
||
--accent: 217.2 32.6% 17.5%; | ||
--accent-foreground: 210 40% 98%; | ||
|
||
--destructive: 0 62.8% 30.6%; | ||
--destructive-foreground: 0 85.7% 97.3%; | ||
|
||
--ring: 217.2 32.6% 17.5%; | ||
--brand: 210 94% 49%; | ||
} | ||
} | ||
|
||
@layer base { | ||
* { | ||
@apply border-border; | ||
} | ||
body { | ||
@apply bg-background text-foreground; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; | ||
import { FC } from "react"; | ||
import { ChatType } from "../chat-services/models"; | ||
interface Prop { | ||
onValueChange: (value: ChatType) => void; | ||
} | ||
export const EmptyState: FC<Prop> = (props) => { | ||
return ( | ||
<div className="flex w-full items-center container mx-auto max-w-2xl justify-center h-full gap-2"> | ||
<div className="flex flex-col gap-2 flex-1 items-start"> | ||
<img | ||
alt="Bubble gum cycling" | ||
src="/bubble-gum-cycling.png" | ||
className="" | ||
/> | ||
</div> | ||
<div className="gap-5 flex flex-col items-start flex-1"> | ||
<h2 className="text-4xl font-bold">Hello</h2> | ||
<p className="text-sm text-muted-foreground"> | ||
Start by just typing your message in the box below. You can also | ||
personalise the chat by making changes to the settings. | ||
</p> | ||
<Tabs | ||
defaultValue={"GPT-3.5"} | ||
onValueChange={(value) => props.onValueChange(value as ChatType)} | ||
> | ||
<TabsList className="grid w-full grid-cols-2 h-12 items-stretch"> | ||
<TabsTrigger value="GPT-3.5">⚡ GPT-3.5</TabsTrigger> | ||
<TabsTrigger value="GPT-4">✨ GPT-4</TabsTrigger> | ||
</TabsList> | ||
</Tabs> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters