Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://huggingface.co/spaces/gaurv007/ClauseGuard
Browse files
web/app/dashboard-pages/compare/page.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
"use client";
|
| 2 |
|
| 3 |
-
import { useState
|
| 4 |
import {
|
| 5 |
-
|
| 6 |
-
TriangleAlert, CircleCheck, AlertTriangle,
|
| 7 |
-
Loader2
|
| 8 |
} from "lucide-react";
|
| 9 |
|
| 10 |
interface CompareResult {
|
|
@@ -85,7 +85,7 @@ export default function ComparePage() {
|
|
| 85 |
<div className="max-w-7xl mx-auto px-5 py-10">
|
| 86 |
<div className="mb-8">
|
| 87 |
<h1 className="text-2xl font-semibold tracking-tight flex items-center gap-2">
|
| 88 |
-
<
|
| 89 |
Compare Contracts
|
| 90 |
</h1>
|
| 91 |
<p className="mt-1 text-sm text-zinc-500">Upload or paste two contracts side-by-side. Get clause-level diffs, alignment score, and risk delta.</p>
|
|
|
|
| 1 |
"use client";
|
| 2 |
|
| 3 |
+
import { useState } from "react";
|
| 4 |
import {
|
| 5 |
+
GitCompare, ArrowRightLeft, ChevronDown, ChevronUp,
|
| 6 |
+
TriangleAlert, CircleCheck, AlertTriangle,
|
| 7 |
+
Loader2
|
| 8 |
} from "lucide-react";
|
| 9 |
|
| 10 |
interface CompareResult {
|
|
|
|
| 85 |
<div className="max-w-7xl mx-auto px-5 py-10">
|
| 86 |
<div className="mb-8">
|
| 87 |
<h1 className="text-2xl font-semibold tracking-tight flex items-center gap-2">
|
| 88 |
+
<GitCompare className="w-6 h-6 text-zinc-400" />
|
| 89 |
Compare Contracts
|
| 90 |
</h1>
|
| 91 |
<p className="mt-1 text-sm text-zinc-500">Upload or paste two contracts side-by-side. Get clause-level diffs, alignment score, and risk delta.</p>
|
web/app/dashboard-pages/dashboard/page.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { createClient } from "@/lib/supabase/server";
|
|
| 2 |
import Link from "next/link";
|
| 3 |
import {
|
| 4 |
ScanText, ShieldCheck, TriangleAlert, Tag, AlertTriangle,
|
| 5 |
-
ClipboardList,
|
| 6 |
} from "lucide-react";
|
| 7 |
|
| 8 |
export default async function DashboardPage() {
|
|
@@ -119,7 +119,7 @@ export default async function DashboardPage() {
|
|
| 119 |
<Link href="/dashboard-pages/compare" className="bg-white rounded-xl p-6 border border-gray-200 hover:border-indigo-200 hover:shadow-sm transition-all group">
|
| 120 |
<div className="flex items-center gap-3 mb-2">
|
| 121 |
<div className="w-10 h-10 rounded-lg bg-indigo-50 flex items-center justify-center group-hover:bg-indigo-100 transition-colors">
|
| 122 |
-
<
|
| 123 |
</div>
|
| 124 |
<h3 className="font-semibold text-gray-900">Compare Contracts</h3>
|
| 125 |
</div>
|
|
|
|
| 2 |
import Link from "next/link";
|
| 3 |
import {
|
| 4 |
ScanText, ShieldCheck, TriangleAlert, Tag, AlertTriangle,
|
| 5 |
+
ClipboardList, GitCompare, TrendingUp, Clock
|
| 6 |
} from "lucide-react";
|
| 7 |
|
| 8 |
export default async function DashboardPage() {
|
|
|
|
| 119 |
<Link href="/dashboard-pages/compare" className="bg-white rounded-xl p-6 border border-gray-200 hover:border-indigo-200 hover:shadow-sm transition-all group">
|
| 120 |
<div className="flex items-center gap-3 mb-2">
|
| 121 |
<div className="w-10 h-10 rounded-lg bg-indigo-50 flex items-center justify-center group-hover:bg-indigo-100 transition-colors">
|
| 122 |
+
<GitCompare className="w-5 h-5 text-indigo-600" />
|
| 123 |
</div>
|
| 124 |
<h3 className="font-semibold text-gray-900">Compare Contracts</h3>
|
| 125 |
</div>
|
web/components/nav.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
import Link from "next/link";
|
| 4 |
import { usePathname } from "next/navigation";
|
| 5 |
-
import { ShieldCheck, Menu, X, Crown,
|
| 6 |
import { useState, useEffect } from "react";
|
| 7 |
import { createClient } from "@/lib/supabase/client";
|
| 8 |
|
|
@@ -10,7 +10,7 @@ const links = [
|
|
| 10 |
{ href: "/#features", label: "Features" },
|
| 11 |
{ href: "/#pricing", label: "Pricing" },
|
| 12 |
{ href: "/dashboard-pages/analyze", label: "Scanner" },
|
| 13 |
-
{ href: "/dashboard-pages/compare", label: "Compare", icon:
|
| 14 |
];
|
| 15 |
|
| 16 |
const ADMIN_EMAILS = ["ankygaur9972@gmail.com"];
|
|
|
|
| 2 |
|
| 3 |
import Link from "next/link";
|
| 4 |
import { usePathname } from "next/navigation";
|
| 5 |
+
import { ShieldCheck, Menu, X, Crown, GitCompare } from "lucide-react";
|
| 6 |
import { useState, useEffect } from "react";
|
| 7 |
import { createClient } from "@/lib/supabase/client";
|
| 8 |
|
|
|
|
| 10 |
{ href: "/#features", label: "Features" },
|
| 11 |
{ href: "/#pricing", label: "Pricing" },
|
| 12 |
{ href: "/dashboard-pages/analyze", label: "Scanner" },
|
| 13 |
+
{ href: "/dashboard-pages/compare", label: "Compare", icon: GitCompare },
|
| 14 |
];
|
| 15 |
|
| 16 |
const ADMIN_EMAILS = ["ankygaur9972@gmail.com"];
|