create-bdpa-react-scaffold 1.7.2 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BDPA_edited.avif +0 -0
- package/create-ui-lib.js +59 -2
- package/package.json +3 -2
package/BDPA_edited.avif
ADDED
|
Binary file
|
package/create-ui-lib.js
CHANGED
|
@@ -481,6 +481,17 @@ function Dashboard() {
|
|
|
481
481
|
{/* Page content */}
|
|
482
482
|
<div className="p-6 space-y-6 overflow-auto">
|
|
483
483
|
|
|
484
|
+
{/* BDPA Logo Section */}
|
|
485
|
+
<Card className="text-center">
|
|
486
|
+
<img
|
|
487
|
+
src="/src/assets/images/BDPA_edited.avif"
|
|
488
|
+
alt="BDPA Logo"
|
|
489
|
+
className="h-32 mx-auto mb-4"
|
|
490
|
+
/>
|
|
491
|
+
<h1 className="text-3xl font-bold text-blue-600">Welcome to BDPA</h1>
|
|
492
|
+
<p className="text-gray-600 mt-2">Black Data Professionals Association</p>
|
|
493
|
+
</Card>
|
|
494
|
+
|
|
484
495
|
<Tabs tabs={tabs} />
|
|
485
496
|
|
|
486
497
|
<div className="grid md:grid-cols-2 gap-6">
|
|
@@ -738,15 +749,51 @@ export default function Table({ columns, data }) {
|
|
|
738
749
|
`);
|
|
739
750
|
|
|
740
751
|
write("src/components/ui/Navbar.jsx", `
|
|
741
|
-
import { Menu } from "lucide-react";
|
|
752
|
+
import { Menu, ChevronDown } from "lucide-react";
|
|
753
|
+
import { useState } from "react";
|
|
742
754
|
|
|
743
755
|
export default function Navbar({ onMenuClick }) {
|
|
756
|
+
const [dropdownOpen, setDropdownOpen] = useState(false);
|
|
757
|
+
|
|
758
|
+
const dropdownItems = [
|
|
759
|
+
{ label: "Profile", href: "#" },
|
|
760
|
+
{ label: "Settings", href: "#" },
|
|
761
|
+
{ label: "Help", href: "#" },
|
|
762
|
+
{ label: "Feedback", href: "#" },
|
|
763
|
+
{ label: "Logout", href: "#" }
|
|
764
|
+
];
|
|
765
|
+
|
|
744
766
|
return (
|
|
745
767
|
<nav className="bg-white border-b border-gray-200 px-4 py-3 flex items-center justify-between">
|
|
746
768
|
<button className="md:hidden" onClick={onMenuClick}>
|
|
747
769
|
<Menu />
|
|
748
770
|
</button>
|
|
749
771
|
<h1 className="text-xl font-bold">BDPA React Scaffold and Demo</h1>
|
|
772
|
+
|
|
773
|
+
{/* Dropdown Menu */}
|
|
774
|
+
<div className="relative">
|
|
775
|
+
<button
|
|
776
|
+
onClick={() => setDropdownOpen(!dropdownOpen)}
|
|
777
|
+
className="flex items-center gap-2 px-3 py-2 rounded hover:bg-gray-100"
|
|
778
|
+
>
|
|
779
|
+
Menu
|
|
780
|
+
<ChevronDown size={18} />
|
|
781
|
+
</button>
|
|
782
|
+
|
|
783
|
+
{dropdownOpen && (
|
|
784
|
+
<div className="absolute right-0 mt-2 w-48 bg-white border border-gray-200 rounded-lg shadow-lg z-50">
|
|
785
|
+
{dropdownItems.map((item, index) => (
|
|
786
|
+
<a
|
|
787
|
+
key={index}
|
|
788
|
+
href={item.href}
|
|
789
|
+
className="block px-4 py-2 hover:bg-gray-100 first:rounded-t-lg last:rounded-b-lg"
|
|
790
|
+
>
|
|
791
|
+
{item.label}
|
|
792
|
+
</a>
|
|
793
|
+
))}
|
|
794
|
+
</div>
|
|
795
|
+
)}
|
|
796
|
+
</div>
|
|
750
797
|
</nav>
|
|
751
798
|
);
|
|
752
799
|
}
|
|
@@ -1106,7 +1153,17 @@ console.log(" 3. Open http://localhost:3000 in your browser\n");
|
|
|
1106
1153
|
|
|
1107
1154
|
// Create assets folder structure
|
|
1108
1155
|
fs.mkdirSync(path.join(BASE_DIR, "src/assets/images"), { recursive: true });
|
|
1109
|
-
console.log("✔ Created: src/assets/images
|
|
1156
|
+
console.log("✔ Created: src/assets/images");
|
|
1157
|
+
|
|
1158
|
+
// Copy BDPA logo image
|
|
1159
|
+
const bdpaImagePath = path.join(__dirname, "BDPA_edited.avif");
|
|
1160
|
+
const bdpaDestPath = path.join(BASE_DIR, "src/assets/images/BDPA_edited.avif");
|
|
1161
|
+
if (fs.existsSync(bdpaImagePath)) {
|
|
1162
|
+
fs.copyFileSync(bdpaImagePath, bdpaDestPath);
|
|
1163
|
+
console.log("✔ Copied: src/assets/images/BDPA_edited.avif\n");
|
|
1164
|
+
} else {
|
|
1165
|
+
console.log("⚠ Warning: BDPA_edited.avif not found in package\n");
|
|
1166
|
+
}
|
|
1110
1167
|
|
|
1111
1168
|
if (doInstall) {
|
|
1112
1169
|
installDependencies(packageManager, BASE_DIR);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-bdpa-react-scaffold",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
|
|
5
5
|
"description": "Scaffold a React + Tailwind UI library demo via Vite.",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"create-ui-lib.js",
|
|
11
|
-
"README.md"
|
|
11
|
+
"README.md",
|
|
12
|
+
"BDPA_edited.avif"
|
|
12
13
|
],
|
|
13
14
|
"keywords": [
|
|
14
15
|
"create",
|