From de9943e7e0fbd576ac5bd76de64c6affc3e33ed9 Mon Sep 17 00:00:00 2001 From: AbdulrehmanCUI Date: Wed, 24 Jun 2026 03:00:17 +0500 Subject: [PATCH] Update courseCatalog.js --- src/features/language/courseCatalog.js | 61 +++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git a/src/features/language/courseCatalog.js b/src/features/language/courseCatalog.js index 1d171ec..41031ea 100644 --- a/src/features/language/courseCatalog.js +++ b/src/features/language/courseCatalog.js @@ -8,6 +8,7 @@ import { Table2, Terminal, Presentation, + Coffee, } from "lucide-react"; export function languageKey(value = "") { @@ -107,8 +108,8 @@ export const languageCourses = { description: "Master the art of plotting, charts, and customizing beautiful data science visualizations from scratch.", href: "/learn/matplotlib-py", - accent: "#239120", // Give it a distinct color hex code - icon: Presentation, // You can use 'Presentation', 'LineChart', or 'BarChart2' from lucide-react + accent: "#239120", + icon: Presentation, }, ], javascript: [ @@ -144,6 +145,55 @@ export const languageCourses = { accent: "#179c24", }, ], + + // ── Java Courses ───────────────────────────────────────────────────────────── + java: [ + { + title: "Java Fundamentals", + tag: "Beginner Course", + icon: Coffee, + description: + "Java syntax, variables, control flow, methods, arrays, classes, strings, and user input — everything to write real Java from scratch.", + href: "/hub?language=Java&category=01-beginner", + accent: "#e76f00", + }, + { + title: "Java Intermediate", + tag: "OOP Course", + icon: Boxes, + description: + "Inheritance, interfaces, collections, exception handling, generics, and file I/O — the core pillars of professional Java.", + href: "/hub?language=Java&category=02-intermediate", + accent: "#f59e0b", + }, + { + title: "Java Advanced", + tag: "Advanced Course", + icon: Layers3, + description: + "Streams API, lambda expressions, multithreading, Optional, and JDBC — write fast, modern, production-ready Java.", + href: "/hub?language=Java&category=03-advanced", + accent: "#3b82f6", + }, + { + title: "Spring Boot & REST", + tag: "Professional Course", + icon: Grid3x3, + description: + "Build REST APIs with Spring Boot, Spring Data JPA, Maven, request validation, and unit testing with JUnit and Mockito.", + href: "/hub?language=Java&category=04-professional", + accent: "#22c55e", + }, + { + title: "Java Mastery", + tag: "Mastery Course", + icon: Brain, + description: + "Algorithms, data structures, design patterns, Big-O analysis, and full interview preparation to become a confident Java developer.", + href: "/hub?language=Java&category=05-mastery", + accent: "#a855f7", + }, + ], }; /** Navbar learn links per language (mirrors languageCourses). */ @@ -162,6 +212,13 @@ export const learnNavByLanguage = { { label: "Matplotlib", to: "/learn/matplotlib-py" }, ], javascript: [{ label: "JS Basics", to: "/learn/js-fundamentals" }], + java: [ + { label: "Fundamentals", to: "/hub?language=Java&category=01-beginner" }, + { label: "Intermediate", to: "/hub?language=Java&category=02-intermediate" }, + { label: "Advanced", to: "/hub?language=Java&category=03-advanced" }, + { label: "Spring Boot", to: "/hub?language=Java&category=04-professional" }, + { label: "Mastery", to: "/hub?language=Java&category=05-mastery" }, + ], }; /** Infer stack from an active /learn/* route when language is not set. */