|
| 1 | +import Image from "next/image"; |
| 2 | +import Link from "next/link"; |
| 3 | + |
| 4 | +const projects = [ |
| 5 | + { |
| 6 | + name: "The New HOC", |
| 7 | + description: |
| 8 | + "A modern, responsive, and user-friendly website for Hall of Codes, built with Next.js and Tailwind CSS. It serves as a platform to showcase our community, projects, and resources for developers.", |
| 9 | + author: "@mrepol742", |
| 10 | + github: "hallofcodes/hallofcodes.github.io", |
| 11 | + website: "https://hallofcodes.github.io", |
| 12 | + }, |
| 13 | + { |
| 14 | + name: "Canis Chatbot", |
| 15 | + description: |
| 16 | + "A scalable, modular WhatsApp chatbot built in TypeScript. It leverages modern best practices, lean architecture, Prisma ORM, Dockerization, and environment-based configuration to deliver a robust, flexible successor to Orion.", |
| 17 | + author: "@mrepol742", |
| 18 | + github: "mrepol742/canis-chatbot", |
| 19 | + website: "https://www.melvinjonesrepol.com/projects/canis-chatbot", |
| 20 | + }, |
| 21 | + { |
| 22 | + name: "phpspa", |
| 23 | + description: |
| 24 | + "A lightweight, component-based PHP library for building Single Page Applications (SPAs) without relying on heavy frontend frameworks.", |
| 25 | + author: "@dconco", |
| 26 | + github: "dconco/phpspa", |
| 27 | + website: "https://phpspa.readthedocs.io", |
| 28 | + }, |
| 29 | + { |
| 30 | + name: "bemyvalentine", |
| 31 | + description: "", |
| 32 | + author: "@hadestia", |
| 33 | + github: "hallofcodes/bemyvalentine", |
| 34 | + }, |
| 35 | + { |
| 36 | + name: "Hall of Codes", |
| 37 | + description: |
| 38 | + "A community-driven platform for developers to share knowledge, collaborate on projects, and enhance their coding skills.", |
| 39 | + author: "@mrepol742", |
| 40 | + github: "hallofcodes/hallofcodes-vue", |
| 41 | + website: "https://hallofcodes.github.io", |
| 42 | + }, |
| 43 | + { |
| 44 | + name: "Orion Chatbot", |
| 45 | + description: |
| 46 | + "Meet the lightning-fast Facebook Messenger chatbot, seamlessly managing multiple accounts with access to 271 commands.", |
| 47 | + author: "@mrepol742", |
| 48 | + github: "mrepol742/project-orion", |
| 49 | + website: "https://www.melvinjonesrepol.com/projects/orion-chatbot", |
| 50 | + }, |
| 51 | + { |
| 52 | + name: "2022-Countdown", |
| 53 | + description: "2022 New Year End Countdown by Salaudeen Jami", |
| 54 | + author: "@salaudeenjami", |
| 55 | + github: "hallofcodes/2022-countdown", |
| 56 | + }, |
| 57 | +]; |
| 58 | + |
| 59 | +export default function Projects() { |
| 60 | + return ( |
| 61 | + <main className="bg-white dark:bg-gray-900"> |
| 62 | + <div className="mx-auto w-full max-w-screen-xl p-4 py-6 lg:py-8"> |
| 63 | + <h1 className="flex items-center text-5xl font-extrabold dark:text-white"> |
| 64 | + Open-Source |
| 65 | + <span className="bg-blue-100 text-blue-800 text-2xl font-semibold me-2 px-2.5 py-0.5 rounded dark:bg-blue-200 dark:text-blue-800 ms-2"> |
| 66 | + Projects |
| 67 | + </span> |
| 68 | + </h1> |
| 69 | + <p className="mt-2 text-lg font-normal text-gray-500 lg:text-xl dark:text-gray-400"> |
| 70 | + We love open-source here at Hall of Codes and here are the few |
| 71 | + examples of the open-source projects developed by our members. |
| 72 | + </p> |
| 73 | + |
| 74 | + <div className="mt-10 grid md:grid-cols-2 lg:grid-cols-3 gap-8"> |
| 75 | + {projects.map((project, index) => ( |
| 76 | + <div |
| 77 | + key={index} |
| 78 | + className="bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-8 md:p-12" |
| 79 | + > |
| 80 | + <Image |
| 81 | + src={`https://avatars.githubusercontent.com/${project.name}?s=192`} |
| 82 | + className="rounded-full mb-4" |
| 83 | + alt="Project Photo" |
| 84 | + width={192} |
| 85 | + height={192} |
| 86 | + /> |
| 87 | + <span className="mt-10 bg-purple-100 text-purple-800 text-xs font-medium inline-flex items-center px-2.5 py-0.5 rounded-md dark:bg-gray-700 dark:text-purple-400 mb-2"> |
| 88 | + {project.author} |
| 89 | + </span> |
| 90 | + <h2 className="text-gray-900 dark:text-white text-3xl font-extrabold mb-2"> |
| 91 | + {project.name} |
| 92 | + </h2> |
| 93 | + <p className="text-lg font-normal text-gray-500 dark:text-gray-400 mb-4"> |
| 94 | + {project.description} |
| 95 | + </p> |
| 96 | + <Link |
| 97 | + href={`https://github.com/${project.github}`} |
| 98 | + className="text-blue-600 dark:text-blue-500 hover:underline font-medium text-lg inline-flex items-center" |
| 99 | + > |
| 100 | + Source |
| 101 | + <svg |
| 102 | + className="w-3.5 h-3.5 ms-2 rtl:rotate-180" |
| 103 | + aria-hidden="true" |
| 104 | + xmlns="http://www.w3.org/2000/svg" |
| 105 | + fill="none" |
| 106 | + viewBox="0 0 14 10" |
| 107 | + > |
| 108 | + <path |
| 109 | + stroke="currentColor" |
| 110 | + strokeLinecap="round" |
| 111 | + strokeLinejoin="round" |
| 112 | + strokeWidth="2" |
| 113 | + d="M1 5h12m0 0L9 1m4 4L9 9" |
| 114 | + /> |
| 115 | + </svg> |
| 116 | + </Link>{" "} |
| 117 | + |
| 118 | + {project.website && ( |
| 119 | + <Link |
| 120 | + href={project.website} |
| 121 | + className="text-blue-600 dark:text-blue-500 hover:underline font-medium text-lg inline-flex items-center" |
| 122 | + > |
| 123 | + Website |
| 124 | + <svg |
| 125 | + className="w-3.5 h-3.5 ms-2 rtl:rotate-180" |
| 126 | + aria-hidden="true" |
| 127 | + xmlns="http://www.w3.org/2000/svg" |
| 128 | + fill="none" |
| 129 | + viewBox="0 0 14 10" |
| 130 | + > |
| 131 | + <path |
| 132 | + stroke="currentColor" |
| 133 | + strokeLinecap="round" |
| 134 | + strokeLinejoin="round" |
| 135 | + strokeWidth="2" |
| 136 | + d="M1 5h12m0 0L9 1m4 4L9 9" |
| 137 | + /> |
| 138 | + </svg> |
| 139 | + </Link> |
| 140 | + )} |
| 141 | + </div> |
| 142 | + ))} |
| 143 | + </div> |
| 144 | + </div> |
| 145 | + </main> |
| 146 | + ); |
| 147 | +} |
0 commit comments