diff --git a/src/app/_components/CompanyAutocompleteInput.tsx b/src/app/_components/CompanyAutocompleteInput.tsx index 9d07af5..c104bed 100644 --- a/src/app/_components/CompanyAutocompleteInput.tsx +++ b/src/app/_components/CompanyAutocompleteInput.tsx @@ -4,6 +4,7 @@ import type { JSX, ChangeEvent, KeyboardEvent } from "react"; import { useId, useRef, useState } from "react"; import { Input } from "@/components/Input"; +import { cn } from "@/components/ui/utils"; type CompanySuggestion = { id: string; @@ -231,7 +232,7 @@ export function CompanyAutocompleteInput(props: CompanyAutocompleteInputProps): } return ( -
+
{isOpen === true && hasSuggestions === true ? ( -
-
    +
    +
      {isLoading === true ? ( -
    • Loading suggestions…
    • +
    • Loading suggestions…
    • ) : null} {isLoading === false @@ -269,15 +270,15 @@ export function CompanyAutocompleteInput(props: CompanyAutocompleteInputProps): id={optionId} role="option" aria-selected={isHighlighted === true} - className="combobox-option flex items-center justify-between px-3 py-2 text-sm" + className={cn("combobox-option flex items-center justify-between px-3 py-2 text-sm")} // onMouseDown: blur'dan önce çalışsın ve input değeri güncellensin onMouseDown={(event) => { event.preventDefault(); handleSuggestionSelect(company); }} > - {company.name} - {company.country} + {company.name} + {company.country} ); }) diff --git a/src/app/_components/HomeHero.tsx b/src/app/_components/HomeHero.tsx index 1c1167c..1d3785f 100644 --- a/src/app/_components/HomeHero.tsx +++ b/src/app/_components/HomeHero.tsx @@ -3,6 +3,7 @@ import type { JSX } from "react"; import { useRouter } from "next/navigation"; import { Button } from "@/components/Button"; +import { cn } from "@/components/ui/utils"; /** * Home page hero section: heading, copy and primary CTAs. @@ -19,20 +20,20 @@ export function HomeHero(): JSX.Element { } return ( -
      -
      -

      +
      +
      +

      Track ghosting.
      Share your experience.

      -

      +

      Submit anonymous reports about companies that ghost job applicants. Help others know what to expect and hold companies accountable.

      -
      +
      -

      +

      Reports are anonymous. We store only minimal, non-identifiable metadata and use salted hashes of IP addresses for rate limiting instead of storing raw IP data.

      diff --git a/src/app/_components/HomeStatsPanel.tsx b/src/app/_components/HomeStatsPanel.tsx index 619f3a8..c58cd8d 100644 --- a/src/app/_components/HomeStatsPanel.tsx +++ b/src/app/_components/HomeStatsPanel.tsx @@ -7,6 +7,7 @@ import { TrendingUp } from "lucide-react"; import { Card } from "@/components/Card"; import { StatsCard } from "@/components/StatsCard"; import { useReportsStats } from "@/app/_hooks/useReportsStats"; +import { cn } from "@/components/ui/utils"; /** * Home page stats panel. @@ -47,9 +48,9 @@ export function HomeStatsPanel(): JSX.Element { : "Most reported this week"; return ( -