θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
--theme-home-update-source: #53b1fd;

--theme-checklist-item-bg: #203c48;
--theme-checklist-item-bg-hover: #255d75;
--theme-checklist-item-text: #b9e6fe;
--theme-checklist-item-completed-bg: #36463d;
--theme-checklist-item-completed-text: #a6f4c5;
Expand All @@ -76,6 +77,9 @@
--theme-checklist-button-text: #36bffa;
--theme-checklist-button-hover-bg: rgba(54, 191, 250, 0.2);
--theme-checklist-button-hover-border: rgba(54, 191, 250, 0.8);

--theme-home-button-secondary-border: #acc1e6;
--theme-home-button-secondary-border-hover: #293056;
}

[data-theme="light"] {
Expand Down Expand Up @@ -131,21 +135,22 @@
--theme-file-picker-hover: #e2e7ee;

--theme-home-text: #0e0f0f;
--theme-home-text-secondary: #3f3f42;
--theme-home-text-secondary: #6f6f71;
--theme-home-bg-card: #edf2fa;
--theme-home-bg-button: #f3f4f6;
--theme-home-border: rgba(0, 0, 0, 0.1);
--theme-home-button-primary: #36bffa;
--theme-home-button-primary-hover: rgba(54, 191, 250, 0.9);
--theme-home-button-secondary: #dbe8fe;
--theme-home-button-secondary-hover: #e5e7eb;
--theme-home-button-secondary-hover: #b0c8f1;
--theme-home-button-secondary-text: #293056;
--theme-home-button-secondary-hover-text: #0ba5ec;
--theme-home-button-secondary-hover-text: #293056;
--theme-home-update-card-bg: #edf2fa;
--theme-home-update-card-hover: #f3f4f6;
--theme-home-update-source: #0284c7;

--theme-checklist-item-bg: #c8e8fa;
--theme-checklist-item-bg: #c7e2ee;
--theme-checklist-item-bg-hover: #a3d9f1;
--theme-checklist-item-text: #0d3851;
--theme-checklist-item-completed-bg: #d8f3ea;
--theme-checklist-item-completed-text: #039855;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function ChecklistItem({ id, title, action, onAction, icon: Icon }) {

return (
<div
className={`flex items-center gap-x-4 transition-colors cursor-pointer rounded-lg p-3 group ${
className={`flex items-center gap-x-4 transition-colors cursor-pointer rounded-lg p-3 group hover:bg-theme-checklist-item-bg-hover ${
isCompleted
? "bg-theme-checklist-item-completed-bg"
: "bg-theme-checklist-item-bg"
Expand All @@ -57,7 +57,7 @@ export function ChecklistItem({ id, title, action, onAction, icon: Icon }) {
className={`text-sm font-medium transition-colors duration-200 ${
isCompleted
? "text-theme-checklist-item-completed-text line-through"
: "text-theme-checklist-item-text group-hover:text-theme-checklist-item-hover light:group-hover:text-theme-checklist-item-text-secondary"
: "text-theme-checklist-item-text"
}`}
>
{title}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Main/Home/ExploreFeatures/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function FeatureCard({
<div className="flex flex-col gap-y-[10px]">
<button
onClick={onPrimaryAction}
className="w-full h-[36px] border border-white/20 light:border-black/20 text-white rounded-lg text-theme-home-button-primary-text text-sm font-medium flex items-center justify-center gap-x-2.5 transition-all duration-200 hover:bg-theme-home-button-secondary-hover hover:text-theme-home-button-secondary-hover-text"
className="w-full h-[36px] border border-white/20 light:border-theme-home-button-secondary-border light:hover:border-theme-home-button-secondary-border-hover text-white rounded-lg text-theme-home-button-primary-text text-sm font-medium flex items-center justify-center gap-x-2.5 transition-all duration-200 light:hover:bg-transparent hover:bg-theme-home-button-secondary-hover hover:text-theme-home-button-secondary-hover-text"
>
{primaryAction}
</button>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/Main/Home/QuickLinks/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,21 @@ export default function QuickLinks() {
<div className="w-full grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
<button
onClick={sendChat}
className="h-[45px] bg-theme-home-button-secondary rounded-lg text-theme-home-button-secondary-text flex items-center justify-center gap-x-2.5 transition-all duration-200 hover:bg-theme-home-button-secondary-hover hover:text-theme-home-button-secondary-hover-text"
className="h-[45px] text-sm font-semibold bg-theme-home-button-secondary rounded-lg text-theme-home-button-secondary-text flex items-center justify-center gap-x-2.5 transition-all duration-200 hover:bg-theme-home-button-secondary-hover hover:text-theme-home-button-secondary-hover-text"
>
<ChatCenteredDots size={16} />
Send Chat
</button>
<button
onClick={embedDocument}
className="h-[45px] bg-theme-home-button-secondary rounded-lg text-theme-home-button-secondary-text flex items-center justify-center gap-x-2.5 transition-all duration-200 hover:bg-theme-home-button-secondary-hover hover:text-theme-home-button-secondary-hover-text"
className="h-[45px] text-sm font-semibold bg-theme-home-button-secondary rounded-lg text-theme-home-button-secondary-text flex items-center justify-center gap-x-2.5 transition-all duration-200 hover:bg-theme-home-button-secondary-hover hover:text-theme-home-button-secondary-hover-text"
>
<FileArrowDown size={16} />
Embed a Document
</button>
<button
onClick={createWorkspace}
className="h-[45px] bg-theme-home-button-secondary rounded-lg text-theme-home-button-secondary-text flex items-center justify-center gap-x-2.5 transition-all duration-200 hover:bg-theme-home-button-secondary-hover hover:text-theme-home-button-secondary-hover-text"
className="h-[45px] text-sm font-semibold bg-theme-home-button-secondary rounded-lg text-theme-home-button-secondary-text flex items-center justify-center gap-x-2.5 transition-all duration-200 hover:bg-theme-home-button-secondary-hover hover:text-theme-home-button-secondary-hover-text"
>
<Plus size={16} />
Create Workspace
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Main/Home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Home() {
className="relative md:ml-[2px] md:mr-[16px] md:my-[16px] md:rounded-[16px] bg-theme-bg-container w-full h-full"
>
<div className="w-full h-full flex flex-col items-center overflow-y-auto no-scroll">
<div className="w-full max-w-[1200px] flex flex-col gap-y-[50px] p-4 pt-16 md:p-12">
<div className="w-full max-w-[1200px] flex flex-col gap-y-[24px] p-4 pt-16 md:p-12 md:pt-11">
<Checklist />
<QuickLinks />
<ExploreFeatures />
Expand Down
3 changes: 3 additions & 0 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,15 @@ export default {
"button-secondary-hover": 'var(--theme-home-button-secondary-hover)',
"button-secondary-text": 'var(--theme-home-button-secondary-text)',
"button-secondary-hover-text": 'var(--theme-home-button-secondary-hover-text)',
"button-secondary-border": 'var(--theme-home-button-secondary-border)',
"button-secondary-border-hover": 'var(--theme-home-button-secondary-border-hover)',
"update-card-bg": 'var(--theme-home-update-card-bg)',
"update-card-hover": 'var(--theme-home-update-card-hover)',
"update-source": 'var(--theme-home-update-source)',
},
checklist: {
"item-bg": 'var(--theme-checklist-item-bg)',
"item-bg-hover": 'var(--theme-checklist-item-bg-hover)',
"item-text": 'var(--theme-checklist-item-text)',
"item-completed-bg": 'var(--theme-checklist-item-completed-bg)',
"item-completed-text": 'var(--theme-checklist-item-completed-text)',
Expand Down