From fe42d4481a0f6280090f60863fbf9b03ff3879a9 Mon Sep 17 00:00:00 2001 From: JAYANTJOSHI001 Date: Wed, 8 Jan 2025 12:40:53 +0530 Subject: [PATCH 1/5] added faq page updated navbar added footer added contact sectiom Signed-off-by: JAYANTJOSHI001 --- app/FAQ/component/contact-section.tsx | 28 ++++ app/FAQ/component/faq-component.tsx | 86 +++++++++++ app/FAQ/component/layout.tsx | 15 ++ app/FAQ/page.tsx | 29 ++++ app/page.tsx | 155 +------------------- components/{socials.tsx => SocialLinks.tsx} | 0 components/footer.tsx | 97 ++++++++++++ components/navbar.jsx | 100 +++++++++++++ components/ui/input.tsx | 22 +++ 9 files changed, 380 insertions(+), 152 deletions(-) create mode 100644 app/FAQ/component/contact-section.tsx create mode 100644 app/FAQ/component/faq-component.tsx create mode 100644 app/FAQ/component/layout.tsx create mode 100644 app/FAQ/page.tsx rename components/{socials.tsx => SocialLinks.tsx} (100%) create mode 100644 components/footer.tsx create mode 100644 components/navbar.jsx create mode 100644 components/ui/input.tsx diff --git a/app/FAQ/component/contact-section.tsx b/app/FAQ/component/contact-section.tsx new file mode 100644 index 0000000..4e6d755 --- /dev/null +++ b/app/FAQ/component/contact-section.tsx @@ -0,0 +1,28 @@ +import { Button } from "@/components/ui/button" +import { Mail, Phone } from 'lucide-react' + +export default function ContactSection() { + return ( +
+

Still have questions?

+

Our support team is here to help you

+
+ + +
+
+ ) +} + diff --git a/app/FAQ/component/faq-component.tsx b/app/FAQ/component/faq-component.tsx new file mode 100644 index 0000000..bd09823 --- /dev/null +++ b/app/FAQ/component/faq-component.tsx @@ -0,0 +1,86 @@ +'use client' + +import { useState } from 'react' +import { Input } from "@/components/ui/input" +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, +} from "@/components/ui/accordion" +import { Search } from 'lucide-react' + +const faqs = [ + { + question: "What is Leetcode Journal, and how can it help me?", + answer: "Leetcode Journal is a tool designed to help developers track, organize, and review their Leetcode solutions. It provides an intuitive interface to save solutions, categorize problems, monitor progress, and analyze performance. It's great for personal learning and showcasing problem-solving skills." + }, + { + question: "Can I import my existing Leetcode solutions into the platform?", + answer: "Yes, Leetcode Journal supports solution imports. You can upload your solutions as files or manually enter them to categorize and analyze them within the platform." + }, + { + question: "How does the progress monitoring feature work?", + answer: "The progress monitoring feature provides detailed statistics on your problem-solving journey, including the number of problems solved by difficulty, topic, and monthly trends. It also shows your streaks and acceptance rates to keep you motivated." + }, + { + question: "Is my data secure on Leetcode Journal?", + answer: "We take data security seriously. All your solutions and progress data are encrypted and securely stored on our servers. You have complete control over your data, and it is never shared without your consent." + }, + { + question: "Can I share my Leetcode Journal with others?", + answer: "Yes, you can create a shareable portfolio of your solutions to showcase your problem-solving skills to potential employers or peers. You can customize what information is shared." + }, + { + question: "Does Leetcode Journal support team collaboration?", + answer: "Currently, Leetcode Journal is focused on individual users. However, we are exploring features for team collaboration and knowledge sharing in future updates." + } +] + +export default function FAQComponent() { + const [searchTerm, setSearchTerm] = useState('') + + const filteredFaqs = faqs.filter(faq => + faq.question.toLowerCase().includes(searchTerm.toLowerCase()) || + faq.answer.toLowerCase().includes(searchTerm.toLowerCase()) + ) + + return ( +
+
+ setSearchTerm(e.target.value)} + className="w-full pl-10 pr-4 py-2 rounded-full border-2 border-purple-300 focus:border-purple-500 focus:ring focus:ring-purple-200 focus:ring-opacity-50 transition duration-300" + /> + +
+ + {filteredFaqs.map((faq, index) => ( + + + {faq.question} + + +

+ {faq.answer} +

+
+
+ ))} +
+ {filteredFaqs.length === 0 && ( +
+

No matching questions found.

+

Try adjusting your search terms or browse all FAQs above.

+
+ )} +
+ ) +} diff --git a/app/FAQ/component/layout.tsx b/app/FAQ/component/layout.tsx new file mode 100644 index 0000000..47ced76 --- /dev/null +++ b/app/FAQ/component/layout.tsx @@ -0,0 +1,15 @@ +export default function FAQLayout({ + children, + }: { + children: React.ReactNode + }) { + return ( +
+
+ {children} +
+
+ ) + } + + \ No newline at end of file diff --git a/app/FAQ/page.tsx b/app/FAQ/page.tsx new file mode 100644 index 0000000..0107cc0 --- /dev/null +++ b/app/FAQ/page.tsx @@ -0,0 +1,29 @@ +import { Metadata } from 'next' +import FAQComponent from './component/faq-component' +import ContactSection from './component/contact-section' +import Navbar from '@/components/header' +import Navbar1 from '@/components/navbar' +import Footer from '@/components/footer' + +export const metadata: Metadata = { + title: 'FAQ - Your Company Name', + description: 'Frequently Asked Questions about our products and services', +} + +export default function FAQPage() { + return ( +
+ +
+
+

Frequently Asked Questions

+

Find answers to common questions about our products and services

+
+ + +
+
+
+ ) +} + diff --git a/app/page.tsx b/app/page.tsx index 78192eb..8762f38 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -24,10 +24,11 @@ import { } from "@/components/ui/carousel"; import { ThemeToggle } from "@/components/theme-toggle"; import { BookOpen, CheckCircle, Github } from "lucide-react"; -import { SocialLinks } from "@/components/socials"; +import { SocialLinks } from "@/components/SocialLinks"; import { Highlight } from "@/components/ui/hero-hihglight"; import Navbar from "@/components/header"; import PricingCard from "@/components/LandingComponents/PriceCard"; +import Footer from "@/components/footer"; export default function LandingPage() { return ( @@ -236,157 +237,7 @@ export default function LandingPage() { -
-
-
-
- - LeetCode Journal -
- -
-
-
-

Product

-
    -
  • - - Features - -
  • -
  • - - Pricing - -
  • -
  • - - FAQ - -
  • -
-
-
-

Company

-
    -
  • - - About - -
  • -
  • - - Blog - -
  • -
  • - - Careers - -
  • -
-
-
-

Resources

-
    -
  • - - Documentation - -
  • -
  • - - Community - -
  • -
  • - - Support - -
  • -
-
-
-

Legal

-
    -
  • - - Privacy Policy - -
  • -
  • - - Terms of Service - -
  • -
  • - - Cookie Policy - -
  • -
-
-
-
-

- © 2023 LeetCode Journal. All rights reserved. -

-
-
-
+