Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
API_ENDPOINT=http://localhost:8000
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
API_ENDPOINT=http://localhost:8000
6 changes: 3 additions & 3 deletions db.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
],
"starterCode": "def solve(nums: list, target: int) -> list:\n\t# Code here...",
"timeLimit": 5
"timeLimit": 60
},
{
"id": 3,
Expand All @@ -52,7 +52,7 @@
}
],
"starterCode": "def solve(s: str) -> int:\n\t# Code here...",
"timeLimit": 15
"timeLimit": 900
},
{
"id": 4,
Expand All @@ -75,7 +75,7 @@
}
],
"starterCode": "def solve(nums1: list, nums2: list) -> float:\n\t# Code here...",
"timeLimit": 30
"timeLimit": 1800
}
]
}
16 changes: 13 additions & 3 deletions src/components/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@ import { ReactNode } from "react";

type Container = {
children: ReactNode;
backgroundStyles?: string;
borderStyles?: string;
onHover?: true;
};

const Container = ({ children, onHover }: Container) => {
const Container = (props: Container) => {
const { children, backgroundStyles = "", borderStyles = "", onHover } = props;

return (
<div className="w-fit bg-gradient-radial from-borderGradient-primary to-borderGradient-secondary p-[1px] rounded-2xl">
<div className={`rounded-2xl w-fit bg-gradient-radial from-cardGradient-primary to-cardGradient-secondary transition-all ${onHover && "hover:to-cardGradient-tertiary"}`}>
<div
className={`${borderStyles} bg-gradient-radial from-borderGradient-primary to-borderGradient-secondary p-[1px] rounded-2xl`}
>
<div
className={`${backgroundStyles} ${
onHover && "hover:to-cardGradient-tertiary"
} rounded-2xl bg-gradient-radial from-cardGradient-primary to-cardGradient-secondary`}
>
{children}
</div>
</div>
Expand Down
69 changes: 0 additions & 69 deletions src/components/PromptPanel.tsx

This file was deleted.

Loading