generated from acm-ucr/acm-ucr-website
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1570 from acm-ucr/mailyn/ResourcesPage
Mailyn/resources page
- Loading branch information
Showing
30 changed files
with
152 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import Loading from "@/components/Loading.jsx"; | ||
import Loading from "@/components/Loading"; | ||
export default Loading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import ProtectedPage from "@/components/ProtectedPage"; | ||
import Resources from "@/components/user/resources/Resources"; | ||
|
||
const Page = () => { | ||
return ( | ||
<ProtectedPage | ||
title="User | Resources" | ||
restrictions={{ | ||
participants: [1], | ||
}} | ||
> | ||
<Resources /> | ||
</ProtectedPage> | ||
); | ||
}; | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Link as LinkLucide } from "lucide-react"; | ||
import Link from "next/link"; | ||
|
||
const Resources = () => { | ||
return ( | ||
<Link href="/user/resources"> | ||
<div className="w-full rounded-xl bg-white p-4 shadow-xl"> | ||
<div className="flex cursor-pointer items-center justify-between text-xl font-bold"> | ||
<p>Resources</p> | ||
<LinkLucide /> | ||
</div> | ||
</div> | ||
</Link> | ||
); | ||
}; | ||
|
||
export default Resources; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { TECHSTACKS } from "@/data/user/Hackpacks"; | ||
import Link from "next/link"; | ||
import { SiGithub as Github } from "@icons-pack/react-simple-icons"; | ||
|
||
type props = { | ||
text: string; | ||
techs: string[]; | ||
link: string; | ||
description: string; | ||
}; | ||
|
||
const Hackpack = ({ text, techs, link, description }: props) => { | ||
return ( | ||
<div className="rounded-xl bg-white p-3"> | ||
<Link | ||
data-cy="hackpack-link" | ||
className="flex items-center justify-between opacity-100 hover:opacity-70" | ||
href={link} | ||
target="_black" | ||
> | ||
<p className="text-lg font-semibold" data-cy="hackpack-text"> | ||
{text} | ||
</p> | ||
<Github size={20} /> | ||
</Link> | ||
|
||
<div className="my-2 flex flex-wrap gap-2" data-cy="hackpack-techs"> | ||
{techs.map((tech, index) => ( | ||
<div | ||
key={index} | ||
className="flex items-center gap-2 text-gray-400" | ||
data-cy="hackpack-tech" | ||
> | ||
<div className="text-hackathon-blue-100" data-cy="hackpack-icon"> | ||
{TECHSTACKS[tech]} | ||
</div> | ||
{tech} | ||
</div> | ||
))} | ||
|
||
<p className="mt-2">{description}</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Hackpack; |
Oops, something went wrong.