commit 6621a6a28770ac37aabe8ed66491fc7823373744
Author: root <root@hub.scroll.pub>
Date: 2024-12-27 16:53:09 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..9ccbc89
--- /dev/null
+++ b/body.html
@@ -0,0 +1,99 @@
+<header class="header">
+ <nav>
+ <ul>
+ <li><a href="#about">关于我</a></li>
+ <li><a href="#skills">技能</a></li>
+ <li><a href="#experience">经验</a></li>
+ <li><a href="#projects">项目</a></li>
+ <li><a href="#contact">联系我</a></li>
+ </ul>
+ </nav>
+</header>
+
+<main>
+ <section id="hero" class="hero">
+ <div class="container">
+ <h1>张三</h1>
+ <h2>资深前端开发工程师</h2>
+ <p>用代码构建精彩的网络体验</p>
+ </div>
+ </section>
+
+ <section id="about" class="about">
+ <div class="container">
+ <h2>关于我</h2>
+ <p>拥有5年网页开发经验,专注于创建高性能、可访问性强的用户界面。熟练掌握现代前端技术栈,追求代码质量与用户体验的完美平衡。</p>
+ </div>
+ </section>
+
+ <section id="skills" class="skills">
+ <div class="container">
+ <h2>专业技能</h2>
+ <div class="skill-grid">
+ <div class="skill-card">
+ <h3>前端开发</h3>
+ <ul>
+ <li>HTML5</li>
+ <li>CSS3/Sass</li>
+ <li>JavaScript/TypeScript</li>
+ <li>React/Vue</li>
+ </ul>
+ </div>
+ <div class="skill-card">
+ <h3>后端技术</h3>
+ <ul>
+ <li>Node.js</li>
+ <li>Python</li>
+ <li>SQL</li>
+ <li>RESTful API</li>
+ </ul>
+ </div>
+ <div class="skill-card">
+ <h3>开发工具</h3>
+ <ul>
+ <li>Git</li>
+ <li>Docker</li>
+ <li>VS Code</li>
+ <li>Webpack</li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <section id="experience" class="experience">
+ <div class="container">
+ <h2>工作经验</h2>
+ <div class="timeline">
+ <div class="timeline-item">
+ <h3>高级前端开发工程师</h3>
+ <p class="company">科技有限公司</p>
+ <p class="period">2020 - 至今</p>
+ <p>负责公司核心产品的前端架构设计与实现</p>
+ </div>
+ <div class="timeline-item">
+ <h3>前端开发工程师</h3>
+ <p class="company">互联网公司</p>
+ <p class="period">2018 - 2020</p>
+ <p>参与多个大型Web应用开发</p>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <section id="contact" class="contact">
+ <div class="container">
+ <h2>联系方式</h2>
+ <div class="contact-info">
+ <p>邮箱:example@email.com</p>
+ <p>电话:+86 123 4567 8900</p>
+ </div>
+ </div>
+ </section>
+</main>
+
+<footer class="footer">
+ <div class="container">
+ <p>张三的个人简历网站</p>
+ </div>
+</footer>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..0973238
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,11 @@
+buildHtml
+baseUrl https://my-portfolio.scroll.pub
+metaTags
+ title "张三的个人简历 | 专业网页开发者"
+ description "资深网页开发工程师张三的在线简历,展示专业技能、工作经验与项目案例"
+ keywords "网页开发, 前端工程师, 简历, 作品集, HTML, CSS, JavaScript"
+editButton /edit.html
+title 张三的个人简历
+style.css
+body.html
+script.js
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..de64200
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_01NAbkifm8RJwBaZpgehbjTo",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a professional resume website with a clean, modern design.\n\n---domain---\nmy-portfolio.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://my-portfolio.scroll.pub\nmetaTags\n title \"张三的个人简历 | 专业网页开发者\"\n description \"资深网页开发工程师张三的在线简历,展示专业技能、工作经验与项目案例\"\n keywords \"网页开发, 前端工程师, 简历, 作品集, HTML, CSS, JavaScript\"\neditButton /edit.html\ntitle 张三的个人简历\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header class=\"header\">\n <nav>\n <ul>\n <li><a href=\"#about\">关于我</a></li>\n <li><a href=\"#skills\">技能</a></li>\n <li><a href=\"#experience\">经验</a></li>\n <li><a href=\"#projects\">项目</a></li>\n <li><a href=\"#contact\">联系我</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section id=\"hero\" class=\"hero\">\n <div class=\"container\">\n <h1>张三</h1>\n <h2>资深前端开发工程师</h2>\n <p>用代码构建精彩的网络体验</p>\n </div>\n </section>\n\n <section id=\"about\" class=\"about\">\n <div class=\"container\">\n <h2>关于我</h2>\n <p>拥有5年网页开发经验,专注于创建高性能、可访问性强的用户界面。熟练掌握现代前端技术栈,追求代码质量与用户体验的完美平衡。</p>\n </div>\n </section>\n\n <section id=\"skills\" class=\"skills\">\n <div class=\"container\">\n <h2>专业技能</h2>\n <div class=\"skill-grid\">\n <div class=\"skill-card\">\n <h3>前端开发</h3>\n <ul>\n <li>HTML5</li>\n <li>CSS3/Sass</li>\n <li>JavaScript/TypeScript</li>\n <li>React/Vue</li>\n </ul>\n </div>\n <div class=\"skill-card\">\n <h3>后端技术</h3>\n <ul>\n <li>Node.js</li>\n <li>Python</li>\n <li>SQL</li>\n <li>RESTful API</li>\n </ul>\n </div>\n <div class=\"skill-card\">\n <h3>开发工具</h3>\n <ul>\n <li>Git</li>\n <li>Docker</li>\n <li>VS Code</li>\n <li>Webpack</li>\n </ul>\n </div>\n </div>\n </div>\n </section>\n\n <section id=\"experience\" class=\"experience\">\n <div class=\"container\">\n <h2>工作经验</h2>\n <div class=\"timeline\">\n <div class=\"timeline-item\">\n <h3>高级前端开发工程师</h3>\n <p class=\"company\">科技有限公司</p>\n <p class=\"period\">2020 - 至今</p>\n <p>负责公司核心产品的前端架构设计与实现</p>\n </div>\n <div class=\"timeline-item\">\n <h3>前端开发工程师</h3>\n <p class=\"company\">互联网公司</p>\n <p class=\"period\">2018 - 2020</p>\n <p>参与多个大型Web应用开发</p>\n </div>\n </div>\n </div>\n </section>\n\n <section id=\"contact\" class=\"contact\">\n <div class=\"container\">\n <h2>联系方式</h2>\n <div class=\"contact-info\">\n <p>邮箱:example@email.com</p>\n <p>电话:+86 123 4567 8900</p>\n </div>\n </div>\n </section>\n</main>\n\n<footer class=\"footer\">\n <div class=\"container\">\n <p>张三的个人简历网站</p>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --secondary-color: #3498db;\n --text-color: #333;\n --bg-color: #fff;\n --accent-color: #e74c3c;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--bg-color);\n}\n\n.container {\n max-width: 1200px;\n margin: 0 auto;\n padding: 0 20px;\n}\n\n.header {\n position: fixed;\n top: 0;\n width: 100%;\n background: rgba(255, 255, 255, 0.95);\n backdrop-filter: blur(10px);\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n z-index: 1000;\n}\n\nnav ul {\n display: flex;\n justify-content: center;\n list-style: none;\n padding: 20px 0;\n}\n\nnav ul li {\n margin: 0 20px;\n}\n\nnav ul li a {\n text-decoration: none;\n color: var(--primary-color);\n font-weight: 500;\n transition: color 0.3s ease;\n}\n\nnav ul li a:hover {\n color: var(--secondary-color);\n}\n\n.hero {\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));\n color: white;\n}\n\n.hero h1 {\n font-size: 4rem;\n margin-bottom: 20px;\n animation: fadeIn 1s ease-out;\n}\n\n.hero h2 {\n font-size: 2rem;\n margin-bottom: 20px;\n opacity: 0.9;\n}\n\nsection {\n padding: 100px 0;\n}\n\n.skill-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 30px;\n margin-top: 40px;\n}\n\n.skill-card {\n background: white;\n padding: 30px;\n border-radius: 10px;\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);\n transition: transform 0.3s ease;\n}\n\n.skill-card:hover {\n transform: translateY(-5px);\n}\n\n.timeline {\n position: relative;\n max-width: 800px;\n margin: 40px auto;\n}\n\n.timeline-item {\n margin-bottom: 40px;\n padding: 20px;\n background: white;\n border-radius: 10px;\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);\n}\n\n.contact-info {\n text-align: center;\n margin-top: 40px;\n}\n\n.footer {\n background: var(--primary-color);\n color: white;\n text-align: center;\n padding: 20px 0;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n transform: translateY(20px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@media (max-width: 768px) {\n nav ul {\n flex-direction: column;\n align-items: center;\n }\n \n nav ul li {\n margin: 10px 0;\n }\n \n .hero h1 {\n font-size: 2.5rem;\n }\n \n .hero h2 {\n font-size: 1.5rem;\n }\n \n section {\n padding: 60px 0;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Smooth scrolling for navigation links\n document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function (e) {\n e.preventDefault();\n const target = document.querySelector(this.getAttribute('href'));\n target.scrollIntoView({\n behavior: 'smooth',\n block: 'start'\n });\n });\n });\n\n // Add scroll animation for elements\n const observerOptions = {\n threshold: 0.1,\n rootMargin: '0px 0px -50px 0px'\n };\n\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n entry.target.style.opacity = '1';\n entry.target.style.transform = 'translateY(0)';\n }\n });\n }, observerOptions);\n\n document.querySelectorAll('section:not(.hero)').forEach(section => {\n section.style.opacity = '0';\n section.style.transform = 'translateY(20px)';\n section.style.transition = 'all 0.6s ease-out';\n observer.observe(section);\n });\n});\n\n---end---"
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 278,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2616
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..9704c57
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# my-portfolio.scroll.pub
+Website generated by Claude from prompt: 展示我简历的网站
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..752b6aa
--- /dev/null
+++ b/script.js
@@ -0,0 +1,35 @@
+document.addEventListener('DOMContentLoaded', () => {
+ // Smooth scrolling for navigation links
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ e.preventDefault();
+ const target = document.querySelector(this.getAttribute('href'));
+ target.scrollIntoView({
+ behavior: 'smooth',
+ block: 'start'
+ });
+ });
+ });
+
+ // Add scroll animation for elements
+ const observerOptions = {
+ threshold: 0.1,
+ rootMargin: '0px 0px -50px 0px'
+ };
+
+ const observer = new IntersectionObserver((entries) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ entry.target.style.opacity = '1';
+ entry.target.style.transform = 'translateY(0)';
+ }
+ });
+ }, observerOptions);
+
+ document.querySelectorAll('section:not(.hero)').forEach(section => {
+ section.style.opacity = '0';
+ section.style.transform = 'translateY(20px)';
+ section.style.transition = 'all 0.6s ease-out';
+ observer.observe(section);
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..9581f56
--- /dev/null
+++ b/style.css
@@ -0,0 +1,163 @@
+:root {
+ --primary-color: #2c3e50;
+ --secondary-color: #3498db;
+ --text-color: #333;
+ --bg-color: #fff;
+ --accent-color: #e74c3c;
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background-color: var(--bg-color);
+}
+
+.container {
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 0 20px;
+}
+
+.header {
+ position: fixed;
+ top: 0;
+ width: 100%;
+ background: rgba(255, 255, 255, 0.95);
+ backdrop-filter: blur(10px);
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
+ z-index: 1000;
+}
+
+nav ul {
+ display: flex;
+ justify-content: center;
+ list-style: none;
+ padding: 20px 0;
+}
+
+nav ul li {
+ margin: 0 20px;
+}
+
+nav ul li a {
+ text-decoration: none;
+ color: var(--primary-color);
+ font-weight: 500;
+ transition: color 0.3s ease;
+}
+
+nav ul li a:hover {
+ color: var(--secondary-color);
+}
+
+.hero {
+ height: 100vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ text-align: center;
+ background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
+ color: white;
+}
+
+.hero h1 {
+ font-size: 4rem;
+ margin-bottom: 20px;
+ animation: fadeIn 1s ease-out;
+}
+
+.hero h2 {
+ font-size: 2rem;
+ margin-bottom: 20px;
+ opacity: 0.9;
+}
+
+section {
+ padding: 100px 0;
+}
+
+.skill-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 30px;
+ margin-top: 40px;
+}
+
+.skill-card {
+ background: white;
+ padding: 30px;
+ border-radius: 10px;
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
+ transition: transform 0.3s ease;
+}
+
+.skill-card:hover {
+ transform: translateY(-5px);
+}
+
+.timeline {
+ position: relative;
+ max-width: 800px;
+ margin: 40px auto;
+}
+
+.timeline-item {
+ margin-bottom: 40px;
+ padding: 20px;
+ background: white;
+ border-radius: 10px;
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
+}
+
+.contact-info {
+ text-align: center;
+ margin-top: 40px;
+}
+
+.footer {
+ background: var(--primary-color);
+ color: white;
+ text-align: center;
+ padding: 20px 0;
+}
+
+@keyframes fadeIn {
+ from {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+@media (max-width: 768px) {
+ nav ul {
+ flex-direction: column;
+ align-items: center;
+ }
+
+ nav ul li {
+ margin: 10px 0;
+ }
+
+ .hero h1 {
+ font-size: 2.5rem;
+ }
+
+ .hero h2 {
+ font-size: 1.5rem;
+ }
+
+ section {
+ padding: 60px 0;
+ }
+}