@@ -32,24 +70,32 @@ export default function Resume() {
-
-
+
+
+ {error ? (
+
+ {error}
+
+ ) : html ? (
+
+ ) : (
+
+ Loading...
+
+ )}
+
diff --git a/src/components/resume/ResumeHtml.tsx b/src/components/resume/ResumeHtml.tsx
new file mode 100644
index 0000000..f35216f
--- /dev/null
+++ b/src/components/resume/ResumeHtml.tsx
@@ -0,0 +1,107 @@
+'use client';
+
+import { useStore } from '@nanostores/react';
+import { useEffect, useRef, useState } from 'react';
+import { $isDarkMode } from '@/stores/theme-store';
+
+interface ResumeHtmlProps {
+ htmlContent: string;
+}
+
+function extractContent(html: string): {
+ body: string;
+ style: string;
+ script: string;
+} {
+ const styleMatch = html.match(/