commit 803128d5905ce45b2f918e4d1f42685acdc61e2a
Author: root <root@hub.scroll.pub> Date: 2025-01-13 02:06:23 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..6cb96c5 --- /dev/null +++ b/body.html @@ -0,0 +1,54 @@ +<header> + <nav> + <a href="/" class="logo">Ma<span>Think</span></a> + <div class="nav-links"> + <a href="/articles">Articles</a> + <a href="/topics">Topics</a> + <a href="/about">About</a> + </div> + </nav> +</header> + +<main> + <section class="hero"> + <h1>Beautiful Mathematical Thinking</h1> + <p>Explore elegant mathematical concepts through carefully crafted articles</p> + </section> + + <section class="featured-articles"> + <h2>Latest Articles</h2> + <div class="article-grid"> + <article class="article-card"> + <div class="article-content"> + <h3>The Beauty of Euler's Identity</h3> + <p>Discovering the profound connection between \(e^{i\pi} + 1 = 0\)</p> + <div class="article-meta"> + <span>Analysis</span> + <time>2023-12-10</time> + </div> + </div> + </article> + <article class="article-card"> + <div class="article-content"> + <h3>Prime Numbers and Their Mysteries</h3> + <p>Exploring the fundamental building blocks of mathematics</p> + <div class="article-meta"> + <span>Number Theory</span> + <time>2023-12-08</time> + </div> + </div> + </article> + </div> + </section> +</main> + +<footer> + <div class="footer-content"> + <p>MaThink - Mathematical thinking, beautifully explained</p> + <nav class="footer-links"> + <a href="/privacy">Privacy</a> + <a href="/terms">Terms</a> + <a href="/contact">Contact</a> + </nav> + </div> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..5c17541 --- /dev/null +++ b/index.scroll @@ -0,0 +1,12 @@ +buildHtml +baseUrl https://mathink.scroll.pub +metaTags + title "MaThink - Beautiful Math Articles" + description "Explore elegant mathematical concepts through carefully crafted articles with beautiful LaTeX rendering" + author "MaThink" + viewport "width=device-width, initial-scale=1" +editButton /edit.html +title MaThink +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..a50bf92 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_019F6WXnqSFr33ugKhu7C9xq", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "Here's a clean, elegant math blog website:\n\n---domain---\nmathink.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://mathink.scroll.pub\nmetaTags\n title \"MaThink - Beautiful Math Articles\"\n description \"Explore elegant mathematical concepts through carefully crafted articles with beautiful LaTeX rendering\"\n author \"MaThink\"\n viewport \"width=device-width, initial-scale=1\"\neditButton /edit.html\ntitle MaThink\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <a href=\"/\" class=\"logo\">Ma<span>Think</span></a>\n <div class=\"nav-links\">\n <a href=\"/articles\">Articles</a>\n <a href=\"/topics\">Topics</a>\n <a href=\"/about\">About</a>\n </div>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>Beautiful Mathematical Thinking</h1>\n <p>Explore elegant mathematical concepts through carefully crafted articles</p>\n </section>\n\n <section class=\"featured-articles\">\n <h2>Latest Articles</h2>\n <div class=\"article-grid\">\n <article class=\"article-card\">\n <div class=\"article-content\">\n <h3>The Beauty of Euler's Identity</h3>\n <p>Discovering the profound connection between \\(e^{i\\pi} + 1 = 0\\)</p>\n <div class=\"article-meta\">\n <span>Analysis</span>\n <time>2023-12-10</time>\n </div>\n </div>\n </article>\n <article class=\"article-card\">\n <div class=\"article-content\">\n <h3>Prime Numbers and Their Mysteries</h3>\n <p>Exploring the fundamental building blocks of mathematics</p>\n <div class=\"article-meta\">\n <span>Number Theory</span>\n <time>2023-12-08</time>\n </div>\n </div>\n </article>\n </div>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <p>MaThink - Mathematical thinking, beautifully explained</p>\n <nav class=\"footer-links\">\n <a href=\"/privacy\">Privacy</a>\n <a href=\"/terms\">Terms</a>\n <a href=\"/contact\">Contact</a>\n </nav>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary: #2d3436;\n --accent: #6c5ce7;\n --background: #ffffff;\n --text: #2d3436;\n --gray: #a0a0a0;\n --radius: 12px;\n --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n line-height: 1.6;\n color: var(--text);\n background: var(--background);\n}\n\nheader {\n padding: 1rem 2rem;\n background: var(--background);\n box-shadow: var(--shadow);\n position: sticky;\n top: 0;\n z-index: 100;\n}\n\nnav {\n max-width: 1200px;\n margin: 0 auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: 700;\n text-decoration: none;\n color: var(--primary);\n}\n\n.logo span {\n color: var(--accent);\n}\n\n.nav-links a {\n margin-left: 2rem;\n text-decoration: none;\n color: var(--text);\n font-weight: 500;\n transition: color 0.3s ease;\n}\n\n.nav-links a:hover {\n color: var(--accent);\n}\n\nmain {\n max-width: 1200px;\n margin: 0 auto;\n padding: 2rem;\n}\n\n.hero {\n text-align: center;\n padding: 4rem 1rem;\n margin-bottom: 4rem;\n}\n\n.hero h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n background: linear-gradient(135deg, var(--primary), var(--accent));\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n\n.hero p {\n font-size: 1.25rem;\n color: var(--gray);\n}\n\n.article-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n margin-top: 2rem;\n}\n\n.article-card {\n background: var(--background);\n border-radius: var(--radius);\n overflow: hidden;\n box-shadow: var(--shadow);\n transition: transform 0.3s ease;\n}\n\n.article-card:hover {\n transform: translateY(-4px);\n}\n\n.article-content {\n padding: 1.5rem;\n}\n\n.article-content h3 {\n margin-bottom: 0.5rem;\n color: var(--primary);\n}\n\n.article-meta {\n margin-top: 1rem;\n display: flex;\n justify-content: space-between;\n color: var(--gray);\n font-size: 0.9rem;\n}\n\nfooter {\n background: var(--primary);\n color: var(--background);\n padding: 2rem;\n margin-top: 4rem;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.footer-links a {\n color: var(--background);\n text-decoration: none;\n margin-left: 1.5rem;\n opacity: 0.8;\n transition: opacity 0.3s ease;\n}\n\n.footer-links a:hover {\n opacity: 1;\n}\n\n@media (max-width: 768px) {\n .nav-links {\n display: none;\n }\n \n .hero h1 {\n font-size: 2rem;\n }\n \n .footer-content {\n flex-direction: column;\n text-align: center;\n gap: 1rem;\n }\n \n .footer-links a {\n margin: 0 0.75rem;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Initialize MathJax for LaTeX rendering\n window.MathJax = {\n tex: {\n inlineMath: [['\\\\(', '\\\\)']],\n displayMath: [['\\\\[', '\\\\]']],\n processEscapes: true,\n },\n options: {\n skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre']\n }\n };\n\n // Load MathJax dynamically\n const script = document.createElement('script');\n script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';\n script.async = true;\n document.head.appendChild(script);\n\n // Smooth scroll for navigation links\n document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function (e) {\n e.preventDefault();\n document.querySelector(this.getAttribute('href')).scrollIntoView({\n behavior: 'smooth'\n });\n });\n });\n});\n\n---end---\n\nThis design features:\n1. Clean, modern aesthetic with careful typography and spacing\n2. Beautiful gradient effects and subtle animations\n3. Responsive design that works well on all devices\n4. Semantic HTML5 structure\n5. CSS Grid and Flexbox for modern layouts\n6. Accessible color contrast and navigation\n7. Dynamic LaTeX rendering using MathJax\n8. Performance optimizations\n9. Professional branding with the \"MaThink\" name\n10. Subtle shadows and transitions for depth\n\nThe domain name \"mathink.scroll.pub\" combines \"math\" and \"think\" into a memorable portmanteau that represents mathematical thinking and exploration." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 285, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2214 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..87a8633 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,3 @@ +# mathink.scroll.pub + +website generated by Claude from prompt: a blog where i can publish markdown articles about math topics, with latex rendering \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..e803381 --- /dev/null +++ b/script.js @@ -0,0 +1,29 @@ +document.addEventListener('DOMContentLoaded', () => { + // Initialize MathJax for LaTeX rendering + window.MathJax = { + tex: { + inlineMath: [['\\(', '\\)']], + displayMath: [['\\[', '\\]']], + processEscapes: true, + }, + options: { + skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'] + } + }; + + // Load MathJax dynamically + const script = document.createElement('script'); + script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js'; + script.async = true; + document.head.appendChild(script); + + // Smooth scroll for navigation links + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + document.querySelector(this.getAttribute('href')).scrollIntoView({ + behavior: 'smooth' + }); + }); + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..65f11bd --- /dev/null +++ b/style.css @@ -0,0 +1,170 @@ +:root { + --primary: #2d3436; + --accent: #6c5ce7; + --background: #ffffff; + --text: #2d3436; + --gray: #a0a0a0; + --radius: 12px; + --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; + line-height: 1.6; + color: var(--text); + background: var(--background); +} + +header { + padding: 1rem 2rem; + background: var(--background); + box-shadow: var(--shadow); + position: sticky; + top: 0; + z-index: 100; +} + +nav { + max-width: 1200px; + margin: 0 auto; + display: flex; + justify-content: space-between; + align-items: center; +} + +.logo { + font-size: 1.5rem; + font-weight: 700; + text-decoration: none; + color: var(--primary); +} + +.logo span { + color: var(--accent); +} + +.nav-links a { + margin-left: 2rem; + text-decoration: none; + color: var(--text); + font-weight: 500; + transition: color 0.3s ease; +} + +.nav-links a:hover { + color: var(--accent); +} + +main { + max-width: 1200px; + margin: 0 auto; + padding: 2rem; +} + +.hero { + text-align: center; + padding: 4rem 1rem; + margin-bottom: 4rem; +} + +.hero h1 { + font-size: 3rem; + margin-bottom: 1rem; + background: linear-gradient(135deg, var(--primary), var(--accent)); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} + +.hero p { + font-size: 1.25rem; + color: var(--gray); +} + +.article-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 2rem; + margin-top: 2rem; +} + +.article-card { + background: var(--background); + border-radius: var(--radius); + overflow: hidden; + box-shadow: var(--shadow); + transition: transform 0.3s ease; +} + +.article-card:hover { + transform: translateY(-4px); +} + +.article-content { + padding: 1.5rem; +} + +.article-content h3 { + margin-bottom: 0.5rem; + color: var(--primary); +} + +.article-meta { + margin-top: 1rem; + display: flex; + justify-content: space-between; + color: var(--gray); + font-size: 0.9rem; +} + +footer { + background: var(--primary); + color: var(--background); + padding: 2rem; + margin-top: 4rem; +} + +.footer-content { + max-width: 1200px; + margin: 0 auto; + display: flex; + justify-content: space-between; + align-items: center; +} + +.footer-links a { + color: var(--background); + text-decoration: none; + margin-left: 1.5rem; + opacity: 0.8; + transition: opacity 0.3s ease; +} + +.footer-links a:hover { + opacity: 1; +} + +@media (max-width: 768px) { + .nav-links { + display: none; + } + + .hero h1 { + font-size: 2rem; + } + + .footer-content { + flex-direction: column; + text-align: center; + gap: 1rem; + } + + .footer-links a { + margin: 0 0.75rem; + } +}