Skip to content

Commit 08c8f69

Browse files
committed
fix: update contact email in CODE_OF_CONDUCT.md, correct project name in SUPPORT.md, and enhance color validation in ProjectCard component
1 parent 85fb7a1 commit 08c8f69

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ This Code of Conduct applies both within project spaces and in public spaces whe
3434

3535
## Enforcement
3636

37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [INSERT EMAIL ADDRESS]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at opensource@github.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
3838

3939
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
4040

4141
## Attribution
4242

4343
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
44-
45-
[homepage]: https://www.contributor-covenant.org

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Your site will be live at: `https://YOUR_USERNAME.github.io/YOUR_REPO_NAME`
132132

133133
| Technology | Version | Purpose |
134134
|------------|---------|---------|
135-
| [Next.js](https://nextjs.org/) | 15 | React framework with App Router |
135+
| [Next.js](https://nextjs.org/) | 16 | React framework with App Router |
136136
| [React](https://react.dev/) | 19 | UI library |
137137
| [Tailwind CSS](https://tailwindcss.com/) | 4 | Utility-first styling |
138138
| [TypeScript](https://www.typescriptlang.org/) | 5 | Type safety |

SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This project uses GitHub issues to track bugs and feature requests. Please searc
77

88
For help or questions about using this project, please open a new issue. The maintainers and community will try to help you as best as they can.
99

10-
**PLANVENTURE** is not actively developed but is maintained by GitHub staff **and the community**. We will do our best to respond to support and community questions in a timely manner.
10+
**GITFOLIO** is not actively developed but is maintained by GitHub staff **and the community**. We will do our best to respond to support and community questions in a timely manner.
1111

1212

1313
## GitHub Support Policy

app/page.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ export default function Home() {
188188
}
189189

190190
function ProjectCard({ title, description, tags, color, href }: { title: string, description: string, tags: string[], color: "cyan" | "fuchsia" | "purple" | "yellow", href: string }) {
191+
// Valid color options for the card styling
192+
const validColors = ["cyan", "fuchsia", "purple", "yellow"] as const;
193+
194+
// Runtime validation: default to "cyan" if an invalid color is provided
195+
const safeColor = validColors.includes(color) ? color : "cyan";
196+
191197
const colorClasses = {
192198
cyan: "group-hover:border-cyan-500/50 group-hover:shadow-[0_0_20px_rgba(34,211,238,0.2)]",
193199
fuchsia: "group-hover:border-fuchsia-500/50 group-hover:shadow-[0_0_20px_rgba(232,121,249,0.2)]",
@@ -203,12 +209,12 @@ function ProjectCard({ title, description, tags, color, href }: { title: string,
203209
};
204210

205211
return (
206-
<Link href={href} className={`group block space-y-4 p-6 bg-[#0a0a1a] border border-cyan-900/30 transition-all duration-300 ${colorClasses[color]}`}>
212+
<Link href={href} className={`group block space-y-4 p-6 bg-[#0a0a1a] border border-cyan-900/30 transition-all duration-300 ${colorClasses[safeColor]}`}>
207213
<div className="flex justify-between items-start">
208-
<h3 className={`text-xl font-bold text-white tracking-wider transition-colors ${textColors[color]}`}>
214+
<h3 className={`text-xl font-bold text-white tracking-wider transition-colors ${textColors[safeColor]}`}>
209215
{title}
210216
</h3>
211-
<ArrowUpRightIcon className={`w-5 h-5 text-cyan-700 transition-all group-hover:translate-x-1 group-hover:-translate-y-1 ${textColors[color]}`} />
217+
<ArrowUpRightIcon className={`w-5 h-5 text-cyan-700 transition-all group-hover:translate-x-1 group-hover:-translate-y-1 ${textColors[safeColor]}`} />
212218
</div>
213219
<p className="text-sm text-cyan-100/60 leading-relaxed font-light border-l border-cyan-900/50 pl-4">
214220
{description}

0 commit comments

Comments
 (0)