mirror of
https://github.com/aljazceru/AgentGPT.git
synced 2025-12-18 06:24:20 +01:00
🔥 Mobile god
This commit is contained in:
@@ -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}
|
||||||
|
|
||||||
<ChatMessage message={{ type: "thinking", value: "" }} />
|
{messages.length != 0 ? (
|
||||||
|
<ChatMessage message={{ type: "thinking", value: "" }} />
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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-[#1E88E5]"
|
||||||
className="right-0 ml-0 block block text-white hover:text-yellow-500"
|
>
|
||||||
>
|
<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>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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: []
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user