mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-04 12:19:38 +01:00
Merge pull request #48 from g-but/codex/revamp-lex-page-with-best-practices
This commit is contained in:
commit
8fe614d657
9 files changed
+348
-179
No files matched your search
@@ -0,0 +1,53 @@
|
||||
# Lex - AI Legal Assistant
|
||||
|
||||
## Overview
|
||||
|
||||
Lex is an AI-powered legal assistant that runs on a private AI node. It can be deployed for individuals, lawyers, or entire law firms. The system keeps confidential documents secure while providing fast legal research, document analysis, and compliance checks.
|
||||
|
||||
## Features
|
||||
|
||||
- **Legal Research** – Search statutes and case law with precision
|
||||
- **Document Analysis** – Summarize and extract key clauses from contracts and filings
|
||||
- **Case Law Insights** – Surface relevant precedents for your matter
|
||||
- **Regulatory Compliance** – Check requirements across jurisdictions
|
||||
- **Contract Review** – Highlight risks and missing clauses automatically
|
||||
|
||||
## File Structure
|
||||
|
||||
```
|
||||
legal-expert/
|
||||
├── page.tsx # Main page component
|
||||
├── styles.css # Custom styles for the bot
|
||||
├── README.md # This documentation
|
||||
└── components/ # Modular UI components
|
||||
├── hero/ # Hero section
|
||||
├── disclaimer/ # Legal disclaimer
|
||||
├── features/ # Feature cards
|
||||
├── how-it-works/ # Step-by-step guide
|
||||
├── usecases/ # Common use cases
|
||||
└── cta/ # Call to action
|
||||
```
|
||||
|
||||
## Architecture
|
||||
|
||||
Lex follows the same architecture as other bots in this repository. Each section of the page is implemented as an isolated React component, making the code easy to maintain and extend. TailwindCSS is used for styling and responsive design.
|
||||
|
||||
## Development
|
||||
|
||||
1. Run the development server:
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
2. Navigate to `http://localhost:3000/bots/legal-expert` to see the page.
|
||||
3. Unit tests can be executed with:
|
||||
```bash
|
||||
npm test
|
||||
```
|
||||
|
||||
## Security
|
||||
|
||||
Lex runs on a private AI node, ensuring that uploaded documents never leave your infrastructure. No user data is shared with third parties when deployed privately. Always follow best practices for access control and data encryption.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
@@ -0,0 +1,26 @@
|
||||
import React from 'react';
|
||||
|
||||
interface Props {
|
||||
getTryLink: () => string;
|
||||
}
|
||||
|
||||
const CallToActionSection: React.FC<Props> = ({ getTryLink }) => (
|
||||
<section className="mt-16 mb-16" id="get-started">
|
||||
<div className="rounded-xl bg-gray-50 p-8 text-center">
|
||||
<h2 className="text-3xl font-bold text-gray-900 mb-4">Ready to Get Started?</h2>
|
||||
<p className="text-lg text-gray-600 mb-6 max-w-2xl mx-auto">
|
||||
Deploy your own private AI legal assistant and keep your data secure.
|
||||
</p>
|
||||
<div className="flex justify-center gap-4">
|
||||
<a href={getTryLink()} target="_blank" rel="noopener noreferrer" className="rounded-md bg-openai-green px-6 py-3 text-lg font-medium text-white hover:bg-opacity-90 transition-opacity">
|
||||
Try Lex Now
|
||||
</a>
|
||||
<a href="#" className="rounded-md border-2 border-openai-green px-6 py-3 text-lg font-medium text-openai-green hover:bg-gray-50 transition-colors">
|
||||
Learn More
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
export default CallToActionSection;
|
||||
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
|
||||
const DisclaimerSection: React.FC = () => (
|
||||
<div className="bg-yellow-50 border-l-4 border-yellow-700 p-5 rounded-md mb-12 mt-6" id="disclaimer">
|
||||
<p className="text-base mb-2 text-gray-800">
|
||||
Lex provides information for educational purposes only and is not a substitute for professional legal advice.
|
||||
</p>
|
||||
<p className="text-sm text-gray-600">
|
||||
Always consult a qualified attorney for specific legal matters. Use of Lex does not create an attorney-client relationship.
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
export default DisclaimerSection;
|
||||
@@ -0,0 +1,56 @@
|
||||
import React, { useState } from 'react';
|
||||
|
||||
interface FeatureItem {
|
||||
title: string;
|
||||
description: string;
|
||||
icon: string;
|
||||
}
|
||||
|
||||
interface FeaturesSectionProps {
|
||||
features: FeatureItem[];
|
||||
}
|
||||
|
||||
const FeaturesSection: React.FC<FeaturesSectionProps> = ({ features }) => {
|
||||
const [expanded, setExpanded] = useState<number | null>(null);
|
||||
|
||||
const toggle = (index: number) => {
|
||||
if (expanded === index) setExpanded(null); else setExpanded(index);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="my-16" id="features">
|
||||
<h2 className="text-3xl font-bold text-gray-900 mb-4 text-center">Key Capabilities</h2>
|
||||
<p className="text-gray-600 text-center mb-12 max-w-3xl mx-auto">
|
||||
Build a private AI node that keeps your confidential documents secure while providing powerful legal insights.
|
||||
</p>
|
||||
<div className="grid md:grid-cols-3 gap-6 mb-12">
|
||||
{features.map((f, idx) => (
|
||||
<div
|
||||
key={idx}
|
||||
className="feature-card cursor-pointer"
|
||||
onClick={() => toggle(idx)}
|
||||
>
|
||||
<div className="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-4">
|
||||
<span className="text-2xl">{f.icon}</span>
|
||||
</div>
|
||||
<h3 className="font-semibold text-lg mb-2">{f.title}</h3>
|
||||
<p className="text-gray-600 mb-4">{f.description}</p>
|
||||
{expanded === idx && (
|
||||
<div className="mt-4 pt-4 border-t border-blue-100 animate-fadeIn">
|
||||
<p className="text-gray-700 text-sm">Securely deployed for individuals, lawyers, or entire firms with full control over your data.</p>
|
||||
</div>
|
||||
)}
|
||||
<div className="text-blue-600 text-sm mt-3 flex items-center">
|
||||
{expanded === idx ? 'Show less' : 'Learn more'}
|
||||
<svg className={`w-4 h-4 ml-1 transition-transform ${expanded === idx ? 'rotate-180' : ''}`} fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M19 9l-7 7-7-7" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default FeaturesSection;
|
||||
@@ -0,0 +1,61 @@
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
|
||||
interface HeroSectionProps {
|
||||
title: string;
|
||||
overview: string;
|
||||
getTryLink: () => string;
|
||||
}
|
||||
|
||||
const HeroSection: React.FC<HeroSectionProps> = ({ title, overview, getTryLink }) => {
|
||||
return (
|
||||
<section className="mb-16 pt-12">
|
||||
<div className="grid md:grid-cols-2 gap-8 items-center">
|
||||
<div>
|
||||
<div className="mb-4 inline-flex items-center px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-sm font-medium">
|
||||
<span className="mr-1">⚖️</span> Private AI Node
|
||||
</div>
|
||||
<h1 className="text-4xl font-bold text-gray-900 mb-4">
|
||||
{title}: Your AI Legal Assistant
|
||||
</h1>
|
||||
<p className="text-xl text-gray-700 mb-6">
|
||||
{overview}
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-4">
|
||||
<Link href={getTryLink()} className="btn-primary flex items-center" target="_blank" rel="noopener noreferrer">
|
||||
<span>Chat with Lex</span>
|
||||
<svg className="w-5 h-5 ml-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M13 5l7 7-7 7M5 12h15" />
|
||||
</svg>
|
||||
</Link>
|
||||
<a href="#features" className="btn-secondary">Explore Features</a>
|
||||
</div>
|
||||
</div>
|
||||
<div className="bg-blue-50 p-6 rounded-xl border border-blue-100 shadow-sm">
|
||||
<div className="flex items-center gap-3 mb-4">
|
||||
<div className="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center">
|
||||
<span className="text-2xl">⚖️</span>
|
||||
</div>
|
||||
<div>
|
||||
<h3 className="font-semibold text-gray-900">Lex</h3>
|
||||
<p className="text-sm text-gray-600">AI Legal Assistant</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="space-y-3">
|
||||
<div className="bg-white p-3 rounded-lg shadow-sm ml-auto max-w-[80%]">
|
||||
<p className="text-gray-800">How can I help with your legal research today?</p>
|
||||
</div>
|
||||
<div className="bg-blue-50 p-3 rounded-lg shadow-sm max-w-[80%]">
|
||||
<p className="text-gray-800">I need a summary of recent cases on data privacy in Europe.</p>
|
||||
</div>
|
||||
<div className="bg-white p-3 rounded-lg shadow-sm ml-auto max-w-[80%]">
|
||||
<p className="text-gray-800">I'll search through the latest directives and case law to provide a concise overview.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default HeroSection;
|
||||
@@ -0,0 +1,35 @@
|
||||
import React from 'react';
|
||||
|
||||
const steps = [
|
||||
{
|
||||
title: 'Ask a question or upload documents',
|
||||
description: 'Provide a legal query or drag and drop your files for analysis.',
|
||||
},
|
||||
{
|
||||
title: 'AI analysis on your private node',
|
||||
description: 'Lex processes information using your dedicated model without exposing data to third parties.',
|
||||
},
|
||||
{
|
||||
title: 'Receive structured insights',
|
||||
description: 'Get clear explanations, references, and next steps for your legal matter.',
|
||||
},
|
||||
];
|
||||
|
||||
const HowItWorksSection: React.FC = () => (
|
||||
<div className="rounded-2xl border border-gray-200 bg-white p-8 shadow-sm" id="how-it-works">
|
||||
<h2 className="mb-4 text-2xl font-semibold text-gray-900">How It Works</h2>
|
||||
<ol className="space-y-4">
|
||||
{steps.map((step, idx) => (
|
||||
<li className="flex items-start" key={idx}>
|
||||
<div className="mr-4 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-openai-green text-white">{idx + 1}</div>
|
||||
<div>
|
||||
<h3 className="font-medium text-gray-900">{step.title}</h3>
|
||||
<p className="text-gray-600">{step.description}</p>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</div>
|
||||
);
|
||||
|
||||
export default HowItWorksSection;
|
||||
@@ -0,0 +1,46 @@
|
||||
import React from 'react';
|
||||
|
||||
const useCases = [
|
||||
{
|
||||
title: 'Contract Review',
|
||||
description: 'Identify potential issues in agreements before you sign.',
|
||||
icon: 'document-text',
|
||||
},
|
||||
{
|
||||
title: 'Legal Research',
|
||||
description: 'Find precedents and regulations relevant to your question.',
|
||||
icon: 'search',
|
||||
},
|
||||
{
|
||||
title: 'Compliance Check',
|
||||
description: 'Ensure business practices align with current regulations.',
|
||||
icon: 'shield-check',
|
||||
},
|
||||
];
|
||||
|
||||
const iconPaths: Record<string, string> = {
|
||||
'document-text': 'M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z',
|
||||
search: 'M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z',
|
||||
'shield-check': 'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z',
|
||||
};
|
||||
|
||||
const UseCasesSection: React.FC = () => (
|
||||
<section className="mt-16 mb-16" id="use-cases">
|
||||
<h2 className="mb-8 text-3xl font-semibold text-gray-900 text-center">Common Use Cases</h2>
|
||||
<div className="grid gap-6 md:grid-cols-3">
|
||||
{useCases.map((u, idx) => (
|
||||
<div key={idx} className="rounded-xl border border-gray-200 bg-white p-6 shadow-sm">
|
||||
<div className="mb-4 w-12 h-12 bg-blue-50 rounded-full flex items-center justify-center">
|
||||
<svg className="h-6 w-6 text-openai-green" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d={iconPaths[u.icon]} />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 className="mb-2 text-xl font-medium text-gray-900">{u.title}</h3>
|
||||
<p className="text-gray-600">{u.description}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
export default UseCasesSection;
|
||||
+27
-179
@@ -1,211 +1,59 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
import bots from '../../../data/bots';
|
||||
import BotNavigation from '../BotNavigation';
|
||||
import './styles.css';
|
||||
|
||||
import HeroSection from './components/hero/HeroSection';
|
||||
import DisclaimerSection from './components/disclaimer/DisclaimerSection';
|
||||
import FeaturesSection from './components/features/FeaturesSection';
|
||||
import HowItWorksSection from './components/how-it-works/HowItWorksSection';
|
||||
import UseCasesSection from './components/usecases/UseCasesSection';
|
||||
import CallToActionSection from './components/cta/CallToActionSection';
|
||||
|
||||
export default function LegalExpert() {
|
||||
const bot = bots.find(b => b.slug === 'legal-expert');
|
||||
|
||||
// Menu items for navigation
|
||||
const menuItems = [
|
||||
{ id: 'features', label: 'Features', icon: '⚖️', section: 'features' },
|
||||
{ id: 'how-it-works', label: 'How It Works', icon: '🔎', section: 'how-it-works' },
|
||||
{ id: 'use-cases', label: 'Use Cases', icon: '📝', section: 'use-cases' },
|
||||
{ id: 'limitations', label: 'Limitations', icon: '⚠️', section: 'limitations' },
|
||||
{ id: 'legal-topics', label: 'Legal Topics', icon: '📚', section: 'legal-topics' },
|
||||
{ id: 'get-started', label: 'Get Started', icon: '🚀', section: 'get-started' }
|
||||
];
|
||||
|
||||
// Function to get the chat link
|
||||
const getChatLink = () => {
|
||||
return bot?.tryLink || 'https://chat.openai.com/';
|
||||
};
|
||||
const getTryLink = () => bot?.tryLink || 'https://chat.openai.com/';
|
||||
|
||||
if (!bot) {
|
||||
return <div>Bot not found</div>;
|
||||
return <div className="p-8 text-center">Lex configuration not found</div>;
|
||||
}
|
||||
|
||||
const featureItems = [
|
||||
{ title: 'Legal Research', description: 'Search statutes and case law with precision.', icon: '📚' },
|
||||
{ title: 'Document Analysis', description: 'Understand contracts and legal briefs instantly.', icon: '📄' },
|
||||
{ title: 'Case Law Insights', description: 'Surface relevant precedents for your matter.', icon: '💡' },
|
||||
{ title: 'Regulatory Compliance', description: 'Check requirements across jurisdictions.', icon: '✅' },
|
||||
{ title: 'Contract Review', description: 'Highlight risks and missing clauses automatically.', icon: '✍️' },
|
||||
];
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-white">
|
||||
{/* Bot-specific Navigation */}
|
||||
<BotNavigation
|
||||
botTitle="Lex"
|
||||
botEmoji="⚖️"
|
||||
botDescription="AI Legal Assistant"
|
||||
accentColor="blue"
|
||||
menuItems={menuItems}
|
||||
chatLink={getChatLink()}
|
||||
chatLink={getTryLink()}
|
||||
/>
|
||||
|
||||
|
||||
<main className="mx-auto max-w-screen-xl px-6 pt-24">
|
||||
{/* Title and Overview */}
|
||||
<div className="mb-16" id="features">
|
||||
<h1 className="mb-4 text-4xl font-semibold tracking-tight text-gray-900">Lex</h1>
|
||||
|
||||
{/* Legal Disclaimer */}
|
||||
<div className="mb-8 rounded-xl bg-yellow-50 p-4 border border-yellow-200">
|
||||
<div className="flex">
|
||||
<svg className="h-6 w-6 text-yellow-600 mr-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
|
||||
</svg>
|
||||
<div>
|
||||
<h3 className="font-medium text-yellow-800">Important Disclaimer</h3>
|
||||
<p className="text-yellow-700 text-sm mt-1">
|
||||
Lex provides information of a general nature and is designed for informational purposes only.
|
||||
It is not a substitute for professional legal advice. Always consult with a qualified attorney for specific legal matters.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p className="mb-8 text-lg text-gray-600">{bot.overview}</p>
|
||||
</div>
|
||||
|
||||
{/* Features Section */}
|
||||
<div className="grid gap-8 md:grid-cols-2">
|
||||
<div className="rounded-2xl border border-gray-200 bg-white p-8 shadow-sm">
|
||||
<h2 className="mb-4 text-2xl font-semibold text-gray-900">Features</h2>
|
||||
<ul className="space-y-4">
|
||||
{bot.features.map((feature, index) => (
|
||||
<li key={index} className="flex items-start">
|
||||
<svg
|
||||
className="mr-3 h-5 w-5 flex-shrink-0 text-openai-green"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="M5 13l4 4L19 7"
|
||||
/>
|
||||
</svg>
|
||||
<span className="text-gray-600">{feature}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div className="rounded-2xl border border-gray-200 bg-white p-8 shadow-sm">
|
||||
<h2 className="mb-4 text-2xl font-semibold text-gray-900">How It Works</h2>
|
||||
<ol className="space-y-4">
|
||||
<li className="flex items-start">
|
||||
<div className="mr-4 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-openai-green text-white">
|
||||
1
|
||||
</div>
|
||||
<div>
|
||||
<h3 className="font-medium text-gray-900">Ask a legal question</h3>
|
||||
<p className="text-gray-600">Type your legal question or upload a document for analysis.</p>
|
||||
</div>
|
||||
</li>
|
||||
<li className="flex items-start">
|
||||
<div className="mr-4 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-openai-green text-white">
|
||||
2
|
||||
</div>
|
||||
<div>
|
||||
<h3 className="font-medium text-gray-900">AI Analysis</h3>
|
||||
<p className="text-gray-600">Our AI analyzes your question using legal knowledge and resources.</p>
|
||||
</div>
|
||||
</li>
|
||||
<li className="flex items-start">
|
||||
<div className="mr-4 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-openai-green text-white">
|
||||
3
|
||||
</div>
|
||||
<div>
|
||||
<h3 className="font-medium text-gray-900">Get Insights</h3>
|
||||
<p className="text-gray-600">Receive clear explanations and insights to better understand your legal matter.</p>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Interactive Demo Section */}
|
||||
<section className="mt-16 mb-16">
|
||||
<h2 className="mb-8 text-3xl font-semibold text-gray-900">Try Lex</h2>
|
||||
<div className="rounded-xl border border-gray-200 bg-white p-8 shadow-sm">
|
||||
<p className="mb-4 text-gray-600">Enter a legal question or upload a document for analysis.</p>
|
||||
|
||||
<div className="mb-6">
|
||||
<textarea
|
||||
className="w-full rounded-md border-gray-300 shadow-sm focus:border-openai-green focus:ring-openai-green"
|
||||
rows={4}
|
||||
placeholder="Example: What are the key elements of a non-disclosure agreement?"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex justify-center">
|
||||
<button className="rounded-md bg-openai-green px-6 py-3 text-white hover:bg-opacity-90 transition-opacity">
|
||||
Get Legal Insights
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Use Cases Section */}
|
||||
<section className="mt-16 mb-16">
|
||||
<h2 className="mb-8 text-3xl font-semibold text-gray-900">Common Use Cases</h2>
|
||||
|
||||
<div className="grid gap-6 md:grid-cols-3">
|
||||
{[
|
||||
{
|
||||
title: "Contract Review",
|
||||
description: "Quickly identify potential issues in contracts and agreements before signing.",
|
||||
icon: "document-text"
|
||||
},
|
||||
{
|
||||
title: "Legal Research",
|
||||
description: "Find relevant precedents and regulations for your legal questions.",
|
||||
icon: "search"
|
||||
},
|
||||
{
|
||||
title: "Compliance Check",
|
||||
description: "Review business practices against relevant regulations and standards.",
|
||||
icon: "shield-check"
|
||||
}
|
||||
].map((useCase, index) => (
|
||||
<div key={index} className="rounded-xl border border-gray-200 bg-white p-6 shadow-sm">
|
||||
<div className="mb-4 w-12 h-12 bg-green-50 rounded-full flex items-center justify-center">
|
||||
<svg className="h-6 w-6 text-openai-green" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
{useCase.icon === "document-text" && (
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
||||
)}
|
||||
{useCase.icon === "search" && (
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
|
||||
)}
|
||||
{useCase.icon === "shield-check" && (
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />
|
||||
)}
|
||||
</svg>
|
||||
</div>
|
||||
<h3 className="mb-2 text-xl font-medium text-gray-900">{useCase.title}</h3>
|
||||
<p className="text-gray-600">{useCase.description}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* CTA Section */}
|
||||
<section className="mt-16 mb-16">
|
||||
<div className="rounded-xl bg-gray-50 p-8 text-center">
|
||||
<h2 className="text-3xl font-bold text-gray-900 mb-4">
|
||||
Ready to Get Started?
|
||||
</h2>
|
||||
<p className="text-lg text-gray-600 mb-6 max-w-2xl mx-auto">
|
||||
Join thousands of users who are already benefiting from our AI-powered legal assistant.
|
||||
</p>
|
||||
<div className="flex justify-center gap-4">
|
||||
<button className="rounded-md bg-openai-green px-6 py-3 text-lg font-medium text-white hover:bg-opacity-90 transition-opacity">
|
||||
Try Lex Now
|
||||
</button>
|
||||
<button className="rounded-md border-2 border-openai-green px-6 py-3 text-lg font-medium text-openai-green hover:bg-gray-50 transition-colors">
|
||||
Learn More
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<HeroSection title="Lex" overview={bot.overview} getTryLink={getTryLink} />
|
||||
<DisclaimerSection />
|
||||
<FeaturesSection features={featureItems} />
|
||||
<HowItWorksSection />
|
||||
<UseCasesSection />
|
||||
<CallToActionSection getTryLink={getTryLink} />
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Lex Bot Custom Styles */
|
||||
|
||||
.btn-primary {
|
||||
@apply inline-block px-6 py-3 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 transition-colors;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
@apply inline-block px-6 py-3 bg-white text-blue-600 font-medium rounded-lg border border-blue-600 hover:bg-blue-50 transition-colors;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
@apply bg-white p-6 rounded-lg border border-gray-200 shadow-sm transition-all duration-300;
|
||||
}
|
||||
|
||||
.feature-card:hover {
|
||||
@apply shadow-md border-blue-200;
|
||||
}
|
||||
|
||||
.bg-lex-gradient {
|
||||
background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
|
||||
}
|
||||
|
||||
.animate-fadeIn {
|
||||
animation: fadeIn 0.5s ease-out forwards;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
Reference in new issue
Block a user