Skip to content

Commit

Permalink
add Flags
Browse files Browse the repository at this point in the history
  • Loading branch information
yashppawar committed Jan 15, 2025
1 parent 1c05ec7 commit b7225f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions app/contact-us/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Textarea } from "@/components/ui/textarea";
import { toast } from "sonner";

const formSchema = z.object({
name: z.string().min(2, "Name must be at least 2 characters"),
name: z.string().min(3, "Name must be at least 3 characters"),
email: z.string().email("Please enter a valid email address"),
message: z.string().min(10, "Message must be at least 10 characters"),
});
Expand All @@ -35,8 +35,9 @@ export default function ContactForm() {
setIsSubmitting(true);
try {
// Simulate API call
await new Promise((resolve) => setTimeout(resolve, 1000));
toast.success(JSON.stringify(data, null, 2));
await new Promise((resolve) => setTimeout(resolve, 500));
// toast.success(JSON.stringify(data, null, 2));
toast.success("Functionality is not available for the now.");
reset();
} catch {
toast.error("Failed to send message. Please try again.");
Expand Down Expand Up @@ -108,7 +109,7 @@ export default function ContactForm() {
<Label htmlFor="message">Message</Label>
<Textarea
id="message"
placeholder="Type your message here"
placeholder="Type your _M3ss@G3s}"
{...register("message")}
aria-describedby="message-error"
className="min-h-[150px] bg-base-100 text-white"
Expand Down
2 changes: 1 addition & 1 deletion components/home/faqData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const faqItems: FAQItem[] = [
},
{
question: "Are there any prerequisites for joining NetAcad courses?",
answer: "Prerequisites vary depending on the course. While some introductory courses don't require prior knowledge, advanced courses may have specific prerequisites. It's best to check the course description or consult with the NetAcad coordinator."
answer: "Prerequisites vary depending on the course. While some introductory courses don't require prior knowledge, advanced courses may have specific prerequisites. It's best to check the course description or consult with the NetAcad coordinator. {EncRypt"
},
{
question: "How do I register for a NetAcad course at VIIT Pune?",
Expand Down

0 comments on commit b7225f5

Please sign in to comment.