Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Open project links in new tab and resolved invalid <Link> with <a> child error. #244

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/components/Banner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ export function Banner() {
Learn how to apply for an opportunity to work on open-source projects and gain real-world experience through Google Summer of Code.
</p>
<div className="mt-5">
<Link href="/apply">
<a className="group relative rounded-lg inline-flex items-center overflow-hidden bg-white dark:bg-black px-8 py-3 text-black dark:text-white focus:outline-none font-mono font-semibold">
Apply to GSoC with AOSSIE
</a>
<Link
href="/apply"
className="group relative rounded-lg inline-flex items-center overflow-hidden bg-white dark:bg-black px-8 py-3 text-black dark:text-white focus:outline-none font-mono font-semibold"
>
Apply to GSoC with AOSSIE
</Link>
</div>
</div>
Expand Down
70 changes: 20 additions & 50 deletions src/pages/projects.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Image from 'next/image'
import Head from 'next/head'
import Image from 'next/image';
import Head from 'next/head';

import { Container } from '@/components/Container'
import { SectionHeading } from '@/components/SectionHeading'
import { Card } from '@/components/Card'
import projects from '@/helper/projects'
import { Container } from '@/components/Container';
import { SectionHeading } from '@/components/SectionHeading';
import { Card } from '@/components/Card';
import projects from '@/helper/projects';

function LinkIcon(props) {
return (
Expand All @@ -14,44 +14,41 @@ function LinkIcon(props) {
fill="currentColor"
/>
</svg>
)
);
}

export default function Projects() {
return (
<>
<Head>
<title>
Projects
</title>
<meta
name="description"
content="About AOSSIE's Projects"
/>
<title>Projects</title>
<meta name="description" content="About AOSSIE's Projects" />
</Head>
<Container className="mt-20 mb-28">
<div className="mt-5">
<p className='text-zinc-600 dark:text-zinc-400 text-lg font-mono leading-7'>Our Projects, where we showcase our tech wizardry and code-slinging skills! <br></br> Our portfolio is a treasure trove of open-source gems, featuring projects in a variety of languages and areas. Take a peek and see how we&apos;re making a difference with our technical spells.</p>
<p className="text-zinc-600 dark:text-zinc-400 text-lg font-mono leading-7">
Our Projects, where we showcase our tech wizardry and code-slinging skills! <br />
Our portfolio is a treasure trove of open-source gems, featuring projects in a variety of languages and areas. Take a peek and see how we&apos;re making a difference with our technical spells.
</p>
</div>
<div className='mt-16'>
{/* <h1 className="text-4xl font-mono font-extrabold tracking-tighter text-zinc-800 dark:text-zinc-100">
Active Projects
</h1> */}
<div className="mt-16">
<SectionHeading>Active Projects</SectionHeading>
<p className='text-zinc-600 dark:text-zinc-400 text-lg font-mono leading-7 mt-3'>The following projects are currently actively maintained and mentors are available!</p>
<p className="text-zinc-600 dark:text-zinc-400 text-lg font-mono leading-7 mt-3">
The following projects are currently actively maintained and mentors are available!
</p>
<ul role="list" className="grid grid-cols-1 gap-x-12 gap-y-16 sm:grid-cols-2 lg:grid-cols-3 mt-12 mb-16">
{projects.map((project) => (
<Card as="li" key={project.name}>
<div className="relative z-10 flex h-20 w-20 items-center justify-center rounded-lg bg-white shadow-md shadow-zinc-800/20 ring-1 ring-zinc-900/5 dark:border dark:border-zinc-700/50 dark:bg-zinc-800 dark:ring-white/10 dark:shadow-white/10">
<Image
src={project.logo}
alt="Project Logo"
className='p-2'
className="p-2"
unoptimized
/>
</div>
<h2 className="mt-6 text-2xl font-semibold font-mono text-zinc-800 dark:text-zinc-100">
<Card.Link href={project.link.href}>{project.name}</Card.Link>
<Card.Link href={project.link.href} target="_blank">{project.name}</Card.Link>
</h2>
<Card.Description>{project.description}</Card.Description>
<p className="relative z-10 mt-6 flex text-md font-semibold font-mono text-zinc-600 transition group-hover:text-[#00843D] dark:group-hover:text-yellow-400 dark:text-zinc-200">
Expand All @@ -61,35 +58,8 @@ export default function Projects() {
</Card>
))}
</ul>

{/* <h1 className="text-4xl font-mono font-extrabold tracking-tighter text-zinc-800 dark:text-zinc-100">
InActive Projects
</h1> */}
{/* <SectionHeading>Past Projects</SectionHeading>
<p className='text-zinc-600 dark:text-zinc-400 text-lg font-mono leading-7 mt-3'>The following projects are currently inactive. If you are brave and independent, you are welcome and even encouraged to contribute to these projects as well. However, help from mentors will be significantly reduced.</p>
<ul role="list" className="grid grid-cols-1 gap-x-12 gap-y-16 sm:grid-cols-2 lg:grid-cols-3 mt-12 mb-16">
{projects.map((project) => (
<Card as="li" key={project.name}>
<div className="relative z-10 flex h-20 w-20 items-center justify-center rounded-lg bg-white shadow-md shadow-zinc-800/20 ring-1 ring-zinc-900/5 dark:border dark:border-zinc-700/50 dark:bg-zinc-800 dark:ring-white/10 dark:shadow-white/10">
<Image
src={project.logo}
alt="Project Logo"
unoptimized
/>
</div>
<h2 className="mt-6 text-2xl font-semibold font-mono text-zinc-800 dark:text-zinc-100">
<Card.Link href={project.link.href}>{project.name}</Card.Link>
</h2>
<Card.Description>{project.description}</Card.Description>
<p className="relative z-10 mt-6 flex text-md font-semibold font-mono text-zinc-600 transition group-hover:text-[#00843D] dark:group-hover:text-yellow-400 dark:text-zinc-200">
<LinkIcon className="h-6 w-6 flex-none scale-110" />
<span className="ml-2">{project.link.label}</span>
</p>
</Card>
))}
</ul> */}
</div>
</Container>
</>
)
);
}