portosaurus 1.18.6 → 1.18.7
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/package.json +5 -3
- package/src/internal/src/pages/index.js +1 -82
- package/src/internal/src/pages/notes.js +1 -84
- package/src/internal/src/pages/tasks.js +1 -310
- package/src/internal/src/components/AboutSection/index.js +0 -67
- package/src/internal/src/components/AboutSection/styles.module.css +0 -492
- package/src/internal/src/components/ContactSection/index.js +0 -95
- package/src/internal/src/components/ContactSection/styles.module.css +0 -327
- package/src/internal/src/components/ExperienceSection/index.js +0 -25
- package/src/internal/src/components/ExperienceSection/styles.module.css +0 -180
- package/src/internal/src/components/HeroSection/index.js +0 -62
- package/src/internal/src/components/HeroSection/styles.module.css +0 -471
- package/src/internal/src/components/NoteIndex/index.js +0 -129
- package/src/internal/src/components/NoteIndex/styles.module.css +0 -143
- package/src/internal/src/components/ProjectsSection/index.js +0 -529
- package/src/internal/src/components/ProjectsSection/styles.module.css +0 -830
- package/src/internal/src/components/ScrollToTop/index.js +0 -98
- package/src/internal/src/components/ScrollToTop/styles.module.css +0 -96
- package/src/internal/src/components/SocialLinks/index.js +0 -125
- package/src/internal/src/components/SocialLinks/styles.module.css +0 -55
- package/src/internal/src/components/Tooltip/index.js +0 -30
- package/src/internal/src/components/Tooltip/styles.module.css +0 -92
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "portosaurus",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.7",
|
|
4
4
|
"author": "soymadip",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"description": "Complete portfolio cum personal website solution for your digital personality.",
|
|
@@ -26,14 +26,16 @@
|
|
|
26
26
|
"#utils/*": "./src/utils/*.js",
|
|
27
27
|
"#css/*": "./src/css/*.css",
|
|
28
28
|
"#pages/*": "./src/internal/src/pages/*.js",
|
|
29
|
-
"#components/*": "./src/
|
|
29
|
+
"#components/*": "./src/components/*",
|
|
30
30
|
"#internal/*": "./src/internal/src/*"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
|
+
"./components/*": "./src/components/*",
|
|
33
34
|
"./utils/*": "./src/utils/*.js",
|
|
34
35
|
"./config/*": "./src/config/*.js",
|
|
35
36
|
"./css/*": "./src/css/*.css",
|
|
36
|
-
"./internal/*": "./src/internal/src/*"
|
|
37
|
+
"./internal/*": "./src/internal/src/*",
|
|
38
|
+
"./pages/*": "./src/pages/*.js"
|
|
37
39
|
},
|
|
38
40
|
"bin": {
|
|
39
41
|
"portosaurus": "bin/portosaurus.js"
|
|
@@ -1,82 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
|
|
3
|
-
import { UpdateTitle } from "#utils/updateTitle";
|
|
4
|
-
|
|
5
|
-
// Import components
|
|
6
|
-
import HeroSection from "@site/src/components/HeroSection";
|
|
7
|
-
import AboutSection from "@site/src/components/AboutSection";
|
|
8
|
-
import ProjectsSection from "@site/src/components/ProjectsSection";
|
|
9
|
-
import ContactSection from "@site/src/components/ContactSection";
|
|
10
|
-
import ExperienceSection from "@site/src/components/ExperienceSection";
|
|
11
|
-
import ScrollToTop from "@site/src/components/ScrollToTop";
|
|
12
|
-
|
|
13
|
-
export default function Home() {
|
|
14
|
-
const { siteConfig } = useDocusaurusContext();
|
|
15
|
-
const { customFields } = siteConfig;
|
|
16
|
-
|
|
17
|
-
const aboutMe = customFields.aboutMe || {};
|
|
18
|
-
const projects = customFields.projects || {};
|
|
19
|
-
const socialLinks = customFields.socialLinks || {};
|
|
20
|
-
const experience = customFields.experience || {};
|
|
21
|
-
|
|
22
|
-
const sectionTitles = {
|
|
23
|
-
me: `Home | ${siteConfig.title}`,
|
|
24
|
-
about: `About Me | ${siteConfig.title}`,
|
|
25
|
-
projects: `Projects | ${siteConfig.title}`,
|
|
26
|
-
experience: `Experience | ${siteConfig.title}`,
|
|
27
|
-
contact: `Contact | ${siteConfig.title}`,
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const customStyles = `
|
|
31
|
-
/* For future */
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<Layout title="Me" description="My portfolio website">
|
|
36
|
-
{/* Custom styles */}
|
|
37
|
-
<style>{customStyles}</style>
|
|
38
|
-
|
|
39
|
-
<UpdateTitle sections={sectionTitles} defaultTitle={siteConfig.title} />
|
|
40
|
-
|
|
41
|
-
<main>
|
|
42
|
-
{/* Hero Section */}
|
|
43
|
-
<HeroSection id="me" />
|
|
44
|
-
|
|
45
|
-
{/* About Section */}
|
|
46
|
-
{aboutMe.enable !== false && (
|
|
47
|
-
<AboutSection id="about" title="About Me" />
|
|
48
|
-
)}
|
|
49
|
-
|
|
50
|
-
{/* Projects Section */}
|
|
51
|
-
{projects.enable !== false && (
|
|
52
|
-
<ProjectsSection
|
|
53
|
-
id="projects"
|
|
54
|
-
title="My Projects"
|
|
55
|
-
subtitle="A collection of all my works, with featured projects highlighted"
|
|
56
|
-
/>
|
|
57
|
-
)}
|
|
58
|
-
|
|
59
|
-
{/* Experience Section */}
|
|
60
|
-
{experience.enable !== false && (
|
|
61
|
-
<ExperienceSection
|
|
62
|
-
id="experience"
|
|
63
|
-
title="Experience"
|
|
64
|
-
subtitle="My professional journey and work experience"
|
|
65
|
-
/>
|
|
66
|
-
)}
|
|
67
|
-
|
|
68
|
-
{/* Contact Section */}
|
|
69
|
-
{socialLinks.enable !== false && (
|
|
70
|
-
<ContactSection
|
|
71
|
-
id="contact"
|
|
72
|
-
title="Get In Touch"
|
|
73
|
-
subtitle="Feel free to reach out for collaborations, questions, or just to say hello!"
|
|
74
|
-
/>
|
|
75
|
-
)}
|
|
76
|
-
|
|
77
|
-
{/* Scroll to top button */}
|
|
78
|
-
<ScrollToTop hideDelay={3500} />
|
|
79
|
-
</main>
|
|
80
|
-
</Layout>
|
|
81
|
-
);
|
|
82
|
-
}
|
|
1
|
+
export { default } from "portosaurus/pages/Home";
|
|
@@ -1,84 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import Layout from "@theme/Layout";
|
|
3
|
-
import NoteCards from "@site/src/components/NoteIndex";
|
|
4
|
-
import { usePluginData } from "@docusaurus/useGlobalData";
|
|
5
|
-
import ScrollToTop from "../components/ScrollToTop";
|
|
6
|
-
import { HashNavigation } from "portosaurus/utils/HashNavigation";
|
|
7
|
-
|
|
8
|
-
const style = {
|
|
9
|
-
notesContainer: {
|
|
10
|
-
padding: "2rem 0",
|
|
11
|
-
maxWidth: "1200px",
|
|
12
|
-
margin: "0 auto",
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
pageTitle: {
|
|
16
|
-
fontSize: "2.5rem",
|
|
17
|
-
textAlign: "center",
|
|
18
|
-
marginBottom: "0.5rem",
|
|
19
|
-
color: "var(--ifm-color-primary)",
|
|
20
|
-
animation: "slideUp 0.5s ease-out forwards",
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
pageDescription: {
|
|
24
|
-
fontSize: "0.9rem",
|
|
25
|
-
textAlign: "center",
|
|
26
|
-
color: "var(--ifm-font-color-tertiary)",
|
|
27
|
-
marginBottom: "2rem",
|
|
28
|
-
animation: "slideUp 0.5s ease-out 0.2s forwards",
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
"@keyframes slideUp": {
|
|
32
|
-
from: {
|
|
33
|
-
opacity: 0,
|
|
34
|
-
transform: "translateY(20px)",
|
|
35
|
-
},
|
|
36
|
-
to: {
|
|
37
|
-
opacity: 1,
|
|
38
|
-
transform: "translateY(0)",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
"@media (prefers-reduced-motion: reduce)": {
|
|
43
|
-
notesContainer: {
|
|
44
|
-
animation: "none !important",
|
|
45
|
-
},
|
|
46
|
-
pageTitle: {
|
|
47
|
-
animation: "none !important",
|
|
48
|
-
},
|
|
49
|
-
pageDescription: {
|
|
50
|
-
animation: "none !important",
|
|
51
|
-
opacity: 1,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export default function Notes() {
|
|
57
|
-
const { path: docsBasePath } = usePluginData(
|
|
58
|
-
"docusaurus-plugin-content-docs",
|
|
59
|
-
);
|
|
60
|
-
const pathName = docsBasePath.replace("/", "");
|
|
61
|
-
const pageTitle = pathName.charAt(0).toUpperCase() + pathName.slice(1);
|
|
62
|
-
|
|
63
|
-
return (
|
|
64
|
-
<Layout title={pageTitle} description={`My ${pageTitle}`}>
|
|
65
|
-
<main style={style.notesContainer}>
|
|
66
|
-
<div className="container">
|
|
67
|
-
<header className="text-center mb-4">
|
|
68
|
-
<h1 style={style.pageTitle}>My Notes</h1>
|
|
69
|
-
<p style={style.pageDescription}>
|
|
70
|
-
A collection of my self written notes & reference guides
|
|
71
|
-
</p>
|
|
72
|
-
</header>
|
|
73
|
-
<NoteCards />
|
|
74
|
-
<ScrollToTop />
|
|
75
|
-
<HashNavigation
|
|
76
|
-
elementPrefix="note-"
|
|
77
|
-
elementSelector=".note-card"
|
|
78
|
-
effectDuration={6000}
|
|
79
|
-
/>
|
|
80
|
-
</div>
|
|
81
|
-
</main>
|
|
82
|
-
</Layout>
|
|
83
|
-
);
|
|
84
|
-
}
|
|
1
|
+
export { default } from "portosaurus/pages/Notes";
|
|
@@ -1,310 +1 @@
|
|
|
1
|
-
|
|
2
|
-
__ ___ _ ____ _
|
|
3
|
-
\ \ / (_) |__ ___ / ___|___ __| | ___
|
|
4
|
-
\ \ / /| | '_ \ / _ \ | | / _ \ / _` |/ _ \
|
|
5
|
-
\ V / | | |_) | __/ | |__| (_) | (_| | __/
|
|
6
|
-
\_/ |_|_.__/ \___| \____\___/ \__,_|\___|
|
|
7
|
-
|
|
8
|
-
This Page is completely Vibe coded. No code except small tweaks is written by me.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import { useState } from "react";
|
|
12
|
-
import Layout from "@theme/Layout";
|
|
13
|
-
import Head from "@docusaurus/Head";
|
|
14
|
-
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
|
|
15
|
-
import "../css/tasks.css";
|
|
16
|
-
import {
|
|
17
|
-
FaClipboardList,
|
|
18
|
-
FaSyncAlt,
|
|
19
|
-
FaClock,
|
|
20
|
-
FaCheckCircle,
|
|
21
|
-
FaFire,
|
|
22
|
-
FaThermometerHalf,
|
|
23
|
-
FaSnowflake,
|
|
24
|
-
FaTasks,
|
|
25
|
-
FaExclamationTriangle,
|
|
26
|
-
} from "react-icons/fa";
|
|
27
|
-
|
|
28
|
-
function TaskList({ filterStatus, taskList }) {
|
|
29
|
-
if (!taskList || !Array.isArray(taskList)) {
|
|
30
|
-
return (
|
|
31
|
-
<div className="task-empty-state">
|
|
32
|
-
<FaTasks className="task-empty-icon" />
|
|
33
|
-
<p>No tasks available</p>
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const filteredTasks = taskList.filter((task) =>
|
|
39
|
-
filterStatus ? task.status === filterStatus : true,
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
if (filteredTasks.length === 0) {
|
|
43
|
-
return (
|
|
44
|
-
<div className="task-empty-state">
|
|
45
|
-
<FaTasks className="task-empty-icon" />
|
|
46
|
-
<p>No tasks in this category</p>
|
|
47
|
-
</div>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Sort tasks by status first (with completed tasks at bottom), then by priority
|
|
52
|
-
const sortedTasks = [...filteredTasks].sort((a, b) => {
|
|
53
|
-
const statusOrder = { active: 1, pending: 2, completed: 3 };
|
|
54
|
-
const statusDiff = statusOrder[a.status] - statusOrder[b.status];
|
|
55
|
-
|
|
56
|
-
if (statusDiff !== 0) return statusDiff;
|
|
57
|
-
|
|
58
|
-
// Priority order: high, medium, low
|
|
59
|
-
const priorityOrder = { high: 1, medium: 2, low: 3 };
|
|
60
|
-
return priorityOrder[a.priority] - priorityOrder[b.priority];
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
return (
|
|
64
|
-
<div className="task-list-container">
|
|
65
|
-
<div className="task-list-table">
|
|
66
|
-
<div className="task-list-header">
|
|
67
|
-
<div className="task-cell task-cell-status">Status</div>
|
|
68
|
-
<div className="task-cell task-cell-title">Task Details</div>
|
|
69
|
-
<div className="task-cell task-cell-priority">Priority</div>
|
|
70
|
-
</div>
|
|
71
|
-
|
|
72
|
-
<div className="task-rows">
|
|
73
|
-
{sortedTasks.map((task, index) => (
|
|
74
|
-
<div
|
|
75
|
-
key={index}
|
|
76
|
-
className={`task-row ${task.status === "completed" ? "task-row-completed" : ""} ${index % 2 === 1 ? "task-row-striped" : ""}`}
|
|
77
|
-
>
|
|
78
|
-
<div className="task-cell task-cell-status">
|
|
79
|
-
<span className={`badge badge-status-${task.status}`}>
|
|
80
|
-
{task.status === "completed" && (
|
|
81
|
-
<>
|
|
82
|
-
<FaCheckCircle className="badge-icon" /> Done
|
|
83
|
-
</>
|
|
84
|
-
)}
|
|
85
|
-
{task.status === "active" && (
|
|
86
|
-
<>
|
|
87
|
-
<FaSyncAlt className="badge-icon spin" /> In Progress
|
|
88
|
-
</>
|
|
89
|
-
)}
|
|
90
|
-
{task.status === "pending" && (
|
|
91
|
-
<>
|
|
92
|
-
<FaClock className="badge-icon" /> Planned
|
|
93
|
-
</>
|
|
94
|
-
)}
|
|
95
|
-
</span>
|
|
96
|
-
</div>
|
|
97
|
-
|
|
98
|
-
<div className="task-cell task-cell-title">
|
|
99
|
-
<div className="task-title">{task.title}</div>
|
|
100
|
-
{task.description && (
|
|
101
|
-
<div className="task-description">{task.description}</div>
|
|
102
|
-
)}
|
|
103
|
-
</div>
|
|
104
|
-
|
|
105
|
-
<div className="task-cell task-cell-priority">
|
|
106
|
-
<span className={`badge badge-priority-${task.priority}`}>
|
|
107
|
-
{task.priority === "high" && (
|
|
108
|
-
<>
|
|
109
|
-
<FaFire className="badge-icon" /> High
|
|
110
|
-
</>
|
|
111
|
-
)}
|
|
112
|
-
{task.priority === "medium" && (
|
|
113
|
-
<>
|
|
114
|
-
<FaThermometerHalf className="badge-icon" /> Medium
|
|
115
|
-
</>
|
|
116
|
-
)}
|
|
117
|
-
{task.priority === "low" && (
|
|
118
|
-
<>
|
|
119
|
-
<FaSnowflake className="badge-icon" /> Low
|
|
120
|
-
</>
|
|
121
|
-
)}
|
|
122
|
-
</span>
|
|
123
|
-
</div>
|
|
124
|
-
</div>
|
|
125
|
-
))}
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
function TaskStats({ taskList }) {
|
|
133
|
-
if (!taskList || !Array.isArray(taskList)) {
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const total = taskList.length;
|
|
138
|
-
const completed = taskList.filter(
|
|
139
|
-
(task) => task.status === "completed",
|
|
140
|
-
).length;
|
|
141
|
-
const active = taskList.filter((task) => task.status === "active").length;
|
|
142
|
-
const pending = taskList.filter((task) => task.status === "pending").length;
|
|
143
|
-
const percentComplete = total > 0 ? Math.round((completed / total) * 100) : 0;
|
|
144
|
-
|
|
145
|
-
return (
|
|
146
|
-
<div className="stats-container">
|
|
147
|
-
<div className="stat-box">
|
|
148
|
-
<div className="stat-label">Total Tasks</div>
|
|
149
|
-
<div className="stat-value">{total}</div>
|
|
150
|
-
</div>
|
|
151
|
-
<div className="stat-box">
|
|
152
|
-
<div className="stat-label">Completed</div>
|
|
153
|
-
<div className="stat-value stat-value-completed">{completed}</div>
|
|
154
|
-
</div>
|
|
155
|
-
<div className="stat-box">
|
|
156
|
-
<div className="stat-label">In Progress</div>
|
|
157
|
-
<div className="stat-value stat-value-active">{active}</div>
|
|
158
|
-
</div>
|
|
159
|
-
<div className="stat-box">
|
|
160
|
-
<div className="stat-label">Planned</div>
|
|
161
|
-
<div className="stat-value stat-value-pending">{pending}</div>
|
|
162
|
-
</div>
|
|
163
|
-
<div className="stat-box">
|
|
164
|
-
<div className="stat-label">Progress</div>
|
|
165
|
-
<div className="stat-value">{percentComplete}%</div>
|
|
166
|
-
<div className="progress-bar-container">
|
|
167
|
-
<div
|
|
168
|
-
className="progress-bar"
|
|
169
|
-
style={{ width: `${percentComplete}%` }}
|
|
170
|
-
></div>
|
|
171
|
-
</div>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
function TaskTabs({ taskList }) {
|
|
178
|
-
const [activeTab, setActiveTab] = useState("all");
|
|
179
|
-
|
|
180
|
-
if (!taskList || !Array.isArray(taskList)) {
|
|
181
|
-
return null;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
const tabData = [
|
|
185
|
-
{
|
|
186
|
-
id: "all",
|
|
187
|
-
label: "All Tasks",
|
|
188
|
-
icon: <FaClipboardList />,
|
|
189
|
-
count: taskList.length,
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
id: "active",
|
|
193
|
-
label: "In Progress",
|
|
194
|
-
icon: <FaSyncAlt className="spin" />,
|
|
195
|
-
count: taskList.filter((t) => t.status === "active").length,
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
id: "pending",
|
|
199
|
-
label: "Planned",
|
|
200
|
-
icon: <FaClock />,
|
|
201
|
-
count: taskList.filter((t) => t.status === "pending").length,
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
id: "completed",
|
|
205
|
-
label: "Completed",
|
|
206
|
-
icon: <FaCheckCircle />,
|
|
207
|
-
count: taskList.filter((t) => t.status === "completed").length,
|
|
208
|
-
},
|
|
209
|
-
];
|
|
210
|
-
|
|
211
|
-
return (
|
|
212
|
-
<div className="task-tabs-container">
|
|
213
|
-
<div className="task-tabs" role="tablist" aria-label="Task categories">
|
|
214
|
-
{tabData.map((tab) => (
|
|
215
|
-
<button
|
|
216
|
-
key={tab.id}
|
|
217
|
-
className={`task-tab ${activeTab === tab.id ? "task-tab-active" : ""}`}
|
|
218
|
-
onClick={() => setActiveTab(tab.id)}
|
|
219
|
-
role="tab"
|
|
220
|
-
aria-selected={activeTab === tab.id}
|
|
221
|
-
aria-controls={`tab-content-${tab.id}`}
|
|
222
|
-
id={`tab-${tab.id}`}
|
|
223
|
-
>
|
|
224
|
-
<span className="task-tab-icon" aria-hidden="true">
|
|
225
|
-
{tab.icon}
|
|
226
|
-
</span>
|
|
227
|
-
<span className="task-tab-label">{tab.label}</span>
|
|
228
|
-
<span className="task-tab-count">{tab.count}</span>
|
|
229
|
-
</button>
|
|
230
|
-
))}
|
|
231
|
-
</div>
|
|
232
|
-
|
|
233
|
-
<div
|
|
234
|
-
className="task-tab-content"
|
|
235
|
-
role="tabpanel"
|
|
236
|
-
id={`tab-content-${activeTab}`}
|
|
237
|
-
aria-labelledby={`tab-${activeTab}`}
|
|
238
|
-
>
|
|
239
|
-
{activeTab === "all" && <TaskList taskList={taskList} />}
|
|
240
|
-
{activeTab === "active" && (
|
|
241
|
-
<TaskList taskList={taskList} filterStatus="active" />
|
|
242
|
-
)}
|
|
243
|
-
{activeTab === "pending" && (
|
|
244
|
-
<TaskList taskList={taskList} filterStatus="pending" />
|
|
245
|
-
)}
|
|
246
|
-
{activeTab === "completed" && (
|
|
247
|
-
<TaskList taskList={taskList} filterStatus="completed" />
|
|
248
|
-
)}
|
|
249
|
-
</div>
|
|
250
|
-
</div>
|
|
251
|
-
);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export default function TasksPage() {
|
|
255
|
-
const { siteConfig } = useDocusaurusContext();
|
|
256
|
-
const { customFields } = siteConfig || {};
|
|
257
|
-
|
|
258
|
-
const tasksPage = customFields?.tasksPage;
|
|
259
|
-
const title = tasksPage.title;
|
|
260
|
-
const description = tasksPage.description;
|
|
261
|
-
const taskList =
|
|
262
|
-
tasksPage.enable && tasksPage.taskList ? tasksPage.taskList : [];
|
|
263
|
-
|
|
264
|
-
// If tasks are disabled, show a notice box instead
|
|
265
|
-
if (!tasksPage || !tasksPage.enable) {
|
|
266
|
-
return (
|
|
267
|
-
<Layout
|
|
268
|
-
title="Tasks are Disabled"
|
|
269
|
-
description="Tasks are currently disabled"
|
|
270
|
-
>
|
|
271
|
-
<div className="tasks-container">
|
|
272
|
-
<div className="tasks-content">
|
|
273
|
-
<div className="tasks-disabled-notice">
|
|
274
|
-
<div className="disabled-icon">
|
|
275
|
-
<FaExclamationTriangle aria-hidden="true" />
|
|
276
|
-
</div>
|
|
277
|
-
<h2 className="disabled-title">Tasks are currently disabled</h2>
|
|
278
|
-
<p className="disabled-help">
|
|
279
|
-
To enable tasks, set <code>tasks_page.enable</code> to{" "}
|
|
280
|
-
<code>true</code>
|
|
281
|
-
</p>
|
|
282
|
-
</div>
|
|
283
|
-
</div>
|
|
284
|
-
</div>
|
|
285
|
-
</Layout>
|
|
286
|
-
);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
return (
|
|
290
|
-
<Layout title={title} description={description}>
|
|
291
|
-
<Head>
|
|
292
|
-
<meta property="og:title" content={title} />
|
|
293
|
-
<meta property="og:description" content={description} />
|
|
294
|
-
<meta name="twitter:title" content={title} />
|
|
295
|
-
<meta name="twitter:description" content={description} />
|
|
296
|
-
</Head>
|
|
297
|
-
|
|
298
|
-
<div className="tasks-container">
|
|
299
|
-
<div className="tasks-header">
|
|
300
|
-
<h1 className="tasks-heading">{title}</h1>
|
|
301
|
-
</div>
|
|
302
|
-
|
|
303
|
-
<div className="tasks-content">
|
|
304
|
-
<TaskStats taskList={taskList} />
|
|
305
|
-
<TaskTabs taskList={taskList} />
|
|
306
|
-
</div>
|
|
307
|
-
</div>
|
|
308
|
-
</Layout>
|
|
309
|
-
);
|
|
310
|
-
}
|
|
1
|
+
export { default } from "portosaurus/pages/Tasks";
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
2
|
-
import styles from './styles.module.css';
|
|
3
|
-
|
|
4
|
-
export default function AboutSection({ id, className}) {
|
|
5
|
-
const { siteConfig } = useDocusaurusContext();
|
|
6
|
-
const { customFields } = siteConfig;
|
|
7
|
-
const aboutMe = customFields.aboutMe || {};
|
|
8
|
-
|
|
9
|
-
return (
|
|
10
|
-
<div id={id} className={`${styles.aboutSection} ${className || ''}`} role="region" aria-label="About me section">
|
|
11
|
-
<div className={styles.aboutContainer}>
|
|
12
|
-
<div className={styles.aboutHeader}>
|
|
13
|
-
<h2 className={styles.aboutHeading}>{"About Me"}</h2>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<div className={styles.aboutContent}>
|
|
17
|
-
<div className={styles.aboutBio}>
|
|
18
|
-
<div className={styles.bioImageContainer}>
|
|
19
|
-
{aboutMe.image && (
|
|
20
|
-
<div className={styles.imageWrapper}>
|
|
21
|
-
<img
|
|
22
|
-
src={aboutMe.image}
|
|
23
|
-
alt="About Me"
|
|
24
|
-
className={styles.aboutImage}
|
|
25
|
-
loading="lazy"
|
|
26
|
-
/>
|
|
27
|
-
</div>
|
|
28
|
-
)}
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<div className={styles.bioTextContainer}>
|
|
32
|
-
<div className={styles.bioText}>
|
|
33
|
-
{Array.isArray(aboutMe.description) ? (
|
|
34
|
-
aboutMe.description.map((paragraph, index) => (
|
|
35
|
-
<p key={index} className={styles.aboutParagraph}>{paragraph}</p>
|
|
36
|
-
))
|
|
37
|
-
) : (
|
|
38
|
-
<p className={styles.aboutParagraph}>
|
|
39
|
-
{aboutMe.description || "Information about me goes here."}
|
|
40
|
-
</p>
|
|
41
|
-
)}
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
{aboutMe.skills && aboutMe.skills.length > 0 && (
|
|
45
|
-
<div className={styles.skillsContainer}>
|
|
46
|
-
<h3 className={styles.skillsTitle} id="skills-heading">My Skills</h3>
|
|
47
|
-
<div className={styles.skillsGrid} role="list">
|
|
48
|
-
{aboutMe.skills.map((skill, index) => (
|
|
49
|
-
<div
|
|
50
|
-
key={index}
|
|
51
|
-
className={styles.skillBadge}
|
|
52
|
-
role="listitem"
|
|
53
|
-
style={{ animationDelay: `${index * 0.05}s` }}
|
|
54
|
-
>
|
|
55
|
-
{skill}
|
|
56
|
-
</div>
|
|
57
|
-
))}
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
)}
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
);
|
|
67
|
-
}
|