@portosaur/theme 0.1.5 → 0.3.0
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 +12 -3
- package/src/plugins/theme.mjs +2 -0
- package/theme/DocCategoryGeneratedIndexPage/index.jsx +4 -10
- package/theme/MDXComponents.jsx +3 -2
- package/theme/Root.jsx +1 -1
- package/theme/components/AboutSection/index.jsx +89 -249
- package/theme/components/ContactSection/index.jsx +72 -153
- package/theme/components/ExperienceSection/index.jsx +35 -106
- package/theme/components/HeroSection/index.jsx +64 -186
- package/theme/components/Indent/index.jsx +10 -0
- package/theme/components/NavArrow/index.jsx +38 -55
- package/theme/components/NoteCards/index.jsx +110 -0
- package/theme/components/Preview/components/FeedbackStates.jsx +45 -190
- package/theme/components/Preview/components/FileTabs.jsx +17 -24
- package/theme/components/Preview/components/PreviewContent.jsx +37 -62
- package/theme/components/Preview/components/PreviewHeader.jsx +146 -380
- package/theme/components/Preview/components/Triggers/Pv.jsx +50 -78
- package/theme/components/Preview/components/Triggers/SrcPv.jsx +16 -47
- package/theme/components/Preview/components/Triggers/index.jsx +2 -2
- package/theme/components/Preview/components/ViewerWindow.jsx +160 -268
- package/theme/components/Preview/index.jsx +3 -3
- package/theme/components/Preview/renderers/CodeRenderer.jsx +81 -109
- package/theme/components/Preview/renderers/ImageRenderer.jsx +30 -67
- package/theme/components/Preview/renderers/PdfRenderer.jsx +31 -52
- package/theme/components/Preview/renderers/WebRenderer.jsx +18 -32
- package/theme/components/Preview/state/index.jsx +46 -30
- package/theme/components/ProjectsSection/index.jsx +278 -573
- package/theme/components/ScrollToTop/index.jsx +93 -0
- package/theme/components/ScrollToTop/styles.module.css +97 -0
- package/theme/components/SocialLinks/index.jsx +43 -55
- package/theme/components/Tooltip/index.jsx +85 -43
- package/theme/components/Tooltip/styles.module.css +13 -3
- package/theme/components/TopicList/index.jsx +31 -0
- package/theme/css/animations.css +61 -0
- package/theme/css/custom.css +16 -253
- package/theme/css/overrides/base.css +37 -0
- package/theme/css/overrides/footer.css +14 -0
- package/theme/css/overrides/markdown.css +62 -0
- package/theme/css/overrides/navbar.css +37 -0
- package/theme/css/overrides/pagination.css +64 -0
- package/theme/css/overrides/search.css +28 -0
- package/theme/css/{catppuccin.css → overrides/variables.css} +1 -1
- package/theme/pages/index.jsx +25 -87
- package/theme/pages/notes.jsx +27 -104
- package/theme/pages/tasks.jsx +293 -904
- package/theme/components/NoteIndex/index.jsx +0 -182
- package/theme/css/bootstrap.css +0 -5
- /package/theme/components/{NoteIndex → NoteCards}/styles.module.css +0 -0
- /package/theme/css/{tasks.css → tasks.module.css} +0 -0
package/theme/pages/notes.jsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import Layout from "@theme/Layout";
|
|
2
|
-
import NoteCards from "../components/
|
|
2
|
+
import NoteCards from "../components/NoteCards/index.jsx";
|
|
3
3
|
import { usePluginData } from "@docusaurus/useGlobalData";
|
|
4
|
-
import NavArrow from "../components/NavArrow/index.
|
|
5
|
-
import HashNavigation from "../utils/HashNavigation.
|
|
4
|
+
import NavArrow from "../components/NavArrow/index.jsx";
|
|
5
|
+
import HashNavigation from "../utils/HashNavigation.jsx";
|
|
6
|
+
import ScrollToTop from "../components/ScrollToTop/index.jsx";
|
|
6
7
|
const style = {
|
|
7
8
|
notesContainer: { padding: "2rem 0", maxWidth: "1200px", margin: "0 auto" },
|
|
8
9
|
pageTitle: {
|
|
@@ -19,113 +20,35 @@ const style = {
|
|
|
19
20
|
marginBottom: "2rem",
|
|
20
21
|
animation: "slideUp 0.5s ease-out 0.2s forwards",
|
|
21
22
|
},
|
|
22
|
-
"@keyframes slideUp": {
|
|
23
|
-
from: { opacity: 0, transform: "translateY(20px)" },
|
|
24
|
-
to: { opacity: 1, transform: "translateY(0)" },
|
|
25
|
-
},
|
|
26
|
-
"@media (prefers-reduced-motion: reduce)": {
|
|
27
|
-
notesContainer: { animation: "none !important" },
|
|
28
|
-
pageTitle: { animation: "none !important" },
|
|
29
|
-
pageDescription: { animation: "none !important", opacity: 1 },
|
|
30
|
-
},
|
|
31
23
|
};
|
|
24
|
+
|
|
32
25
|
export default function Notes() {
|
|
33
26
|
const { path: docsBasePath } = usePluginData(
|
|
34
27
|
"docusaurus-plugin-content-docs",
|
|
35
28
|
);
|
|
36
29
|
const pathName = docsBasePath.replace("/", "");
|
|
37
30
|
const pageTitle = pathName.charAt(0).toUpperCase() + pathName.slice(1);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
undefined,
|
|
61
|
-
false,
|
|
62
|
-
undefined,
|
|
63
|
-
this,
|
|
64
|
-
),
|
|
65
|
-
jsxDEV_7x81h0kn(
|
|
66
|
-
"p",
|
|
67
|
-
{
|
|
68
|
-
style: style.pageDescription,
|
|
69
|
-
children:
|
|
70
|
-
"A collection of my self written notes & reference guides",
|
|
71
|
-
},
|
|
72
|
-
undefined,
|
|
73
|
-
false,
|
|
74
|
-
undefined,
|
|
75
|
-
this,
|
|
76
|
-
),
|
|
77
|
-
],
|
|
78
|
-
},
|
|
79
|
-
undefined,
|
|
80
|
-
true,
|
|
81
|
-
undefined,
|
|
82
|
-
this,
|
|
83
|
-
),
|
|
84
|
-
jsxDEV_7x81h0kn(
|
|
85
|
-
NoteCards,
|
|
86
|
-
{},
|
|
87
|
-
undefined,
|
|
88
|
-
false,
|
|
89
|
-
undefined,
|
|
90
|
-
this,
|
|
91
|
-
),
|
|
92
|
-
jsxDEV_7x81h0kn(
|
|
93
|
-
NavArrow,
|
|
94
|
-
{},
|
|
95
|
-
undefined,
|
|
96
|
-
false,
|
|
97
|
-
undefined,
|
|
98
|
-
this,
|
|
99
|
-
),
|
|
100
|
-
jsxDEV_7x81h0kn(
|
|
101
|
-
HashNavigation,
|
|
102
|
-
{
|
|
103
|
-
elementPrefix: "note-",
|
|
104
|
-
elementSelector: ".note-card",
|
|
105
|
-
effectDuration: 6000,
|
|
106
|
-
},
|
|
107
|
-
undefined,
|
|
108
|
-
false,
|
|
109
|
-
undefined,
|
|
110
|
-
this,
|
|
111
|
-
),
|
|
112
|
-
],
|
|
113
|
-
},
|
|
114
|
-
undefined,
|
|
115
|
-
true,
|
|
116
|
-
undefined,
|
|
117
|
-
this,
|
|
118
|
-
),
|
|
119
|
-
},
|
|
120
|
-
undefined,
|
|
121
|
-
false,
|
|
122
|
-
undefined,
|
|
123
|
-
this,
|
|
124
|
-
),
|
|
125
|
-
},
|
|
126
|
-
undefined,
|
|
127
|
-
false,
|
|
128
|
-
undefined,
|
|
129
|
-
this,
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Layout title={pageTitle} description={`My ${pageTitle}`}>
|
|
34
|
+
<main style={style.notesContainer}>
|
|
35
|
+
<div className="container">
|
|
36
|
+
<header className="text-center mb-4">
|
|
37
|
+
<h1 style={style.pageTitle}>My Notes</h1>
|
|
38
|
+
<p style={style.pageDescription}>
|
|
39
|
+
A collection of my self written notes & reference guides
|
|
40
|
+
</p>
|
|
41
|
+
</header>
|
|
42
|
+
<NoteCards />
|
|
43
|
+
<NavArrow />
|
|
44
|
+
<ScrollToTop />
|
|
45
|
+
<HashNavigation
|
|
46
|
+
elementPrefix="note-"
|
|
47
|
+
elementSelector=".note-card"
|
|
48
|
+
effectDuration={6000}
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
</main>
|
|
52
|
+
</Layout>
|
|
130
53
|
);
|
|
131
54
|
}
|