commit 0569c7e224d9f4484ade26a2f16e54e4a2924083
Author: root <root@hub.scroll.pub> Date: 2025-01-13 06:42:34 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..cc7767a --- /dev/null +++ b/body.html @@ -0,0 +1,92 @@ +<header class="header"> + <nav> + <ul> + <li><a href="#about">关于我</a></li> + <li><a href="#experience">工作经验</a></li> + <li><a href="#skills">技能专长</a></li> + <li><a href="#education">教育背景</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 class="tagline">5年网站开发经验 | 精通前后端技术 | 热爱创新</p> + </div> + </section> + + <section id="about" class="about"> + <div class="container"> + <h2>关于我</h2> + <p>富有创造力和技术热情的全栈开发工程师,专注于构建高性能、可扩展的web应用。擅长解决复杂技术问题,具有强大的团队协作能力。</p> + </div> + </section> + + <section id="experience" class="experience"> + <div class="container"> + <h2>工作经验</h2> + <div class="experience-item"> + <h3>高级开发工程师</h3> + <p class="company">科技有限公司</p> + <p class="period">2020 - 至今</p> + <ul> + <li>负责公司核心产品的架构设计和开发</li> + <li>优化系统性能,提升用户体验</li> + <li>指导初级开发人员,组织技术分享会</li> + </ul> + </div> + </div> + </section> + + <section id="skills" class="skills"> + <div class="container"> + <h2>技能专长</h2> + <div class="skills-grid"> + <div class="skill-item"> + <div class="skill-name">HTML5/CSS3</div> + <div class="skill-bar" data-level="90"></div> + </div> + <div class="skill-item"> + <div class="skill-name">JavaScript</div> + <div class="skill-bar" data-level="85"></div> + </div> + <div class="skill-item"> + <div class="skill-name">Node.js</div> + <div class="skill-bar" data-level="80"></div> + </div> + </div> + </div> + </section> + + <section id="education" class="education"> + <div class="container"> + <h2>教育背景</h2> + <div class="education-item"> + <h3>计算机科学与技术</h3> + <p class="school">某某大学</p> + <p class="period">2015 - 2019</p> + </div> + </div> + </section> + + <section id="contact" class="contact"> + <div class="container"> + <h2>联系方式</h2> + <div class="contact-info"> + <p><span>邮箱:</span>example@email.com</p> + <p><span>电话:</span>123-4567-8900</p> + <p><span>地址:</span>中国北京市</p> + </div> + </div> + </section> +</main> + +<footer> + <div class="container"> + <p>感谢您的访问</p> + </div> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..3ac06e0 --- /dev/null +++ b/index.scroll @@ -0,0 +1,10 @@ +buildHtml +baseUrl https://resume.scroll.pub +metaTags +title 个人简历 | Professional Resume +description 专业的个人简历展示页面,展示工作经验、技能和教育背景 +keywords 简历,个人简历,求职,工作经验,技能,教育背景 +author Your Name +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..e2cc275 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01AoMfbCmdQok5yEkGLSXfJo", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll create a personal resume website in Chinese. For the domain, I suggest:\n\n---domain---\nresume.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://resume.scroll.pub\nmetaTags\ntitle 个人简历 | Professional Resume\ndescription 专业的个人简历展示页面,展示工作经验、技能和教育背景\nkeywords 简历,个人简历,求职,工作经验,技能,教育背景\nauthor Your Name\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=\"#experience\">工作经验</a></li>\n <li><a href=\"#skills\">技能专长</a></li>\n <li><a href=\"#education\">教育背景</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 class=\"tagline\">5年网站开发经验 | 精通前后端技术 | 热爱创新</p>\n </div>\n </section>\n\n <section id=\"about\" class=\"about\">\n <div class=\"container\">\n <h2>关于我</h2>\n <p>富有创造力和技术热情的全栈开发工程师,专注于构建高性能、可扩展的web应用。擅长解决复杂技术问题,具有强大的团队协作能力。</p>\n </div>\n </section>\n\n <section id=\"experience\" class=\"experience\">\n <div class=\"container\">\n <h2>工作经验</h2>\n <div class=\"experience-item\">\n <h3>高级开发工程师</h3>\n <p class=\"company\">科技有限公司</p>\n <p class=\"period\">2020 - 至今</p>\n <ul>\n <li>负责公司核心产品的架构设计和开发</li>\n <li>优化系统性能,提升用户体验</li>\n <li>指导初级开发人员,组织技术分享会</li>\n </ul>\n </div>\n </div>\n </section>\n\n <section id=\"skills\" class=\"skills\">\n <div class=\"container\">\n <h2>技能专长</h2>\n <div class=\"skills-grid\">\n <div class=\"skill-item\">\n <div class=\"skill-name\">HTML5/CSS3</div>\n <div class=\"skill-bar\" data-level=\"90\"></div>\n </div>\n <div class=\"skill-item\">\n <div class=\"skill-name\">JavaScript</div>\n <div class=\"skill-bar\" data-level=\"85\"></div>\n </div>\n <div class=\"skill-item\">\n <div class=\"skill-name\">Node.js</div>\n <div class=\"skill-bar\" data-level=\"80\"></div>\n </div>\n </div>\n </div>\n </section>\n\n <section id=\"education\" class=\"education\">\n <div class=\"container\">\n <h2>教育背景</h2>\n <div class=\"education-item\">\n <h3>计算机科学与技术</h3>\n <p class=\"school\">某某大学</p>\n <p class=\"period\">2015 - 2019</p>\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><span>邮箱:</span>example@email.com</p>\n <p><span>电话:</span>123-4567-8900</p>\n <p><span>地址:</span>中国北京市</p>\n </div>\n </div>\n </section>\n</main>\n\n<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 --light-bg: #f8f9fa;\n --transition: all 0.3s ease;\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}\n\n.container {\n max-width: 1200px;\n margin: 0 auto;\n padding: 0 20px;\n}\n\n/* Header Styles */\n.header {\n position: fixed;\n width: 100%;\n background: rgba(255, 255, 255, 0.95);\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: var(--transition);\n}\n\nnav ul li a:hover {\n color: var(--secondary-color);\n}\n\n/* Hero Section */\n.hero {\n height: 100vh;\n display: flex;\n align-items: center;\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: white;\n text-align: center;\n}\n\n.hero h1 {\n font-size: 4rem;\n margin-bottom: 20px;\n animation: fadeInDown 1s ease-out;\n}\n\n.hero h2 {\n font-size: 2rem;\n margin-bottom: 20px;\n opacity: 0.9;\n animation: fadeInUp 1s ease-out;\n}\n\n.tagline {\n font-size: 1.2rem;\n opacity: 0.8;\n animation: fadeIn 1.5s ease-out;\n}\n\n/* Section Styles */\nsection {\n padding: 100px 0;\n}\n\nsection h2 {\n text-align: center;\n margin-bottom: 50px;\n color: var(--primary-color);\n position: relative;\n}\n\nsection h2::after {\n content: '';\n position: absolute;\n bottom: -10px;\n left: 50%;\n transform: translateX(-50%);\n width: 50px;\n height: 3px;\n background: var(--secondary-color);\n}\n\n/* Skills Section */\n.skills-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 30px;\n}\n\n.skill-item {\n background: var(--light-bg);\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\n.skill-bar {\n height: 10px;\n background: #e0e0e0;\n border-radius: 5px;\n margin-top: 10px;\n position: relative;\n overflow: hidden;\n}\n\n.skill-bar::after {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n background: var(--secondary-color);\n border-radius: 5px;\n width: 0;\n transition: width 1s ease-in-out;\n}\n\n/* Animations */\n@keyframes fadeInDown {\n from {\n opacity: 0;\n transform: translateY(-30px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@keyframes fadeInUp {\n from {\n opacity: 0;\n transform: translateY(30px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n/* Responsive Design */\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', function() {\n // Smooth scrolling 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 // Animate skill bars\n function animateSkillBars() {\n const skillBars = document.querySelectorAll('.skill-bar');\n skillBars.forEach(bar => {\n const level = bar.getAttribute('data-level');\n bar.style.width = `${level}%`;\n });\n }\n\n // Intersection Observer for skill bars animation\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n animateSkillBars();\n }\n });\n });\n\n const skillsSection = document.querySelector('.skills');\n if (skillsSection) {\n observer.observe(skillsSection);\n }\n\n // Add active class to navigation items on scroll\n const sections = document.querySelectorAll('section');\n const navItems = document.querySelectorAll('nav ul li a');\n\n window.addEventListener('scroll', () => {\n let current = '';\n sections.forEach(section => {\n const sectionTop = section.offsetTop;\n const sectionHeight = section.clientHeight;\n if (scrollY >= (sectionTop - sectionHeight / 3)) {\n current = section.getAttribute('id');\n }\n });\n\n navItems.forEach(item => {\n item.classList.remove('active');\n if (item.getAttribute('href').slice(1) === current) {\n item.classList.add('active');\n }\n });\n });\n});\n\n---end---" + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 274, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2925 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..6ec17e4 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,3 @@ +# resume.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..9db3eaf --- /dev/null +++ b/script.js @@ -0,0 +1,56 @@ +document.addEventListener('DOMContentLoaded', function() { + // Smooth scrolling for navigation links + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + document.querySelector(this.getAttribute('href')).scrollIntoView({ + behavior: 'smooth' + }); + }); + }); + + // Animate skill bars + function animateSkillBars() { + const skillBars = document.querySelectorAll('.skill-bar'); + skillBars.forEach(bar => { + const level = bar.getAttribute('data-level'); + bar.style.width = `${level}%`; + }); + } + + // Intersection Observer for skill bars animation + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + animateSkillBars(); + } + }); + }); + + const skillsSection = document.querySelector('.skills'); + if (skillsSection) { + observer.observe(skillsSection); + } + + // Add active class to navigation items on scroll + const sections = document.querySelectorAll('section'); + const navItems = document.querySelectorAll('nav ul li a'); + + window.addEventListener('scroll', () => { + let current = ''; + sections.forEach(section => { + const sectionTop = section.offsetTop; + const sectionHeight = section.clientHeight; + if (scrollY >= (sectionTop - sectionHeight / 3)) { + current = section.getAttribute('id'); + } + }); + + navItems.forEach(item => { + item.classList.remove('active'); + if (item.getAttribute('href').slice(1) === current) { + item.classList.add('active'); + } + }); + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..5994ad2 --- /dev/null +++ b/style.css @@ -0,0 +1,199 @@ +:root { + --primary-color: #2c3e50; + --secondary-color: #3498db; + --text-color: #333; + --light-bg: #f8f9fa; + --transition: all 0.3s ease; +} + +* { + 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); +} + +.container { + max-width: 1200px; + margin: 0 auto; + padding: 0 20px; +} + +/* Header Styles */ +.header { + position: fixed; + width: 100%; + background: rgba(255, 255, 255, 0.95); + 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: var(--transition); +} + +nav ul li a:hover { + color: var(--secondary-color); +} + +/* Hero Section */ +.hero { + height: 100vh; + display: flex; + align-items: center; + background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); + color: white; + text-align: center; +} + +.hero h1 { + font-size: 4rem; + margin-bottom: 20px; + animation: fadeInDown 1s ease-out; +} + +.hero h2 { + font-size: 2rem; + margin-bottom: 20px; + opacity: 0.9; + animation: fadeInUp 1s ease-out; +} + +.tagline { + font-size: 1.2rem; + opacity: 0.8; + animation: fadeIn 1.5s ease-out; +} + +/* Section Styles */ +section { + padding: 100px 0; +} + +section h2 { + text-align: center; + margin-bottom: 50px; + color: var(--primary-color); + position: relative; +} + +section h2::after { + content: ''; + position: absolute; + bottom: -10px; + left: 50%; + transform: translateX(-50%); + width: 50px; + height: 3px; + background: var(--secondary-color); +} + +/* Skills Section */ +.skills-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 30px; +} + +.skill-item { + background: var(--light-bg); + padding: 20px; + border-radius: 8px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +.skill-bar { + height: 10px; + background: #e0e0e0; + border-radius: 5px; + margin-top: 10px; + position: relative; + overflow: hidden; +} + +.skill-bar::after { + content: ''; + position: absolute; + left: 0; + top: 0; + height: 100%; + background: var(--secondary-color); + border-radius: 5px; + width: 0; + transition: width 1s ease-in-out; +} + +/* Animations */ +@keyframes fadeInDown { + from { + opacity: 0; + transform: translateY(-30px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +@keyframes fadeInUp { + from { + opacity: 0; + transform: translateY(30px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +@keyframes fadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } +} + +/* Responsive Design */ +@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; + } +}