diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css index 1599f5e0..f5954987 100644 --- a/apps/web/app/globals.css +++ b/apps/web/app/globals.css @@ -1,3 +1,7 @@ +@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); + @tailwind base; @tailwind components; @tailwind utilities; diff --git a/apps/web/components/Blog.tsx b/apps/web/components/Blog.tsx index fe75c726..14f17a6b 100644 --- a/apps/web/components/Blog.tsx +++ b/apps/web/components/Blog.tsx @@ -40,3 +40,4 @@ export const Blog = ({ ); }; + \ No newline at end of file diff --git a/apps/web/components/CodeBlock.module.css b/apps/web/components/CodeBlock.module.css index 826cfeb2..4b3abd2c 100644 --- a/apps/web/components/CodeBlock.module.css +++ b/apps/web/components/CodeBlock.module.css @@ -1,40 +1,12 @@ .code_block { + display: flex; + justify-content: space-between; position: relative; padding: 10px; font-size: 15px; word-wrap: break-word; white-space: pre-wrap; - background: #161b22; + background: #111827; overflow: auto; - line-height: 1.6; - border: 1px solid #333; - border-left: 3px solid #e81029; color: #564; - min-width: 200px; - width: 800px; - display: flex; - justify-content: space-between; -} - -.copy_block { - display: flex; - flex-direction: column; - justify-content: flex-start; -} - -.copy_button { - position: relative; - cursor: pointer; - color: #fff; - background: gray; - border-radius: 0.5em; - padding: 2px 7px; - margin: 10px; -} - -.copied_text { - background: #fff; - padding: 5px; - color: #161b22; - display: none; -} +} \ No newline at end of file diff --git a/apps/web/components/CodeBlock.tsx b/apps/web/components/CodeBlock.tsx index 40596cca..60699841 100644 --- a/apps/web/components/CodeBlock.tsx +++ b/apps/web/components/CodeBlock.tsx @@ -14,11 +14,22 @@ export default function CodeBlock({ block }: { block: any }) { const [showCopiedMessage, setShowCopiedMessage] = useState(false); - return ( -
-
+ return ( +
+ +
+
-
-
-
-          {code}
-        
+
+
+
+            {code}
+          
+
); diff --git a/apps/web/components/NotionRenderer.tsx b/apps/web/components/NotionRenderer.tsx index b50d9cc9..30299b54 100644 --- a/apps/web/components/NotionRenderer.tsx +++ b/apps/web/components/NotionRenderer.tsx @@ -9,20 +9,41 @@ export const NotionRenderer = ({ recordMap }: { recordMap: any }) => { const { resolvedTheme } = useTheme(); return ( -
+