-
-
Notifications
You must be signed in to change notification settings - Fork 173
Add sponsor #1251
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
Merged
NiallJoeMaher
merged 1 commit into
codu-code:develop
from
CarolinaCobo:feat_add_sponsors
Feb 28, 2025
Merged
Add sponsor #1251
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,10 @@ | ||
| export const companies = [ | ||
| { | ||
| slug: "ninedots", | ||
| name: "Ninedots", | ||
| bio: "Trusted talent partner based in Dublin and Bahrain. We specialise in everything within the tech ecosystem, including marketing and tech sales. However, if we can’t assist, we won’t tell you we can. What we CAN do is steer you in the right direction - we believe it doesn’t cost to be helpful!", | ||
| note: "We’re incredibly grateful to Ninedots for supporting our tech community since April! Your generosity has helped us grow, bring people together, and create amazing learning opportunities through events, workshops, and networking sessions. Your support means the world to us, and we couldn’t do this without you.Thanks for believing in our mission and being a part of our journey—we’re excited for what’s ahead!", | ||
| image: "/images/sponsors/ninedots.png", | ||
| url: "https://ninedots.io", | ||
| }, | ||
| ]; |
This file contains hidden or 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,76 @@ | ||
| import { notFound } from "next/navigation"; | ||
| import { companies } from "./config"; | ||
|
|
||
| export const metadata = { | ||
| title: "Ninedots Recruitment | Codu", | ||
| description: | ||
| "Explore our community sponsors. Ninedots Recruitment connects top talent with leading companies in the tech industry.", | ||
| }; | ||
|
|
||
| type Props = { params: { slug: string } }; | ||
|
|
||
| export default async function Page({ params }: Props) { | ||
| const { slug } = params; | ||
|
|
||
| const company = companies.find((item) => item.slug === slug.toLowerCase()); | ||
|
|
||
| if (!company) return notFound(); | ||
|
|
||
| return ( | ||
| <div className="mx-auto w-full max-w-4xl px-4 py-8 sm:px-6 lg:px-8"> | ||
| <div className="overflow-hidden rounded-lg bg-white shadow dark:bg-neutral-800"> | ||
| {/* Sponsor Header */} | ||
| <div className="border-b border-neutral-200 p-6 dark:border-neutral-700"> | ||
| <div className="flex flex-col items-center gap-6 sm:flex-row"> | ||
| <div className="flex h-24 w-24 flex-shrink-0 items-center justify-center rounded-md bg-neutral-700 p-2"> | ||
| <img | ||
| src={company.image} | ||
| alt={`${company.name} logo`} | ||
| className="max-h-full max-w-full object-contain" | ||
| /> | ||
| </div> | ||
|
|
||
| <div className="flex-1 text-center sm:text-left"> | ||
| <h1 className="text-2xl font-bold text-neutral-900 dark:text-white"> | ||
| {company.name} | ||
| </h1> | ||
| <p className="mt-2 text-neutral-600 dark:text-neutral-300"> | ||
| {company.bio} | ||
| </p> | ||
|
|
||
| {company.url && ( | ||
| <a | ||
| href={company.url} | ||
| className="mt-4 inline-flex items-center text-sm font-medium text-pink-600 hover:text-pink-500 dark:text-pink-600 dark:hover:text-pink-500" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| > | ||
| Visit website | ||
| <svg | ||
| className="ml-1 h-4 w-4" | ||
| fill="currentColor" | ||
| viewBox="0 0 20 20" | ||
| > | ||
| <path | ||
| fillRule="evenodd" | ||
| d="M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z" | ||
| clipRule="evenodd" | ||
| /> | ||
| </svg> | ||
| </a> | ||
| )} | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div className="border-neutral-200 bg-neutral-100 p-4 dark:border-neutral-700 dark:bg-neutral-800"> | ||
| <a | ||
| href="/sponsorship" | ||
| className="text-sm font-medium text-neutral-500 hover:text-neutral-700 dark:text-neutral-400 dark:hover:text-neutral-300" | ||
| > | ||
| ← Back to all sponsors | ||
| </a> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| } | ||
This file contains hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Make metadata dynamic based on company slug
The metadata is currently hardcoded for Ninedots, but this is a dynamic page that could support multiple companies. Consider making the metadata dynamic based on the company found by the slug.
📝 Committable suggestion