Skip to content

Commit 24fe898

Browse files
committed
feat: update color palette, refine UI component borders, and add background patterns and navigation links
1 parent c247e85 commit 24fe898

11 files changed

Lines changed: 88 additions & 56 deletions

File tree

‎app/globals.css‎

Lines changed: 57 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -25,47 +25,47 @@
2525
}
2626

2727
:root {
28-
--primary: oklch(0.21 0.006 285.885);
29-
--secondary: oklch(0.967 0.001 286.375);
28+
--primary: oklch(0.205 0 0);
29+
--secondary: oklch(0.97 0 0);
3030
--text: #000000;
3131
--dark: #1d1f26;
3232
--radius: 0.625rem;
33-
--background:#edf0f4;
34-
--foreground: oklch(0.141 0.005 285.823);
3533
--card: oklch(1 0 0);
36-
--card-foreground: oklch(0.141 0.005 285.823);
34+
--card-foreground: oklch(0.145 0 0);
3735
--popover: oklch(1 0 0);
38-
--popover-foreground: oklch(0.141 0.005 285.823);
36+
--popover-foreground: oklch(0.145 0 0);
3937
--primary-foreground: oklch(0.985 0 0);
40-
--secondary-foreground: oklch(0.21 0.006 285.885);
41-
--muted: oklch(0.967 0.001 286.375);
42-
--muted-foreground: oklch(0.552 0.016 285.938);
43-
--accent: oklch(0.967 0.001 286.375);
44-
--accent-foreground: oklch(0.21 0.006 285.885);
38+
--secondary-foreground: oklch(0.205 0 0);
39+
--muted: oklch(0.97 0 0);
40+
--muted-foreground: oklch(0.556 0 0);
41+
--accent: oklch(0.97 0 0);
42+
--accent-foreground: oklch(0.205 0 0);
4543
--destructive: oklch(0.577 0.245 27.325);
46-
--border: oklch(0.92 0.004 286.32);
47-
--input: oklch(0.92 0.004 286.32);
48-
--ring: oklch(0.705 0.015 286.067);
49-
--chart-1: oklch(0.646 0.222 41.116);
50-
--chart-2: oklch(0.6 0.118 184.704);
51-
--chart-3: oklch(0.398 0.07 227.392);
52-
--chart-4: oklch(0.828 0.189 84.429);
53-
--chart-5: oklch(0.769 0.188 70.08);
44+
--border: oklch(0.922 0 0);
45+
--input: oklch(0.922 0 0);
46+
--ring: oklch(0.708 0 0);
47+
--chart-1: oklch(0.87 0 0);
48+
--chart-2: oklch(0.556 0 0);
49+
--chart-3: oklch(0.439 0 0);
50+
--chart-4: oklch(0.371 0 0);
51+
--chart-5: oklch(0.269 0 0);
5452
--sidebar: oklch(0.985 0 0);
55-
--sidebar-foreground: oklch(0.141 0.005 285.823);
56-
--sidebar-primary: oklch(0.21 0.006 285.885);
53+
--sidebar-foreground: oklch(0.145 0 0);
54+
--sidebar-primary: oklch(0.205 0 0);
5755
--sidebar-primary-foreground: oklch(0.985 0 0);
58-
--sidebar-accent: oklch(0.967 0.001 286.375);
59-
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
60-
--sidebar-border: oklch(0.92 0.004 286.32);
61-
--sidebar-ring: oklch(0.705 0.015 286.067);
62-
--destructive-foreground: oklch(0.505 0.213 27.518);
56+
--sidebar-accent: oklch(0.97 0 0);
57+
--sidebar-accent-foreground: oklch(0.205 0 0);
58+
--sidebar-border: oklch(0.922 0 0);
59+
--sidebar-ring: oklch(0.708 0 0);
60+
--destructive-foreground: var(--color-red-700);
6361
--info: oklch(0.623 0.214 259.815);
6462
--info-foreground: oklch(0.488 0.243 264.376);
6563
--success: oklch(0.696 0.17 162.48);
6664
--success-foreground: oklch(0.508 0.118 165.612);
6765
--warning: oklch(0.769 0.188 70.08);
6866
--warning-foreground: oklch(0.555 0.163 48.998);
67+
--background: oklch(1 0 0);
68+
--foreground: oklch(0.145 0 0);
6969
}
7070

7171
@theme {
@@ -83,6 +83,13 @@
8383
color: var(--text);
8484
background: var(--background);
8585
font-family: Arial, Helvetica, sans-serif;
86+
@apply bg-background text-foreground;
87+
}
88+
* {
89+
@apply border-border outline-ring/50;
90+
}
91+
html {
92+
@apply font-sans;
8693
}
8794
}
8895

@@ -192,41 +199,46 @@
192199
--color-success: var(--success);
193200
--color-info-foreground: var(--info-foreground);
194201
--color-info: var(--info);
202+
--font-heading: var(--font-sans);
203+
--font-sans: var(--font-sans);
204+
--radius-2xl: calc(var(--radius) * 1.8);
205+
--radius-3xl: calc(var(--radius) * 2.2);
206+
--radius-4xl: calc(var(--radius) * 2.6);
195207
}
196208

197209
.dark {
198-
--background: oklch(0.141 0.005 285.823);
210+
--background: oklch(0.145 0 0);
199211
--foreground: oklch(0.985 0 0);
200-
--card: oklch(0.21 0.006 285.885);
212+
--card: oklch(0.205 0 0);
201213
--card-foreground: oklch(0.985 0 0);
202-
--popover: oklch(0.21 0.006 285.885);
214+
--popover: oklch(0.205 0 0);
203215
--popover-foreground: oklch(0.985 0 0);
204-
--primary: oklch(0.92 0.004 286.32);
205-
--primary-foreground: oklch(0.21 0.006 285.885);
206-
--secondary: oklch(0.274 0.006 286.033);
216+
--primary: oklch(0.922 0 0);
217+
--primary-foreground: oklch(0.205 0 0);
218+
--secondary: oklch(0.269 0 0);
207219
--secondary-foreground: oklch(0.985 0 0);
208-
--muted: oklch(0.274 0.006 286.033);
209-
--muted-foreground: oklch(0.705 0.015 286.067);
210-
--accent: oklch(0.274 0.006 286.033);
220+
--muted: oklch(0.269 0 0);
221+
--muted-foreground: oklch(0.708 0 0);
222+
--accent: oklch(0.269 0 0);
211223
--accent-foreground: oklch(0.985 0 0);
212224
--destructive: oklch(0.704 0.191 22.216);
213225
--border: oklch(1 0 0 / 10%);
214226
--input: oklch(1 0 0 / 15%);
215-
--ring: oklch(0.552 0.016 285.938);
216-
--chart-1: oklch(0.488 0.243 264.376);
217-
--chart-2: oklch(0.696 0.17 162.48);
218-
--chart-3: oklch(0.769 0.188 70.08);
219-
--chart-4: oklch(0.627 0.265 303.9);
220-
--chart-5: oklch(0.645 0.246 16.439);
221-
--sidebar: oklch(0.21 0.006 285.885);
227+
--ring: oklch(0.556 0 0);
228+
--chart-1: oklch(0.87 0 0);
229+
--chart-2: oklch(0.556 0 0);
230+
--chart-3: oklch(0.439 0 0);
231+
--chart-4: oklch(0.371 0 0);
232+
--chart-5: oklch(0.269 0 0);
233+
--sidebar: oklch(0.205 0 0);
222234
--sidebar-foreground: oklch(0.985 0 0);
223235
--sidebar-primary: oklch(0.488 0.243 264.376);
224236
--sidebar-primary-foreground: oklch(0.985 0 0);
225-
--sidebar-accent: oklch(0.274 0.006 286.033);
237+
--sidebar-accent: oklch(0.269 0 0);
226238
--sidebar-accent-foreground: oklch(0.985 0 0);
227239
--sidebar-border: oklch(1 0 0 / 10%);
228-
--sidebar-ring: oklch(0.552 0.016 285.938);
229-
--destructive-foreground: oklch(0.704 0.191 22.216);
240+
--sidebar-ring: oklch(0.556 0 0);
241+
--destructive-foreground: var(--color-red-400);
230242
--info: oklch(0.623 0.214 259.815);
231243
--info-foreground: oklch(0.707 0.165 254.624);
232244
--success: oklch(0.696 0.17 162.48);

‎components/Reviews.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ export default function Reviews() {
405405
setTimeout(() => {
406406
setDisplayedReviews((prev) => {
407407
const available = REVIEWS.filter(
408-
(r) => !prev.some((p) => p.title === r.title)
408+
(r) => !prev.some((p) => p.title === r.title),
409409
);
410410

411411
if (available.length === 0) return prev;
@@ -453,7 +453,7 @@ export default function Reviews() {
453453
}}
454454
>
455455
<blockquote className="h-full">
456-
<div className="rounded-xl shadow-md bg-secondary flex flex-col justify-between h-full gap-4 p-6">
456+
<div className="rounded-xl bg-secondary/70 border border-black/10 shadow-md flex flex-col justify-between h-full gap-4 p-6">
457457
<div>
458458
<h3 className="text-lg font-semibold mb-2">{item.title}</h3>
459459

‎components/flowContainer/ChatbotNode.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function ChatbotNode() {
77
return (
88
<div className="w-64 rounded-lg">
99
<Card
10-
className={`w-full relative before:rounded-sm rounded-lg py-4 pb-2 border-black/15 border bg-white`}
10+
className={`w-full relative before:rounded-sm rounded-lg py-4 pb-2 border-black/30 border bg-white shadow-lg`}
1111
>
1212
<CardHeader className="flex flex-row items-center justify-between space-y-0 border-b border-black/15 border-dashed px-4 [.border-b]:pb-4">
1313
<CardTitle className="text-sm font-medium ">

‎components/flowContainer/ChatbotResponse.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function ChatbotResponse() {
77
return (
88
<div className="w-64 rounded-lg">
99
<Card
10-
className={`w-full relative before:rounded-sm rounded-lg py-4 pb-2 bg-white border-black/15 border`}
10+
className={`w-full relative before:rounded-sm rounded-lg py-4 pb-2 bg-white border-black/30 border shadow-lg`}
1111
>
1212
<CardHeader className="flex flex-row items-center justify-between space-y-0 border-b border-black/15 border-dashed px-4 [.border-b]:pb-4">
1313
<CardTitle className="text-sm font-medium">

‎components/flowContainer/KbNode.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function KbNode() {
88
return (
99
<div className="w-64 rounded-lg">
1010
<Card
11-
className={`w-full border-black/50 relative rounded-lg before:rounded-lg py-4 pb-2 bg-white border-black/15 border`}
11+
className={`w-full border-black/50 relative rounded-lg before:rounded-lg py-4 pb-2 bg-white border-black/30 border shadow-lg`}
1212
>
1313
<CardHeader className="flex flex-row items-center justify-between space-y-0 border-b border-black/15 border-dashed px-4 [.border-b]:pb-4">
1414
<CardTitle className="text-sm font-medium">

‎components/flowContainer/OpenAINode.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function OpenAINode() {
1010
return (
1111
<div className="w-64 rounded-lg">
1212
<Card
13-
className={`w-full relative rounded-lg before:rounded-lg py-4 pb-2 bg-white border-black/15 border`}
13+
className={`w-full relative rounded-lg before:rounded-lg py-4 pb-2 bg-white border-black/30 border shadow-lg`}
1414
>
1515
<CardHeader className="flex flex-row items-center justify-between space-y-0 border-b border-black/15 border-dashed px-4 [.border-b]:pb-4">
1616
<CardTitle className="text-sm font-medium">

‎components/home/features/FeatureCard.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const FeatureCard = ({ icon, title, description }) => {
22
return (
3-
<div className="rounded-xl bg-secondary p-6 shadow-md hover:shadow-md transition-shadow z-10">
3+
<div className="rounded-xl bg-secondary/70 border border-black/10 p-6 shadow-md hover:shadow-md transition-shadow z-10">
44
<div className="h-16 w-16 bg-background rounded-sm shadow-md flex items-center justify-center text-primary mb-4">
55
{icon}
66
</div>

‎components/home/flow/Editor.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default function Editor() {
1010
className="border-b border-dashed border-black/50 hidden sm:block"
1111
>
1212
<Container className="pt-20 pb-5 px-0!">
13+
<div className="absolute inset-0 -z-10 h-full w-full bg-[radial-gradient(#DFE0E8_1.2px,transparent_1px)] bg-[size:16px_16px] [mask-image:radial-gradient(ellipse_50%_50%_at_50%_50%,#000_40%,transparent_100%)]"></div>
1314
<div className="text-center space-y-2">
1415
<Badge className="bg-secondary border border-black/50 text-black/50 px-3 py-1 rounded-xl">
1516
How it Works

‎components/home/header/Header.js‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { useRandomAnimation } from "@/hooks/useRandomAnimation";
99
import BagsBadge from "./BagsBadge";
1010
import { Button } from "@/components/ui/button";
1111
import NodeVisualizer from "@/components/NodeVisualizer";
12+
import Link from "next/link";
1213

1314
const Header = () => {
1415
const clockAnimate = useRandomAnimation(500);
@@ -20,8 +21,21 @@ const Header = () => {
2021

2122
return (
2223
<section className="border-b border-dashed border-black/50 text-black">
23-
<Container className="flex gap-10 pt-12 flex-col pb-12 sm:pb-20 justify-center px-0!">
24-
<div className="mt-5 xl:mt-20 flex flex-col items-center text-center gap-6 md:gap-8">
24+
<Container className="flex gap-10 pt-0 flex-col pb-12 sm:pb-20 justify-center px-0!">
25+
<div className="absolute inset-0 -z-10 h-full w-full bg-[radial-gradient(#DFE0E8_1.2px,transparent_1px)] bg-[size:16px_16px] [mask-image:radial-gradient(ellipse_50%_50%_at_50%_50%,#000_40%,transparent_100%)]"></div>
26+
<div className="mt-10 xl:mt-20 flex flex-col items-center text-center gap-6 md:gap-8">
27+
<Link
28+
href="https://affiliate.deforge.io"
29+
target="_blank"
30+
className="text-xs font-medium p-1 border border-black/30 shadow-md bg-secondary/70 rounded-full px-3 flex items-center gap-2"
31+
aria-hidden
32+
>
33+
<div className="w-2 h-2 rounded-full bg-green-500">
34+
<div className="w-2 h-2 rounded-full bg-green-500 animate-ping"></div>
35+
</div>
36+
Refer us and earn rewards.
37+
</Link>
38+
2539
<div className="flex gap-4 items-center sm:flex-row flex-col">
2640
<ProductHuntBadge />
2741
<BagsBadge />

‎components/home/navbar/Navbar.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ const navLinks = [
1717
label: "Agents",
1818
isExternal: false,
1919
},
20+
{
21+
href: "https://runanvil.com",
22+
label: "Anvil",
23+
isExternal: true,
24+
},
2025
{
2126
href: "https://forum.deforge.io",
2227
label: "Forum",

0 commit comments

Comments
 (0)