From ef4073661a20a085d5dfbe7156523c3a36b4a5d9 Mon Sep 17 00:00:00 2001 From: ezhillragesh Date: Thu, 4 Jan 2024 21:11:51 +0530 Subject: [PATCH] Revert "fixed build errrr" This reverts commit 414680b8e64ef1be7f06c0e1793583e1f48d0808. --- app/join/page.tsx | 4 +- app/layout.tsx | 18 ++-- app/page.tsx | 2 +- app/privacy/page.tsx | 14 +-- app/programs/page.tsx | 136 +++++++++++++++------------- comps/Collection.tsx | 2 +- comps/{Program.tsx => Programs.tsx} | 2 +- 7 files changed, 96 insertions(+), 82 deletions(-) rename comps/{Program.tsx => Programs.tsx} (96%) diff --git a/app/join/page.tsx b/app/join/page.tsx index 34e3233..4bca1ec 100644 --- a/app/join/page.tsx +++ b/app/join/page.tsx @@ -9,7 +9,7 @@ const JoinUsPage: React.FC = () => {

Support Us

- SourceGuide thrives on community passion, and your support fuels our growth. Consider contributing to our project with a donation, an investment that enhances features, supports diverse projects, and solidifies SourceGuide as the go-to platform for open source enthusiasts. Your generosity catalyzes positive change, unlocking possibilities for innovation and collaborative exploration. Join us on this transformative journey; your support isn't just appreciated—it's instrumental in sculpting SourceGuide's future as a dynamic hub for open-source enthusiasts. + SourceGuide thrives on community passion, and your support fuels our growth. Consider contributing to our project with a donation, an investment that enhances features, supports diverse projects, and solidifies SourceGuide as the go-to platform for open source enthusiasts. Your generosity catalyzes positive change, unlocking possibilities for innovation and collaborative exploration. Join us on this transformative journey; your support isn't just appreciated—it's instrumental in sculpting SourceGuide's future as a dynamic hub for open-source enthusiasts.

@@ -22,7 +22,7 @@ const JoinUsPage: React.FC = () => {

Welcome to the beating heart of SourceGuide, the nucleus where dedicated contributors, much like yourself, play a pivotal role in shaping the future landscape of open source technology. At SourceGuide, we extend a warm invitation for you to immerse yourself in our vibrant community, a melting pot of diverse talents, and contribute your unique skills, innovative ideas, and boundless enthusiasm. - By joining hands with us, you aren't just a participant; you're a co-creator, an integral part of a collective journey towards excellence. Unleash your potential and become a catalyst for positive change within the open-source realm. Your collaboration is what makes SourceGuide a dynamic hub for innovation, knowledge-sharing, and collective growth. + By joining hands with us, you aren't just a participant; you're a co-creator, an integral part of a collective journey towards excellence. Unleash your potential and become a catalyst for positive change within the open-source realm. Your collaboration is what makes SourceGuide a dynamic hub for innovation, knowledge-sharing, and collective growth.

diff --git a/app/layout.tsx b/app/layout.tsx index 023230f..e032506 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,9 +1,9 @@ import type { Metadata } from 'next'; import { Poppins } from 'next/font/google'; -import Script from 'next/script'; import './globals.css'; import Navbar from '@/comps/navbar'; import Footer from '@/comps/Footer'; +import Script from 'next/script'; const inter = Poppins({ subsets: ['latin'], @@ -33,15 +33,15 @@ export default function RootLayout({ src={`https://www.googletagmanager.com/gtag/js?id=${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}`} /> - diff --git a/app/page.tsx b/app/page.tsx index 2895825..4b58666 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,7 +1,7 @@ import Image from 'next/image'; import Tile from "../comps/Tile.tsx"; import Collection from '../comps/Collection.tsx'; -import Programs from '@/comps/Program.tsx'; +import Programs from '@/comps/Programs.tsx'; import Hero from "../comps/Hero.tsx" import Footer from '@/comps/Footer.tsx'; //className="flex min-h-screen flex-col items-center justify-between p-24" diff --git a/app/privacy/page.tsx b/app/privacy/page.tsx index e513d7c..2b7b0f1 100644 --- a/app/privacy/page.tsx +++ b/app/privacy/page.tsx @@ -13,14 +13,14 @@ const PrivacyPolicy: React.FC = () => { Your privacy is important to us. This Privacy Policy explains how we handle user information when you visit our website.

-

Information We Don't Collect

+

Information We Don't Collect

We want to assure you that we do not collect any personal information from users visiting our website. You can explore our site anonymously without providing any identifiable details.

How We Use Your Information

- Since we don't collect any user information, there is no usage of such information. Your privacy is of utmost importance to us, and you can navigate our site without concerns about your personal data being used for any purposes. + Since we don't collect any user information, there is no usage of such information. Your privacy is of utmost importance to us, and you can navigate our site without concerns about your personal data being used for any purposes.

Cookies

@@ -40,9 +40,9 @@ const PrivacyPolicy: React.FC = () => {

Contact Us

- If you have any questions or concerns about our Privacy Policy, please feel free to contact us at{' '} + If you have any questions or concerns about our Privacy Policy, please feel free to contact us at - ragesh@duck.com +   ragesh@duck.com   . We are committed to addressing any inquiries related to your privacy and data security. @@ -50,13 +50,15 @@ const PrivacyPolicy: React.FC = () => {

Data Security

- We take the security of your data seriously. While we don't collect personal information, we employ measures to protect any data that may be collected through cookies or other means. Our security measures include encryption, access controls, and regular security assessments. + We take the security of your data seriously. While we don't collect personal information, we employ measures to protect any data that may be collected through cookies or other means. Our security measures include encryption, access controls, and regular security assessments.

-

Children's Privacy

+

Children's Privacy

Our website is not directed at individuals under the age of 13. We do not knowingly collect information from children. If you believe that a child has provided us with personal information, please contact us, and we will take steps to delete such information.

+ +
); diff --git a/app/programs/page.tsx b/app/programs/page.tsx index bc3f9d0..d7fc5cd 100644 --- a/app/programs/page.tsx +++ b/app/programs/page.tsx @@ -1,86 +1,98 @@ "use client" -import Program from "@/comps/Program"; +import Programs from "@/comps/Programs"; import { - Dialog, - DialogContent, - DialogHeader, - DialogTitle, - DialogTrigger, - DialogClose, + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, + DialogTrigger, + DialogFooter, + DialogClose + } from "@/components/ui/dialog" + import { Button } from "@/components/ui/button"; + import { Label } from "@/components/ui/label" + import { Input } from "@/components/ui/input" + import { CopyIcon } from "@radix-ui/react-icons" + import { useEffect, useState } from "react"; -} from "@/components/ui/dialog"; -import { Button } from "@/components/ui/button"; -import { useEffect, useState } from "react"; -type FilterOption = "" | "Yes" | "No"; -export default function Programs() { - const [filterOption, setFilterOption] = useState(""); - const handleFilterChange = (newOption: FilterOption) => { - setFilterOption(newOption); - }; - return ( -
-
+export default function programs() { + const [filterOption, setFilterOption] = useState(""); + + const handleFilterChange = (newOption) => { + setFilterOption(newOption); + }; + + return ( +
+
-

- Opensource Programs List -

-

- Discover a curated collection of diverse open source programs. Filter based on stipend availability and find opportunities that match your interests and skills. -

-
+

+ Opensource Programs List +

+

+ Discover a curated collection of diverse open source programs. Filter based on stipend availability and find opportunities that match your interests and skills. + +

+
-
- -
- ); -} - -function Filter({ onFilterChange }) { - const [opt, setOpt] = useState(""); - - useEffect(() => { - // Call the callback function whenever opt changes - onFilterChange(opt); - }, [opt, onFilterChange]); - - return ( -
- - - - - - - Filters - -
+
+ + + ); + } + + function Filter({ onFilterChange }) { + const [opt, setOpt] = useState(""); + + useEffect(() => { + // Call the callback function whenever opt changes + onFilterChange(opt); + }, [opt, onFilterChange]); + + return ( +
+ + + + + + + Filters + +
- + + + + + - - + - + - -
-
-
-
- ); -} + + + + + + + ); + } + \ No newline at end of file diff --git a/comps/Collection.tsx b/comps/Collection.tsx index 564ef51..a58c5ae 100644 --- a/comps/Collection.tsx +++ b/comps/Collection.tsx @@ -23,7 +23,7 @@ const Collection: React.FC = () => { return JSON.parse(cachedData); } else { const apiUrl = `https://api.github.com/search/issues?q=is:open+is:issue+org:${org.org}+label:%22good+first+issue%22`; - const token = process.env.NEXT_PUBLIC_AUTH_TOKEN; + const token = process.env.NEXT_PUBLIC_AUTH_TOKEN; try { const data = await fetcher(apiUrl, token); diff --git a/comps/Program.tsx b/comps/Programs.tsx similarity index 96% rename from comps/Program.tsx rename to comps/Programs.tsx index 5cf1db8..c9f94e9 100644 --- a/comps/Program.tsx +++ b/comps/Programs.tsx @@ -7,7 +7,7 @@ type Props ={ } -export default function Program({filter_option}:Props ){ +export default function Programs({filter_option}:Props ){ const [programs, setPrograms] = useState([]); const [filter,setFilter] = useState("");