🔥 Gradients galore!

This commit is contained in:
Asim Shrestha
2023-04-08 11:08:11 -07:00
parent e6d56b01f0
commit 375bf82087
6 changed files with 52 additions and 28 deletions

View File

@@ -84,13 +84,13 @@ const ChatMessage = ({ message }: { message: Message }) => {
const getMessageIcon = (message: Message) => { const getMessageIcon = (message: Message) => {
switch (message.type) { switch (message.type) {
case "goal": case "goal":
return <FaStar />; return <FaStar className="text-yellow-400" />;
case "task": case "task":
return <FaListAlt />; return <FaListAlt className="text-gray-300" />;
case "thinking": case "thinking":
return <FaBrain className="mt-[0.1em]" />; return <FaBrain className="mt-[0.1em] text-pink-400" />;
case "action": case "action":
return <FaPlayCircle />; return <FaPlayCircle className="text-green-500" />;
} }
}; };

View File

@@ -2,16 +2,19 @@ import React from "react";
interface DottedGridBackgroundProps { interface DottedGridBackgroundProps {
children: React.ReactNode; children: React.ReactNode;
className?: string className?: string;
} }
const DottedGridBackground = ({ children, className }: DottedGridBackgroundProps) => {
const DottedGridBackground = ({
children,
className,
}: DottedGridBackgroundProps) => {
return ( return (
<div <div className={`${className ? className + " " : ""} background`}>
className={`${className ? className + " " : ""} background`} <div className="lower-gradient" />
>
{children} {children}
</div> </div>
); );
}; };
export default DottedGridBackground; export default DottedGridBackground;

View File

@@ -5,8 +5,8 @@ import { BiPlus } from "react-icons/bi";
const Drawer = () => { const Drawer = () => {
return ( return (
<div <div
id="drawer-example" id="drawer"
className="z-50 m-0 hidden h-screen w-72 flex-col gap-2 border-b-[1px] border-b-white/10 bg-[#101010]/50 p-0 p-3 font-mono text-white backdrop-blur-sm md:flex" className="z-50 m-0 hidden h-screen w-72 flex-col gap-2 bg-zinc-900 p-3 font-mono text-white shadow-3xl md:flex"
> >
<NewAgent /> <NewAgent />
<DrawerItem icon={<FaRobot />} text="HustleGPT" /> <DrawerItem icon={<FaRobot />} text="HustleGPT" />

View File

@@ -48,10 +48,10 @@ 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-4xl font-bold text-[#C0C0C0] sm:text-6xl xs:text-5xl"> <span className="text-4xl font-bold text-[#C0C0C0] xs:text-5xl sm:text-6xl">
Agent Agent
</span> </span>
<span className="text-4xl font-bold text-white sm:text-6xl xs:text-5xl"> <span className="text-4xl font-bold text-white xs:text-5xl sm:text-6xl">
GPT GPT
</span> </span>
<PopIn delay={0.5}> <PopIn delay={0.5}>

View File

@@ -3,9 +3,26 @@
@tailwind utilities; @tailwind utilities;
.background { .background {
background-image: radial-gradient(circle, rgba(58, 58, 58, 0.75) 2px, transparent 0px); background-image: radial-gradient(
background-size: 30px 30px; circle,
background-position: 0 0, 15px 15px; rgba(58, 58, 58, 0.75) 2px,
transparent 0px
);
background-size: 30px 30px;
background-position: 0 0, 15px 15px;
}
.lower-gradient {
background-image: linear-gradient(
to top,
rgba(255, 255, 255, 0.01),
rgba(255, 255, 255, 0)
);
height: 20vh;
position: absolute;
bottom: 0;
left: 0;
right: 0;
} }
/* Customize website's scrollbar like Mac OS /* Customize website's scrollbar like Mac OS
@@ -13,25 +30,25 @@ Not supports in Firefox and IE */
/* total width */ /* total width */
div::-webkit-scrollbar { div::-webkit-scrollbar {
border-radius: 16px; border-radius: 16px;
background-color: #464649; background-color: #464649;
width: 16px; width: 16px;
} }
/* background of the scrollbar except button or resizer */ /* background of the scrollbar except button or resizer */
div::-webkit-scrollbar-track { div::-webkit-scrollbar-track {
border-radius: 16px; border-radius: 16px;
background-color: #464649; background-color: #464649;
} }
/* scrollbar itself */ /* scrollbar itself */
div::-webkit-scrollbar-thumb { div::-webkit-scrollbar-thumb {
background-color: #babac0; background-color: #babac0;
border-radius: 16px; border-radius: 16px;
border: 2px solid #464649; border: 2px solid #464649;
} }
/* set button(top and bottom of the scrollbar) */ /* set button(top and bottom of the scrollbar) */
div::-webkit-scrollbar-button { div::-webkit-scrollbar-button {
display: none; display: none;
} }

View File

@@ -13,7 +13,11 @@ module.exports = {
...defaultTheme.screens ...defaultTheme.screens
}, },
extend: {} extend: {
boxShadow: {
"3xl": "0 40px 70px -15px rgba(0, 0, 0, 0.40)" // Customize the shadow value according to your preferences.
}
}
}, },
plugins: [] plugins: []
}; };