Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import "./globals.css";
import { Footer } from "@/components/Footer";

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "Expert AI Panel",
description: "Generate panel discussions with AI-powered experts",
};

export default function RootLayout({
Expand All @@ -14,7 +14,7 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<body className="flex flex-col min-h-screen">
<body className="flex flex-col min-h-screen bg-neutral-950">
{children}
<Footer />
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default function ExpertAIPanel() {
};

return (
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-slate-800 to-gray-900 text-gray-100 p-4">
<div className="min-h-screen bg-gradient-to-br from-neutral-900 via-slate-900 to-neutral-950 text-gray-100 p-4">
<div className="container mx-auto max-w-3xl">
<Header
panels={panels}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Link from "next/link";

export function Footer() {
return (
<footer className="py-6 text-center text-neutral-400 text-sm bg-gray-900 ">
<footer className="py-6 mt-auto text-center text-neutral-400 text-sm bg-neutral-900 border-t border-neutral-700">
<p>
© {new Date().getFullYear()}{" "}
<Link
Expand Down
23 changes: 0 additions & 23 deletions src/components/PersonList.tsx

This file was deleted.

6 changes: 6 additions & 0 deletions src/components/ResponseList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ export function ResponseList({ responses, isLoading }: ResponseListProps) {
</p>
</CardContent>
</Card>
) : responses.length === 0 ? (
<Card className="bg-secondary bg-opacity-50 backdrop-filter backdrop-blur-lg border-secondary">
<CardContent className="p-4">
<p className="text-neutral-300 text-center">No responses yet.</p>
</CardContent>
</Card>
) : (
<>
{responses.map((response, index) => (
Expand Down
4 changes: 2 additions & 2 deletions src/components/SettingsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
import { useState } from "react";
import { useRouter } from 'next/router';
import { useRouter } from 'next/navigation';

type SettingsDialogProps = {
isOpen: boolean;
Expand Down Expand Up @@ -49,7 +49,7 @@ export function SettingsDialog({

onSave(localApiKey, localProvider);
onClose();
router.reload(); // Reload the page to ensure the new configuration is used
router.refresh(); // Refresh the page to ensure the new configuration is used
} catch (error) {
console.error('Error saving configuration:', error);
// Handle error (e.g., show an error message to the user)
Expand Down
4 changes: 1 addition & 3 deletions src/data/examplePanels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const examplePanels: Panel[] = [
context: "Expertise in software, philanthropy, and global health initiatives",
},
],
apiKey: "",
provider: "openai",
},
{
Expand All @@ -48,7 +47,6 @@ export const examplePanels: Panel[] = [
context: "Known for critiques of traditional morality and religion",
},
],
apiKey: "",
provider: "anthropic",
},
];
];