diff --git a/src/app/components/Code.module.css b/src/app/components/Code.module.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/Code.tsx b/src/app/components/Code.tsx new file mode 100644 index 0000000..7db4c3b --- /dev/null +++ b/src/app/components/Code.tsx @@ -0,0 +1,15 @@ +import styles from './Code.module.css'; + +export default function Code({ + children, + language, +}: { + children: string; + language: string; +}) { + return ( +
+      {children}
+    
+ ); +} diff --git a/src/app/components/Section.module.css b/src/app/components/Section.module.css index 323f54f..16612ea 100644 --- a/src/app/components/Section.module.css +++ b/src/app/components/Section.module.css @@ -17,4 +17,9 @@ .container>article { flex: 1; +} + +.container>article>p { + margin-top: 20px; + color: #c1c9d2 } \ No newline at end of file diff --git a/src/app/components/Section.tsx b/src/app/components/Section.tsx index f559fd0..5989472 100644 --- a/src/app/components/Section.tsx +++ b/src/app/components/Section.tsx @@ -1,18 +1,14 @@ +import { ReactNode } from 'react'; import styles from './Section.module.css'; export default function Section({ - copy, - example, + children, }: { - copy: string; - example: string; + children: ReactNode; }) { return ( -
+
+ {children} +
); } diff --git a/src/app/components/SideBar.tsx b/src/app/components/SideBar.tsx index f27ba98..f18aa83 100644 --- a/src/app/components/SideBar.tsx +++ b/src/app/components/SideBar.tsx @@ -1,10 +1,10 @@ 'use client'; import { useState } from 'react'; -import { DocsStructure } from '../types/types.js'; +import { Doc, DocsStructure } from '../types/types.js'; import styles from './SideBar.module.css'; -function TreeNode({ doc }: { doc: DocsStructure }) { +function TreeNode({ doc }: { doc: Doc }) { const [isExpanded, setIsExpanded] = useState(true); @@ -62,7 +62,7 @@ function TreeNode({ doc }: { doc: DocsStructure }) { ); } -function ListTree({ docs }: { docs: DocsStructure[] }) { +function ListTree({ docs }: { docs: Doc[] }) { return (