🔥 Mobile god

This commit is contained in:
Asim Shrestha
2023-04-08 10:13:25 -07:00
parent b1fc5bc1bb
commit a8ac614f22
4 changed files with 29 additions and 17 deletions

View File

@@ -32,7 +32,7 @@ const ChatWindow = ({ messages, children, className }: ChatWindowProps) => {
> >
<MacWindowHeader /> <MacWindowHeader />
<div <div
className="mb-3 mr-3 h-[10em] overflow-y-auto 2xl:h-[20em] " className="mb-3 mr-3 h-[10em] overflow-y-auto sm-h:h-[15em] md-h:h-[20em] lg-h:h-[30em] "
ref={scrollRef} ref={scrollRef}
> >
{messages.map((message, index) => ( {messages.map((message, index) => (
@@ -40,7 +40,11 @@ const ChatWindow = ({ messages, children, className }: ChatWindowProps) => {
))} ))}
{children} {children}
{messages.length != 0 ? (
<ChatMessage message={{ type: "thinking", value: "" }} /> <ChatMessage message={{ type: "thinking", value: "" }} />
) : (
""
)}
</div> </div>
</div> </div>
); );

View File

@@ -1,20 +1,17 @@
import { FaGithub } from "react-icons/fa"; import { FaGithub } from "react-icons/fa";
import PopIn from "./motions/popin";
import { AnimatePresence } from "framer-motion"; import { AnimatePresence } from "framer-motion";
const Header: React.FC = () => { const Header: React.FC = () => {
return ( return (
<header className="absolute z-50 flex w-full flex-row items-center justify-end p-2 align-middle"> <header className="absolute z-50 flex w-full flex-row items-center justify-end p-2 align-middle">
<AnimatePresence> <AnimatePresence>
<PopIn delay={0.5}>
<a <a
href="https://github.com/reworkd/AgentGPT" href="https://github.com/reworkd/AgentGPT"
className="right-0 ml-0 block block text-white hover:text-yellow-500" className="right-0 ml-0 block block text-white hover:text-[#1E88E5]"
> >
<span className="sr-only">AgentGPT on GitHub</span> <span className="sr-only">AgentGPT on GitHub</span>
<FaGithub size="25" /> <FaGithub size="25" />
</a> </a>
</PopIn>
</AnimatePresence> </AnimatePresence>
</header> </header>
); );

View File

@@ -48,8 +48,12 @@ const Home: NextPage = () => {
className="relative flex flex-col items-center font-mono" className="relative flex flex-col items-center font-mono"
> >
<div className="flex flex-row items-start shadow-2xl"> <div className="flex flex-row items-start shadow-2xl">
<span className="text-6xl font-bold text-[#C0C0C0]">Agent</span> <span className="text-4xl font-bold text-[#C0C0C0] sm:text-6xl xs:text-5xl">
<span className="text-6xl font-bold text-white">GPT</span> Agent
</span>
<span className="text-4xl font-bold text-white sm:text-6xl xs:text-5xl">
GPT
</span>
<PopIn delay={0.5}> <PopIn delay={0.5}>
<Badge>Beta 🚀</Badge> <Badge>Beta 🚀</Badge>
</PopIn> </PopIn>

View File

@@ -1,8 +1,15 @@
/** @type {import('tailwindcss').Config} */ /** @type {import("tailwindcss").Config} */
module.exports = { module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx}"], content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: { theme: {
extend: {}, extend: {
screens: {
"xs": "350px",
"sm-h": { "raw": "(min-height: 700px)" },
"md-h": { "raw": "(min-height: 900px)" },
"lg-h": { "raw": "(min-height: 1000px)" }
}
}
}, },
plugins: [], plugins: []
}; };