diff --git a/static/css/iconfont.css b/static/css/iconfont.css new file mode 100644 index 0000000..ae4a874 --- /dev/null +++ b/static/css/iconfont.css @@ -0,0 +1,99 @@ +@font-face { + font-family: "iconfont"; + /* Project id 4822819 */ + src: url('../fonts/font_4822819_rmn2x9ioqhi.woff2') format('woff2'), + url('../fonts/font_4822819_rmn2x9ioqhi.woff') format('woff'), + url('../fonts/font_4822819_rmn2x9ioqhi.ttf') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-home:before { + content: "\e61d"; +} + +.icon-app3:before { + content: "\e6f9"; +} + +.icon-education-1-copy:before { + content: "\e614"; +} + +.icon-about:before { + content: "\e601"; +} + +.icon-web:before { + content: "\e629"; +} + +.icon-yunjisuan:before { + content: "\e609"; +} + +.icon-huaban:before { + content: "\e72d"; +} + +.icon-caozuoxitong:before { + content: "\e65d"; +} + +.icon-js:before { + content: "\ec68"; +} + +.icon-robot:before { + content: "\e82e"; +} + +.icon-web1:before { + content: "\e68b"; +} + +.icon-qianrushixitong:before { + content: "\e615"; +} + +.icon-java:before { + content: "\e6e0"; +} + +.icon-python:before { + content: "\e739"; +} + +.icon-ruanjiangongchengshizigerenzheng:before { + content: "\e681"; +} + +.icon-createbug_Line_icons:before { + content: "\e610"; +} + +.icon-SlabOutline:before { + content: "\e6af"; +} + +.icon-Achievements:before { + content: "\e690"; +} + +.icon-database:before { + content: "\e940"; +} + +.icon-a-EmploymentSkills:before { + content: "\e649"; +} + +.icon-a-ic-MobileAppMarketing:before { + content: "\e67a"; +} \ No newline at end of file diff --git a/static/css/support.css b/static/css/support.css new file mode 100644 index 0000000..c9cb6af --- /dev/null +++ b/static/css/support.css @@ -0,0 +1,398 @@ +.wrap { + margin: 0 auto; +} + +a { + text-decoration: none; + color: #333; +} + +li { + list-style: none; +} + +/* introduction */ + +.introduction { + max-width: 1300px; + display: flex; + /* justify-content: center; + align-items: center; */ + margin-top: 50px; +} + +.sidebar { + display: flex; + flex-direction: column; + justify-content: center; + align-content: center; + color: white; + padding: 40px; + width: 100%; + text-align: center; + border-radius: 10px; + background-color: #4a69bd; +} + +.content { + width: 100%; + padding: 30px; + display: flex; + flex-wrap: wrap; + align-items: center; +} + +.img { + flex: 0 0 auto; + position: relative; + box-sizing: border-box; + overflow: hidden; + width: 35%; + height: 400px; + background-color: rgba(74, 105, 189, 0.8); + margin-right: 50px; + border-radius: 68% 32% 100% 0% / 0% 75% 25% 100%; +} + +.profile-pic { + display: block; + position: absolute; + top: 6%; + left: 6%; + width: 88%; + height: 88%; + background-color: pink; + border-radius: 10px; + margin-right: 20px; + border-radius: 68% 32% 100% 0% / 0% 75% 25% 100%; +} + +.info { + text-align: left; + width: 60%; +} + +.info h1 { + margin-bottom: 10px; +} + +.info p { + margin-bottom: 20px; +} + +.info ul { + list-style-type: none; + padding: 0; +} + +.info ul li { + margin-bottom: 10px; + margin-top: 10px; +} + +/* === Responsive Design === */ +@media (max-width: 1300px) { + .img { + width: 35%; + } + + .info { + width: 60%; + } +} + +@media (max-width: 992px) { + .img { + width: 300px; + height: 300px; + } + + .info { + min-width: 300px; + } +} + +@media (max-width: 627px) { + .img { + width: 250px; + height: 250px; + } + + .info { + width: 300px; + } +} + +@media (max-width: 480px) { + .img { + width: 300px; + height: 300px; + } + + .info { + width: 500px; + } +} + +/* education */ + +.education { + max-width: 1300px; + display: flex; + flex-direction: column; + margin-top: 10px; +} + +.education .content { + display: flex; + flex-direction: column; + background-color: #f7fafc; + align-items: start; +} + +.education-item { + position: relative; + padding-left: 30px; + margin-bottom: 20px; + background-color: #f7fafc; + border-radius: 10px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + overflow: hidden; + transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); +} + +.education-item:hover { + transform: translateY(-10px); + box-shadow: 0 8px 30px rgba(30, 55, 153, 0.15); +} + +.arrow { + position: absolute; + left: 10px; + top: 50%; + transform: translateY(-50%); + width: 0; + height: 0; + border-top: 10px solid transparent; + border-bottom: 10px solid transparent; + border-left: 10px solid #1a202c; +} + +.education-item::after { + content: ''; + position: absolute; + top: -50%; + left: -50%; + width: 200%; + height: 200%; + background: linear-gradient(45deg, transparent 45%, rgba(108, 92, 231, 0.1) 100%); + transform: rotate(45deg); + z-index: 0; +} + +/* skill */ + +.skill { + display: flex; + flex-direction: column; + max-width: 1300px; + margin-top: 10px; +} + +.skill .content { + background-color: #f7fafc; + flex-wrap: wrap; + justify-content: space-around; +} + +.skill-item { + background-color: #f7fafc; + border-radius: 20px; + padding: 20px; + margin: 20px; + width: 373px; + /* 适应不同屏幕大小 */ + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + transition: transform 0.3s ease; + /* 添加过渡效果 */ +} + +.skill-item:hover { + transform: scale(1.1); + /* 鼠标悬停时放大 */ + color: #4a69bd; +} + +.skill-item .iconfont { + font-size: 30px; + margin-bottom: 10px; +} + +.percentage { + font-size: 24px; + font-weight: bold; +} + + + +/* project */ + +.project { + max-width: 1300px; + width: 100%; + display: flex; + flex-direction: column; + margin-top: 10px; + margin-bottom: 40px; +} + +.project .content { + display: flex; + flex-direction: column; + background-color: #f7fafc; + align-items: start; + gap: 30px; +} + +.service-item { + display: flex; + width: 100%; + align-items: center; + gap: 20px; + padding: 20px; + background-color: #fff; + border-radius: 5px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); +} + +.service-item:hover { + transform: translateY(-10px); + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); +} + +.project .content .service-item .iconfont { + display: block; + width: 10%; + height: 100%; + font-size: 50px; +} + +.project .content .service-item .iconfont:hover { + color: #4a69bd; + +} + +.details { + display: flex; + +} + +.details h3 { + width: 15%; + height: 100%; + line-height: 100%; +} + +.details p { + width: 60%; +} + +.checkmark { + color: #007bff; +} + +/* 滚动动画 */ + +.introduction { + opacity: 0; + transform: translateY(100px); + transition: all 2s ease-out; +} + +.introduction.animate { + opacity: 1; + transform: translateY(0); +} + +.education { + opacity: 0; + transform: translateY(100px); + transition: all 2s ease-out; +} + +.education.animate { + opacity: 1; + transition-delay: 1s; + transform: translateY(0); +} + +.skill { + opacity: 0; + transform: translateY(100px); + transition: all 2s ease-out; +} + +.skill.animate { + opacity: 1; + transform: translateY(0); +} + +.project { + opacity: 0; + transform: translateY(100px); + transition: all 2s ease-out; +} + +.project.animate { + opacity: 1; + transform: translateY(0); +} + +/* 电梯 */ + +.elevator { + position: fixed; + left: 50%; + top: 280px; + z-index: 999; + margin-left: 45%; + opacity: 0; + transition: all .5s; +} + +.elevator ul { + width: 45px; + height: 225px; + background: #fff; + float: right; + border: 1px solid #f5f5f5; + position: relative; +} + +.elevator ul li { + height: 45px; + padding: 10px; +} + +.elevator ul li a { + width: 40px; + height: 30px; + display: block; + font-size: 20px; +} + +.elevator ul li a:hover { + color: rgb(207, 156, 247); +} + +.elevator ul li a i { + display: block; + width: 16px; + height: 16px; + position: relative; + left: 4px; + background-position: 8px -106px; + font-size: 20px; + transform: rotate(-90deg); +} \ No newline at end of file diff --git a/static/fonts/font_4822819_rmn2x9ioqhi.ttf b/static/fonts/font_4822819_rmn2x9ioqhi.ttf new file mode 100644 index 0000000..72512cd Binary files /dev/null and b/static/fonts/font_4822819_rmn2x9ioqhi.ttf differ diff --git a/static/fonts/font_4822819_rmn2x9ioqhi.woff b/static/fonts/font_4822819_rmn2x9ioqhi.woff new file mode 100644 index 0000000..a451468 Binary files /dev/null and b/static/fonts/font_4822819_rmn2x9ioqhi.woff differ diff --git a/static/fonts/font_4822819_rmn2x9ioqhi.woff2 b/static/fonts/font_4822819_rmn2x9ioqhi.woff2 new file mode 100644 index 0000000..9bcb4f6 Binary files /dev/null and b/static/fonts/font_4822819_rmn2x9ioqhi.woff2 differ diff --git a/static/image/profile.jpg b/static/image/profile.jpg new file mode 100644 index 0000000..2986314 Binary files /dev/null and b/static/image/profile.jpg differ diff --git a/static/javascript/support.js b/static/javascript/support.js new file mode 100644 index 0000000..eda1842 --- /dev/null +++ b/static/javascript/support.js @@ -0,0 +1,104 @@ +// 动画滚动 + +document.addEventListener('DOMContentLoaded', function () { + const sections = document.querySelectorAll('.introduction'); + + const observer = new IntersectionObserver(entries => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add('animate'); + } + }); + }, { + threshold: 0.1 + }); + + sections.forEach(section => { + observer.observe(section); + }); +}); + +document.addEventListener('DOMContentLoaded', function () { + const sections = document.querySelectorAll('.education'); + + const observer = new IntersectionObserver(entries => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add('animate'); + } + }); + }, { + threshold: 0.1 + }); + + sections.forEach(section => { + observer.observe(section); + }); +}); + +document.addEventListener('DOMContentLoaded', function () { + const sections = document.querySelectorAll('.skill'); + + const observer = new IntersectionObserver(entries => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add('animate'); + } + }); + }, { + threshold: 0.1 + }); + + sections.forEach(section => { + observer.observe(section); + }); +}); + +document.addEventListener('DOMContentLoaded', function () { + const sections = document.querySelectorAll('.project'); + + const observer = new IntersectionObserver(entries => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add('animate'); + } + }); + }, { + threshold: 0.1 + }); + + sections.forEach(section => { + observer.observe(section); + }); +}); + +// 电梯导航 +const elevator = document.querySelector('.elevator') +window.addEventListener('scroll', function () { + const n = document.documentElement.scrollTop + // if (n >= 300) { + // elevator.style.opacity = 1 + // } else { + // elevator.style.opacity = 0 + + // } + elevator.style.opacity = n >= 300 ? 1 : 0 +}) + +const backTop = document.querySelector('#backTop') +backTop.addEventListener('click', function () { + console.log(1) + document.documentElement.scrollTop = 0 +}) + +const ul = document.querySelector('.elevator ul') +ul.addEventListener('click', function (e) { + console.log(1) + if (e.target.tagName === 'A') { + // 获得自定义属性 + // console.log(e.target.dataset.name) + // console.log(document.querySelector(`.${e.target.dataset.name}`).offsetTop) + const top = document.querySelector(`.${e.target.dataset.name}`).offsetTop + document.documentElement.scrollTop = top + } +}) \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 790f3b7..d220291 100644 --- a/templates/index.html +++ b/templates/index.html @@ -47,7 +47,7 @@

组员介绍

此处添加内容

- +

指导老师

此处添加内容

diff --git a/templates/support.html b/templates/support.html new file mode 100644 index 0000000..a362558 --- /dev/null +++ b/templates/support.html @@ -0,0 +1,220 @@ + + + + + + + 指导老师 + + + + + + + + + + + +
+ + + + + + +
+
+
+ Profile Picture +
+
+

名字 职位

+

简单介绍Lorem ipsum dolor sit amet consectetur adipisicing elit. Aperiam sed animi et laboriosam facere tempora + rerum, + eligendi veritatis nesciunt cum?

+
    +
  • 📍办公室: 中南民族大学xxxxxx办公室
  • +
  • 📧QQ邮箱: info@example.com
  • +
  • 📞电话: (+012) 3456 7890
  • +
  • 🌐电子邮件: YourSite@ex.com
  • +
+
+
+
+ + +
+ +
+
+
+
+

National University

+

📅 2017 - 2019

+

Diploma in Computer

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti, a quasi velit sint atque non saepe + quaerat + ducimus, nobis error cupiditate, nisi repudiandae dignissimos magnam? Dicta ab possimus tempora.

+
+
+
+
+
+

Webster College

+

📅 2017 - 2019

+

UI/UX Design

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti, a quasi velit sint atque non saepe + quaerat + ducimus, nobis error cupiditate, nisi repudiandae dignissimos magnam? Dicta ab possimus tempora.

+
+
+
+
+
+

Oxford University

+

📅 2017 - 2019

+

Java Development

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti, a quasi velit sint atque non saepe + quaerat + ducimus, nobis error cupiditate, nisi repudiandae dignissimos magnam? Dicta ab possimus tempora.

+
+
+
+
+ + +
+ +
+
+
web
+
98%
+
+
+
java
+
95%
+
+
+
python
+
87%
+
+
+
嵌入式
+
75%
+
+
+
JavaScript
+
67%
+
+
+
数据分析
+
98%
+
+
+
+ + +
+ +
+
+ +
+

Creative Design

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Reiciendis laboriosam repudiandae.

+
    +
  • ✓ UI/UX Design
  • +
  • ✓ Research
  • +
  • ✓ Mobile App
  • +
+
+
+
+ +
+

Web Develop

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Reiciendis laboriosam repudiandae.

+
    +
  • ✓ UI/UX Design
  • +
  • ✓ Research
  • +
  • ✓ Mobile App
  • +
+
+
+
+ +
+

Mobile Application

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Reiciendis laboriosam repudiandae.

+
    +
  • ✓ UI/UX Design
  • +
  • ✓ Research
  • +
  • ✓ Mobile App
  • +
+
+
+
+
+ + + + + +
+ +
+ + + + + \ No newline at end of file