Skip to content

Commit 7afb9bb

Browse files
authored
Merge pull request #364 from cherylpinto/feature/issue-#312
Feature/issue #312
2 parents 094f0d8 + bb04b0d commit 7afb9bb

File tree

17 files changed

+3175
-2068
lines changed

17 files changed

+3175
-2068
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"@mdx-js/react": "^3.0.0",
2929
"@popperjs/core": "^2.11.8",
3030
"@radix-ui/react-avatar": "^1.1.7",
31-
"@radix-ui/react-slot": "^1.2.0",
31+
"@radix-ui/react-collapsible": "^1.1.12",
32+
"@radix-ui/react-slot": "^1.2.3",
3233
"@tsparticles/react": "^3.0.0",
3334
"@tsparticles/slim": "^3.8.1",
3435
"@vercel/analytics": "^1.5.0",

src/components/ui/badge.tsx

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import * as React from "react"
2+
import { Slot } from "@radix-ui/react-slot"
3+
import { cva, type VariantProps } from "class-variance-authority"
4+
import { cn } from "../../../src/lib/utils"
5+
6+
const badgeVariants = cva(
7+
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
8+
{
9+
variants: {
10+
variant: {
11+
default:
12+
"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
13+
secondary:
14+
"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
15+
destructive:
16+
"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
17+
outline:
18+
"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
19+
},
20+
},
21+
defaultVariants: {
22+
variant: "default",
23+
},
24+
}
25+
)
26+
27+
function Badge({
28+
className,
29+
variant,
30+
asChild = false,
31+
...props
32+
}: React.ComponentProps<"span"> &
33+
VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
34+
const Comp = asChild ? Slot : "span"
35+
36+
return (
37+
<Comp
38+
data-slot="badge"
39+
className={cn(badgeVariants({ variant }), className)}
40+
{...props}
41+
/>
42+
)
43+
}
44+
45+
export { Badge, badgeVariants }

src/components/ui/collapsible.tsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"
2+
import * as React from "react"
3+
function Collapsible({
4+
...props
5+
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {
6+
return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />
7+
}
8+
9+
function CollapsibleTrigger({
10+
...props
11+
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>) {
12+
return (
13+
<CollapsiblePrimitive.CollapsibleTrigger
14+
data-slot="collapsible-trigger"
15+
{...props}
16+
/>
17+
)
18+
}
19+
20+
function CollapsibleContent({
21+
...props
22+
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>) {
23+
return (
24+
<CollapsiblePrimitive.CollapsibleContent
25+
data-slot="collapsible-content"
26+
{...props}
27+
/>
28+
)
29+
}
30+
31+
export { Collapsible, CollapsibleTrigger, CollapsibleContent }

src/components/ui/input.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as React from "react"
2+
3+
import { cn } from "../../../src/lib/utils"
4+
5+
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
6+
return (
7+
<input
8+
type={type}
9+
data-slot="input"
10+
className={cn(
11+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
12+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
13+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
14+
className
15+
)}
16+
{...props}
17+
/>
18+
)
19+
}
20+
21+
export { Input }

src/css/custom.css

Lines changed: 77 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,10 +1824,6 @@ html {
18241824
}
18251825
}
18261826

1827-
/* STAR section border fixes for dark mode */
1828-
[data-theme="dark"] .star-border-red {
1829-
border-color: #ef4444 !important;
1830-
}
18311827

18321828
/* Fix: Remove extra box/space above dropdown nav items in sidebar */
18331829
.navbar-sidebar__item,
@@ -1873,14 +1869,18 @@ html {
18731869
border-color: #3b82f6 !important;
18741870
}
18751871

1876-
[data-theme="light"] .interview-prep-page h1,
1877-
[data-theme="light"] .interview-prep-page h2,
1878-
[data-theme="light"] .interview-prep-page h3,
1879-
[data-theme="light"] .interview-prep-page h4,
1880-
[data-theme="light"] .interview-prep-page h5,
1881-
[data-theme="light"] .interview-prep-page h6 {
1882-
color: #ffffff !important;
1883-
}
1872+
[data-theme="dark"] .star-border-yellow {
1873+
border-color: #eab308 !important;
1874+
}
1875+
1876+
[data-theme="light"] .interview-prep-page h1,
1877+
[data-theme="light"] .interview-prep-page h2,
1878+
[data-theme="light"] .interview-prep-page h3,
1879+
[data-theme="light"] .interview-prep-page h4,
1880+
[data-theme="light"] .interview-prep-page h5,
1881+
[data-theme="light"] .interview-prep-page h6 {
1882+
color: #ffffff !important;
1883+
}
18841884

18851885
.watch-video-btn {
18861886
background-color: #dc2626;
@@ -2018,4 +2018,69 @@ html {
20182018

20192019
.explore-btn:hover{
20202020
color:white;
2021+
}
2022+
2023+
.custom-input {
2024+
background-color: #374151;
2025+
color:white; /* cyan-500 */
2026+
}
2027+
.company-border{
2028+
border-color:#6b7280;
2029+
color:white;
2030+
}
2031+
.company-blue-border{
2032+
border-color:#3b82f6 ;
2033+
}
2034+
.company-green-border{
2035+
border-color: #22c55e;
2036+
}
2037+
.company-purple-border{
2038+
border-color: #a855f7;
2039+
}
2040+
2041+
/* System Design */
2042+
[data-theme='dark'] .badge-system {
2043+
border-color: #60a5fa; /* dark:border-blue-300 */
2044+
color: #60a5fa; /* dark:text-blue-300 */
2045+
background-color: rgba(30, 64, 175, 0.2); /* dark:bg-blue-900/20 */
2046+
}
2047+
2048+
/* Behavioral */
2049+
[data-theme='dark'] .badge-behavioral {
2050+
border-color: #4ade80;
2051+
color: #4ade80;
2052+
background-color: rgba(20, 83, 45, 0.2);
2053+
}
2054+
2055+
/* Technical */
2056+
2057+
[data-theme='dark'] .badge-technical {
2058+
border-color: #c084fc;
2059+
color: #c084fc;
2060+
background-color: rgba(88, 28, 135, 0.2);
2061+
}
2062+
2063+
2064+
[data-theme='dark'] .badge-other {
2065+
border-color: #fb923c;
2066+
color: #fb923c;
2067+
background-color: rgba(124, 45, 18, 0.2);
2068+
}
2069+
2070+
[data-theme='dark'] .question-card {
2071+
border-color: #1f2937; /* border-gray-800 */
2072+
background-color: #1f2937; /* bg-gray-800 */
2073+
}
2074+
.company-tab-link{
2075+
color: white;
2076+
}
2077+
.company-tab-link:hover{
2078+
color: white;
2079+
}
2080+
.company-tab-community-link{
2081+
color: #fdba74;
2082+
}
2083+
.company-tab-community-link:hover{
2084+
color: #fdba74;
2085+
text-decoration: none;
20212086
}

0 commit comments

Comments
 (0)