-
-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathtesting-page.tsx
More file actions
200 lines (173 loc) · 6.1 KB
/
testing-page.tsx
File metadata and controls
200 lines (173 loc) · 6.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
// import clsx from "clsx";
import Layout from "@theme/Layout";
// =========For AccordionDemo========
// import {
// Accordion,
// AccordionContent,
// AccordionItem,
// AccordionTrigger,
// } from "../components/ui/accordion";
// ==============================
// ======For AlertDialogDemo==========
// import {
// AlertDialog,
// AlertDialogAction,
// AlertDialogCancel,
// AlertDialogContent,
// AlertDialogDescription,
// AlertDialogFooter,
// AlertDialogHeader,
// AlertDialogTitle,
// AlertDialogTrigger,
// } from "../components/ui/alert-dialog";
// import { Button } from "../components/ui/button";
// =====================================
// ================For AlertDemo==========
// import { Alert, AlertTitle, AlertDescription } from "../components/ui/alert";
// import { Terminal, AlertCircle } from "lucide-react";
// ========================================
// ======== AspectRatioDemo
// import Image from '@theme/IdealImage'
// import { AspectRatio } from "../components/ui/aspect-ratio";
// ========================================
// ========UserProfile
// import {
// Avatar,
// AvatarFallback,
// AvatarImage
// } from "../components/ui/avatar";
// function AccordionDemo() {
// return (
// <div className="max-w-md mx-auto mt-10">
// <h2 className="text-xl font-bold mb-4">Frequently Asked Questions</h2>
// {/* type="single" allows only one item to be open at a time */}
// <Accordion type="single" collapsible className="w-full">
// <AccordionItem value="item-1">
// <AccordionTrigger>Is it accessible?</AccordionTrigger>
// <AccordionContent>
// Yes. It adheres to the WAI-ARIA design pattern.
// </AccordionContent>
// </AccordionItem>
// <AccordionItem value="item-2">
// <AccordionTrigger>Is it styled?</AccordionTrigger>
// <AccordionContent>
// Yes. It comes with default styles that matches the other
// components' aesthetic.
// </AccordionContent>
// </AccordionItem>
// <AccordionItem value="item-3">
// <AccordionTrigger>Is it animated?</AccordionTrigger>
// <AccordionContent>
// Yes. It's animated by default, but you can disable it if you prefer.
// </AccordionContent>
// </AccordionItem>
// </Accordion>
// </div>
// );
// }
// function AlertDialogDemo() {
// const handleDelete = () => {
// // Your logic for deletion goes here
// console.log("Item deleted successfully.");
// };
// return (
// <AlertDialog>
// {/* 1. The Trigger: Usually a button that opens the dialog */}
// <AlertDialogTrigger asChild>
// <Button variant="destructive">Delete Account</Button>
// </AlertDialogTrigger>
// {/* 2. The Content: The actual modal window */}
// <AlertDialogContent>
// <AlertDialogHeader>
// <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
// <AlertDialogDescription>
// This action cannot be undone. This will permanently delete your
// account and remove your data from our servers.
// </AlertDialogDescription>
// </AlertDialogHeader>
// {/* 3. The Footer: Contains the Action and Cancel buttons */}
// <AlertDialogFooter>
// <AlertDialogCancel>Cancel</AlertDialogCancel>
// <AlertDialogAction onClick={handleDelete}>
// Continue
// </AlertDialogAction>
// </AlertDialogFooter>
// </AlertDialogContent>
// </AlertDialog>
// );
// }
// function AlertDemo() {
// return (
// <div className="flex flex-col gap-4 max-w-xl mx-auto mt-10">
// {/* Default Alert */}
// <Alert className="bg-green-700 text-white">
// <Terminal className="h-4 w-4" />
// <AlertTitle>Heads up!</AlertTitle>
// <AlertDescription>
// You can add components to your app using the cli.
// </AlertDescription>
// </Alert>
// {/* Destructive Alert */}
// <Alert variant="destructive" className="bg-red-700text-white">
// <AlertCircle className="h-4 w-4" />
// <AlertTitle>Error</AlertTitle>
// <AlertDescription>
// Your session has expired. Please log in again to continue.
// </AlertDescription>
// </Alert>
// </div>
// );
// }
// function AspectRatioDemo() {
// return (
// <div className="w-[450px] overflow-hidden rounded-md border shadow-sm">
// <AspectRatio ratio={16 / 9}>
// <img
// src="https://github.com/ajay-dhangar.png"
// alt="Photo by Drew Beamer"
// className="h-full w-full object-cover"
// />
// </AspectRatio>
// <div className="p-4">
// <h4 className="text-sm font-medium">Landscape View</h4>
// <p className="text-xs text-muted-foreground">16:9 Aspect Ratio</p>
// </div>
// </div>
// );
// }
// function UserProfile() {
// return (
// <div className="flex items-center gap-4 p-4">
// {/* 1. Standard usage with an image */}
// <Avatar>
// <AvatarImage src="https://github.com/ajay-dhangar.png" alt="@ajay-dhangar" />
// <AvatarFallback>Aj</AvatarFallback>
// </Avatar>
// {/* 2. Fallback usage (e.g., if the image URL is broken or null) */}
// <Avatar>
// <AvatarImage src="" alt="Broken Link" />
// <AvatarFallback className="bg-blue-500 text-white">
// AJ
// </AvatarFallback>
// </Avatar>
// {/* 3. Custom Sizes (using Tailwind classes) */}
// <Avatar className="h-16 w-16">
// <AvatarImage src="https://github.com/docusaurus.png" />
// <AvatarFallback>Docusaurus</AvatarFallback>
// </Avatar>
// </div>
// );
// }
export default function TestingPage() {
return (
<Layout>
<main className="h-screen">
{/* <AccordionDemo /> */}
{/* <AlertDialogDemo /> */}
{/* <AlertDemo /> */}
{/* <AspectRatioDemo /> */}
{/* <UserProfile /> */}
</main>
</Layout>
);
}