Skip to content

Commit

Permalink
Revert "fixed build errrr"
Browse files Browse the repository at this point in the history
This reverts commit 414680b.
  • Loading branch information
ezhillragesh committed Jan 4, 2024
1 parent 414680b commit ef40736
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 82 deletions.
4 changes: 2 additions & 2 deletions app/join/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const JoinUsPage: React.FC = () => {
<section className='mb-4'>
<h1 className="text-5xl font-semibold mb-4">Support Us</h1>
<p className="text-lg text-muted-foreground m-[3rem] ">
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&apos;t just appreciated—it&apos;s instrumental in sculpting SourceGuide&apos;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.
</p>
<Link href="https://www.buymeacoffee.com/sourceguide">
<Button> <CircleDollarSign className="mr-2 h-5 w-5" /> Donate Now</Button>
Expand All @@ -22,7 +22,7 @@ const JoinUsPage: React.FC = () => {
<p className="text-lg text-muted-foreground m-[3rem]">
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&apos;t just a participant; you&apos;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.
</p>
<div className="flex justify-center space-x-4">
<Link href="https://github.com/sourceguidehq">
Expand Down
18 changes: 9 additions & 9 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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'],
Expand Down Expand Up @@ -33,15 +33,15 @@ export default function RootLayout({
src={`https://www.googletagmanager.com/gtag/js?id=${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}`}
/>

<Script strategy="lazyOnload" id="google-analytics">
<Script strategy="lazyOnload">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}', {
page_path: window.location.pathname,
});
`}
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}', {
page_path: window.location.pathname,
});
`}
</Script>

<body className={inter.className}>
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
14 changes: 8 additions & 6 deletions app/privacy/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
</p>

<h2 className="text-2xl font-semibold mb-2">Information We Don&apos;t Collect</h2>
<h2 className="text-2xl font-semibold mb-2">Information We Don't Collect</h2>
<p className="mb-6">
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.
</p>

<h2 className="text-2xl font-semibold mb-2">How We Use Your Information</h2>
<p className="mb-6">
Since we don&apos;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.
</p>

<h2 className="text-2xl font-semibold mb-2">Cookies</h2>
Expand All @@ -40,23 +40,25 @@ const PrivacyPolicy: React.FC = () => {

<h2 className="text-2xl font-semibold mb-2">Contact Us</h2>
<p className="mb-6">
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
<a href='mailto:[email protected]' className='text-blue-300'>
[email protected]
&nbsp; [email protected] &nbsp;
</a>.

We are committed to addressing any inquiries related to your privacy and data security.
</p>

<h2 className="text-2xl font-semibold mb-2">Data Security</h2>
<p className="mb-6">
We take the security of your data seriously. While we don&apos;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.
</p>

<h2 className="text-2xl font-semibold mb-2">Children&apos;s Privacy</h2>
<h2 className="text-2xl font-semibold mb-2">Children's Privacy</h2>
<p className="mb-6">
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.
</p>


</div>
</>
);
Expand Down
136 changes: 74 additions & 62 deletions app/programs/page.tsx
Original file line number Diff line number Diff line change
@@ -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<FilterOption>("");

const handleFilterChange = (newOption: FilterOption) => {
setFilterOption(newOption);
};

return (
<div>
<section className="mx-4 ">
export default function programs() {
const [filterOption, setFilterOption] = useState("");

const handleFilterChange = (newOption) => {
setFilterOption(newOption);
};

return (
<div>
<section className="mx-4 ">
<div className="container flex flex-col items-center gap-4 text-center">
<h1 className="tracking-tight font-semibold text-2xl sm:text-5xl md:text-6xl lg:text-5xl mb-4 dark:text-white">
Opensource Programs List
</h1>
<p className="max-w-[42rem] leading-normal dark:text-white text-muted-foreground sm:text-xl sm:leading-8">
Discover a curated collection of diverse open source programs. Filter based on stipend availability and find opportunities that match your interests and skills.
</p>
</div>
<h1 className="tracking-tight font-semibold text-2xl sm:text-5xl md:text-6xl lg:text-5xl mb-4 dark:text-white">
Opensource Programs List
</h1>
<p className="max-w-[42rem] leading-normal dark:text-white text-muted-foreground sm:text-xl sm:leading-8">
Discover a curated collection of diverse open source programs. Filter based on stipend availability and find opportunities that match your interests and skills.

</p>
</div>
<Filter onFilterChange={handleFilterChange} />
</section>
<Program filter_option={filterOption} />
</div>
);
}

function Filter({ onFilterChange }) {
const [opt, setOpt] = useState("");

useEffect(() => {
// Call the callback function whenever opt changes
onFilterChange(opt);
}, [opt, onFilterChange]);

return (
<div className="dark:text-white dark:bg-[#09090B]">
<Dialog>
<DialogTrigger asChild>
<Button variant="outline">Filters</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-md">
<DialogHeader className="dark:text-white ">
<DialogTitle className="dark:text-white ">Filters</DialogTitle>
</DialogHeader>
<div className="flex items-center space-x-2">
</section>
<Programs filter_option={filterOption} />
</div>
);
}
function Filter({ onFilterChange }) {
const [opt, setOpt] = useState("");
useEffect(() => {
// Call the callback function whenever opt changes
onFilterChange(opt);
}, [opt, onFilterChange]);
return (
<div className="dark:text-white dark:bg-[#09090B]">
<Dialog>
<DialogTrigger asChild>
<Button variant="outline">Filters</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-md">
<DialogHeader className="dark:text-white ">
<DialogTitle className="dark:text-white ">Filters</DialogTitle>
</DialogHeader>
<div className="flex items-center space-x-2">
<DialogClose asChild>
<Button size="sm" className="px-3" onClick={() => setOpt("Yes")}>
<span className="sr-only">Copy</span>
With stipend
</Button>
</DialogClose>
</DialogClose>



<DialogClose asChild>

<DialogClose asChild>
<Button onClick={() => setOpt("No")} size="sm" className="px-3">
<span className="sr-only">Copy</span>
No stipend
</Button>
</DialogClose>
</DialogClose>

<DialogClose asChild>
<DialogClose asChild>
<Button size="sm" className="px-3" onClick={() => setOpt("")}>
<span className="sr-only">Copy</span>
Default
</Button>
</DialogClose>
</div>
</DialogContent>
</Dialog>
</div>
);
}
</DialogClose>

</div>
</DialogContent>
</Dialog>
</div>
);
}

2 changes: 1 addition & 1 deletion comps/Collection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion comps/Program.tsx → comps/Programs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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("");

Expand Down

0 comments on commit ef40736

Please sign in to comment.