@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.
Files changed (49) hide show
  1. package/package.json +12 -3
  2. package/src/plugins/theme.mjs +2 -0
  3. package/theme/DocCategoryGeneratedIndexPage/index.jsx +4 -10
  4. package/theme/MDXComponents.jsx +3 -2
  5. package/theme/Root.jsx +1 -1
  6. package/theme/components/AboutSection/index.jsx +89 -249
  7. package/theme/components/ContactSection/index.jsx +72 -153
  8. package/theme/components/ExperienceSection/index.jsx +35 -106
  9. package/theme/components/HeroSection/index.jsx +64 -186
  10. package/theme/components/Indent/index.jsx +10 -0
  11. package/theme/components/NavArrow/index.jsx +38 -55
  12. package/theme/components/NoteCards/index.jsx +110 -0
  13. package/theme/components/Preview/components/FeedbackStates.jsx +45 -190
  14. package/theme/components/Preview/components/FileTabs.jsx +17 -24
  15. package/theme/components/Preview/components/PreviewContent.jsx +37 -62
  16. package/theme/components/Preview/components/PreviewHeader.jsx +146 -380
  17. package/theme/components/Preview/components/Triggers/Pv.jsx +50 -78
  18. package/theme/components/Preview/components/Triggers/SrcPv.jsx +16 -47
  19. package/theme/components/Preview/components/Triggers/index.jsx +2 -2
  20. package/theme/components/Preview/components/ViewerWindow.jsx +160 -268
  21. package/theme/components/Preview/index.jsx +3 -3
  22. package/theme/components/Preview/renderers/CodeRenderer.jsx +81 -109
  23. package/theme/components/Preview/renderers/ImageRenderer.jsx +30 -67
  24. package/theme/components/Preview/renderers/PdfRenderer.jsx +31 -52
  25. package/theme/components/Preview/renderers/WebRenderer.jsx +18 -32
  26. package/theme/components/Preview/state/index.jsx +46 -30
  27. package/theme/components/ProjectsSection/index.jsx +278 -573
  28. package/theme/components/ScrollToTop/index.jsx +93 -0
  29. package/theme/components/ScrollToTop/styles.module.css +97 -0
  30. package/theme/components/SocialLinks/index.jsx +43 -55
  31. package/theme/components/Tooltip/index.jsx +85 -43
  32. package/theme/components/Tooltip/styles.module.css +13 -3
  33. package/theme/components/TopicList/index.jsx +31 -0
  34. package/theme/css/animations.css +61 -0
  35. package/theme/css/custom.css +16 -253
  36. package/theme/css/overrides/base.css +37 -0
  37. package/theme/css/overrides/footer.css +14 -0
  38. package/theme/css/overrides/markdown.css +62 -0
  39. package/theme/css/overrides/navbar.css +37 -0
  40. package/theme/css/overrides/pagination.css +64 -0
  41. package/theme/css/overrides/search.css +28 -0
  42. package/theme/css/{catppuccin.css → overrides/variables.css} +1 -1
  43. package/theme/pages/index.jsx +25 -87
  44. package/theme/pages/notes.jsx +27 -104
  45. package/theme/pages/tasks.jsx +293 -904
  46. package/theme/components/NoteIndex/index.jsx +0 -182
  47. package/theme/css/bootstrap.css +0 -5
  48. /package/theme/components/{NoteIndex → NoteCards}/styles.module.css +0 -0
  49. /package/theme/css/{tasks.css → tasks.module.css} +0 -0
@@ -1,8 +1,9 @@
1
1
  import Layout from "@theme/Layout";
2
- import NoteCards from "../components/NoteIndex/index.js";
2
+ import NoteCards from "../components/NoteCards/index.jsx";
3
3
  import { usePluginData } from "@docusaurus/useGlobalData";
4
- import NavArrow from "../components/NavArrow/index.js";
5
- import HashNavigation from "../utils/HashNavigation.js";
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
- return jsxDEV_7x81h0kn(
39
- Layout,
40
- {
41
- title: pageTitle,
42
- description: `My ${pageTitle}`,
43
- children: jsxDEV_7x81h0kn(
44
- "main",
45
- {
46
- style: style.notesContainer,
47
- children: jsxDEV_7x81h0kn(
48
- "div",
49
- {
50
- className: "container",
51
- children: [
52
- jsxDEV_7x81h0kn(
53
- "header",
54
- {
55
- className: "text-center mb-4",
56
- children: [
57
- jsxDEV_7x81h0kn(
58
- "h1",
59
- { style: style.pageTitle, children: "My Notes" },
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 &amp; 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
  }