[dyad] Reverted recent design changes - wrote 1 file(s), deleted 1 file(s)
This commit is contained in:
@@ -8,7 +8,6 @@ import { Globe } from "lucide-react";
|
|||||||
import { extractMetaData } from "@/app/actions";
|
import { extractMetaData } from "@/app/actions";
|
||||||
import { LengthIndicator } from "./length-indicator";
|
import { LengthIndicator } from "./length-indicator";
|
||||||
import { CopyButton } from "./copy-button";
|
import { CopyButton } from "./copy-button";
|
||||||
import { ResultsSkeleton } from "./results-skeleton";
|
|
||||||
|
|
||||||
interface MetaData {
|
interface MetaData {
|
||||||
title: string;
|
title: string;
|
||||||
@@ -60,23 +59,21 @@ export function MetaForm() {
|
|||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
className="w-full sm:w-auto h-12 px-8 rounded-lg font-semibold transition-all hover:scale-105 active:scale-100"
|
className="w-full sm:w-auto h-12 px-8 rounded-lg font-semibold transition-all"
|
||||||
>
|
>
|
||||||
{loading ? "Extracting..." : "Extract"}
|
{loading ? "Extracting..." : "Extract"}
|
||||||
</Button>
|
</Button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{loading && <ResultsSkeleton />}
|
{error && (
|
||||||
|
|
||||||
{error && !loading && (
|
|
||||||
<Card className="border-destructive bg-destructive/10">
|
<Card className="border-destructive bg-destructive/10">
|
||||||
<CardContent className="p-4">
|
<CardContent className="p-4">
|
||||||
<p className="text-destructive text-center font-medium">{error}</p>
|
<p className="text-destructive text-center">{error}</p>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{metaData && !loading && (
|
{metaData && (
|
||||||
<Card className="w-full shadow-lg rounded-lg">
|
<Card className="w-full shadow-lg rounded-lg">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-xl text-card-foreground">
|
<CardTitle className="text-xl text-card-foreground">
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
import { Card, CardContent, CardHeader } from "@/components/ui/card";
|
|
||||||
import { Skeleton } from "@/components/ui/skeleton";
|
|
||||||
|
|
||||||
export function ResultsSkeleton() {
|
|
||||||
return (
|
|
||||||
<Card className="w-full shadow-lg rounded-lg">
|
|
||||||
<CardHeader>
|
|
||||||
<Skeleton className="h-6 w-48" />
|
|
||||||
</CardHeader>
|
|
||||||
<CardContent className="space-y-6">
|
|
||||||
<div>
|
|
||||||
<Skeleton className="h-5 w-32 mb-2" />
|
|
||||||
<Skeleton className="aspect-video w-full rounded-md" />
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div className="flex items-center justify-between mb-1">
|
|
||||||
<Skeleton className="h-5 w-24" />
|
|
||||||
</div>
|
|
||||||
<Skeleton className="h-12 w-full" />
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div className="flex items-center justify-between mb-1">
|
|
||||||
<Skeleton className="h-5 w-36" />
|
|
||||||
</div>
|
|
||||||
<Skeleton className="h-20 w-full" />
|
|
||||||
</div>
|
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user