Skip to content

Commit c105a2d

Browse files
committed
commit and update website
0 parents  commit c105a2d

File tree

165 files changed

+4801
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+4801
-0
lines changed

.env.production

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# .env.production
2+
# 默认情况下,开发服务器 (dev 命令) 运行在 development (开发) 模式,而 build 命令则运行在 production (生产) 模式。
3+
# 当执行 vite build 时,它会自动加载 .env.production 中可能存在的环境变量:
4+
# 为了防止意外地将一些环境变量泄漏到客户端,只有以 VITE_ 为前缀的变量才会暴露给经过 vite 处理的代码。
5+
VITE_BASE_URL = /ai-website/

.github/workflows/deploy.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Deploy to GitHub Pages
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push events but only for the master branch
8+
push:
9+
branches:
10+
- master # 触发部署的分支(例如 main 或 master)
11+
12+
permissions:
13+
pages: write # 允许部署到 Pages
14+
id-token: write # 允许使用 OIDC 令牌
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains a single job called "build"
19+
build-and-deploy:
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
23+
# Steps represent a sequence of tasks that will be executed as part of the job
24+
steps:
25+
# 1. 检出代码
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
29+
# 2. 上传构建产物作为 Artifact(关键修复!)
30+
- name: Upload Pages Artifact
31+
uses: actions/upload-pages-artifact@v3
32+
with:
33+
path: dist/ # 静态文件目录
34+
35+
# 3.部署到 GitHub Pages(无需 gh-pages 分支)
36+
- name: Deploy to Pages
37+
uses: actions/deploy-pages@v4 # GitHub 官方 Actions(Beta)

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
src/
3+

.prettierignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
src/assets/css/element.css
2+
src/assets/js/element.js
3+
src/assets/js/vue.js
4+
src/assets/js/ckin.js
5+
src/assets/css/ckinFonts/*
6+
src/assets/css/fonts/*
7+
src/assets/css/iconfont_css/*
8+

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"printWidth": 120,
6+
"tabWidth": 2
7+
}

.vscode/extensions.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"esbenp.prettier-vscode"
4+
]
5+
}

.vscode/settings.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
// Editor
3+
"editor.cursorSmoothCaretAnimation": "on",
4+
"editor.guides.bracketPairs": "active",
5+
"editor.tabSize": 2,
6+
"terminal.integrated.fontSize": 16,
7+
"editor.hover.sticky": true,
8+
"editor.formatOnPaste": false,
9+
"editor.autoClosingBrackets": "always",
10+
"editor.defaultFormatter": "esbenp.prettier-vscode",
11+
// 指定 Prettier 配置文件的路径
12+
"prettier.configPath": ".prettierrc"
13+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Yu
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ai-website
2+
3+
基于 HTML 开发的科技风格的企业级官网(门户网站)。
4+
5+
用途:
6+
7+
- 可以直接作为静态网站使用。
8+
- 也可以配合后端(JSP,PHP,Ruby,Beego 等等),将 `ai-website` 作为前端模块开发成为动态的网站,直接套到后端代码模版中去即可,开箱即用。
9+
10+
## 使用
11+
12+
```
13+
# 安装依赖
14+
npm i --registry=https://registry.npmmirror.com/
15+
16+
# 运行开发环境
17+
npm run dev
18+
19+
# 构建生产环境
20+
npm run build
21+
```
22+
23+
## 使用脚本
24+
25+
为了方便打包和部署,运行 `deploy.sh` 也可。

deploy.sh

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#!/usr/bin/env sh
2+
3+
# 确保脚本抛出遇到的错误
4+
set -e
5+
6+
# 定义要删除的目录的路径(把.git目录删掉)
7+
DIRECTORY_TO_DELETE=".git"
8+
9+
# 检查目录是否存在
10+
if [ -d "$DIRECTORY_TO_DELETE" ]; then
11+
# 如果目录存在,则删除它
12+
rm -rf "$DIRECTORY_TO_DELETE"
13+
echo "目录 $DIRECTORY_TO_DELETE 已被删除"
14+
else
15+
echo "目录 $DIRECTORY_TO_DELETE 不存在"
16+
fi
17+
18+
npm run build
19+
20+
# 检查构建是否成功
21+
if [ $? -eq 0 ]; then
22+
echo "打包成功;Build completed successfully!"
23+
else
24+
echo "打包失败;Build failed!"
25+
exit 1
26+
fi
27+
28+
git init
29+
git add -A
30+
# 设置本地项目的 git 用户名
31+
git config user.name "NeverYu"
32+
git config user.email "never_yu@qq.com"
33+
echo "Git 仓库配置已更新"
34+
35+
echo -n "请输入你的commit msg"
36+
37+
# 设置默认值
38+
default_msg="commit and update website"
39+
read msg
40+
# 检查用户是否输入了内容
41+
if [ -z "$msg" ]; then
42+
# 如果用户没有输入内容,使用默认值
43+
echo "使用默认值: $default_msg"
44+
# 可以在这里将 user_input 设置为默认值,用于后续脚本逻辑
45+
msg=$default_msg
46+
else
47+
# 如果用户输入了内容,则使用用户输入的值
48+
echo "您输入的值是: $msg"
49+
fi
50+
51+
git commit -m "$msg"
52+
53+
git push -f git@github.com:Neveryu/ai-website.git master:master
54+
# git push -f http://github.com/Neveryu/ai-website.git master:master
55+
56+
# 返回原始目录
57+
# 在脚本中,cd - 通常用于在完成某些操作后恢复原始目录,避免影响后续操作或用户环境
58+
cd -

dist/content/news.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!DOCTYPE html><html lang=en><head><meta charset=UTF-8><title>NeverYu科技有限公司</title><base href=/ai-website/ ><meta http-equiv=X-UA-Compatible content="IE=edge;chrome=1"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta name=Keywords content=智能、科技、地质、高效、准确、AI><meta name=author content=NeverYu><meta name=homepage content=https://neveryu.github.io/neveryu><meta name=Description content=NeverYu科技有限公司致力于智能定位、地质勘探建模、智能穿戴等系统或设备的研发,为涉及重大、特殊、高危的行业提供智能、科学、准确的安全管理技术和系统设备。><meta http-equiv=Cache-Control content=no-store><meta http-equiv=Pragma content=no-cache><meta http-equiv=Expires content=0><meta name=mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=default><link rel="shortcut icon" href=/ai-website/img/favicon.ico type=image/x-icon><link rel=bookmark href=/ai-website/img/favicon.ico type=image/x-icon><link href=/ai-website/css/element.css rel=stylesheet><link href=/ai-website/css/iconfont_css/iconfont.css rel=stylesheet><link href=/ai-website/css/common.css rel=stylesheet><script src=https://unpkg.com/vue@2.6.14/dist/vue.min.js></script><script src=/ai-website/js/element.js></script></head><style>#main{background:#f3f5f8}.box{width:100%;display:flex;justify-content:center}.news{background:#fff;box-shadow:0 0 15px #bcc2cc;border-radius:10px;width:100%;max-width:1100px;margin:0 auto;margin-top:40px;position:relative;z-index:140;margin-bottom:40px;line-height:2}.news .c{padding:50px 60px}.news_title{text-align:center;font-size:22px;color:#333;font-weight:700;line-height:1.42}.news_time{text-align:center;padding-top:10px;font-weight:400;padding-bottom:10px;color:#999;font-size:14px}.line_blue{margin:0 auto;width:46px;height:4px;background:#316bd4;border-radius:1px}.news_page{padding:15px 20px;margin-top:40px;display:flex;align-items:center;line-height:1.42;background:#f3f5f8;border-radius:10px}.news_page .iconfont,.news_page strong{color:#316bd4}.news_page p{padding-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.news_page .left{text-align:left;overflow:hidden;padding-right:30px;border-right:1px dashed #ddd;width:50%}.news_page .right{text-align:right;background:#f3f5f8;padding-left:30px;overflow:hidden;width:50%}.article-text{padding-top:40px;line-height:2;font-size:16px;color:#444;position:relative}.article-text p{margin-top:20px;margin-bottom:20px}.article-text img{max-width:100%;height:auto}.page_style{text-decoration:none;color:#666;transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out}.page_style:hover{color:#316bd4}@media (max-width:767px){.news{margin-top:20px}.news .c{padding:20px 20px}.article-text{padding-top:20px;font-size:15px}.news_title{font-size:20px}}</style><body><div id=container><div id=header><div id=common ref=common><div class=navBox><div class=container><div class=wrap><div class=left><a href=javascript:;><img class=logo src=/ai-website/img/logo_w.png></a></div><div class=xs-btn-menu id=xs-btn-menu @click=addMenu()><span></span><span></span><span></span></div><div class=xs-btn-close id=xs-btn-close @click=removeMenu()>x</div><div class=xs-page-bg id=xs-page-bg></div><div id=navigation-menu class=navigation-menu><li id=link-home><a href=/ >首页</a></li><li id=link-about><a href="nav/about.html?id=1">关于我们</a></li><li id=link-product @click=showsubA() @mouseover=showsubA() @mouseout=hidesubA()><a href=javascript:;>产品中心</a><ul><li><a href="nav/product/safechemical.html?id=16">智慧安全生产管理平台</a></li><li><a href="nav/product/ai.html?id=15">AI视觉识别分析</a></li><li><a href="nav/product/hardware.html?id=2">硬件产品</a></li></ul></li><li id=link-solution @click=showsubB() @mouseover=showsubB() @mouseout=hidesubB()><a href=javascript:;>解决方案</a><ul><li><a href="nav/solution/chemical.html?id=10">危化品企业解决方案</a></li><li><a href="nav/solution/power.html?id=17">电力能源解决方案</a></li><li><a href="nav/solution/metal.html?id=19">冶金行业解决方案</a></li><li><a href="nav/solution/tree.html?id=18">森林防火解决方案</a></li><li><a href="nav/solution/medical.html?id=11">智慧医疗解决方案</a></li><li><a href="nav/solution/health.html?id=12">健康守护解决方案</a></li><li><a href="nav/solution/education.html?id=13">教育行业解决方案</a></li><li><a href="nav/solution/track.html?id=14">轨道交通解决方案</a></li></ul></li><li id=link-project><a href="nav/project.html?id=4">项目案例</a></li><li id=link-news><a href="nav/news.html?id=5">新闻动态</a></li><li id=link-joinus><a href="nav/joinus.html?id=6">招贤纳士</a></li></div></div></div></div><div class=page-banner><div class=container><div class=bg><div class=text><div class=name>新闻动态</div><div class=desc>NEWS</div></div></div></div></div></div></div><div id=main><div class=container><div class=box><div class=news><div class=c><h3 class=news_title>新闻标题</h3><h4 class=news_time>{{ new Date().toLocaleString() }}</h4><div class=line_blue></div><div class=article-text><p>&nbsp;&nbsp;&nbsp;&nbsp;{{ new Date().toLocaleDateString() }} 日下午,NeverYu科技有限公司深耕地质探索精准化、建筑创新智能化、医疗服务高效化、AI 应用前沿化、教育模式多元化五大领域。以卓越技术、专业人才和创新理念,构建跨领域协同发展的科技生态,把握我国发展重要战略机遇,通过各方联合,加强产学研用深度融合,开展核心技术联合攻关,共同致力前沿技术突破,推动学术研究和行业应用结合,共同打造紧密良性的产学研协同创新生态,为全球客户缔造非凡价值与优质服务。</p><p style=text-align:center><img src=/ai-website/img/news1.jpg title=news1.jpg alt=news1.jpg></p><p>&nbsp;&nbsp;&nbsp;&nbsp;在 Apple,我们一直努力为客户打造最佳体验,这就是为什么我们设计出经久耐用的产品。打造经久耐用的设计是公司上下共同付出的努力,它在我们打造出第一个原型之前很久就已成为我们最初决策的指导原则,并且以客户使用情况的历史数据和未来使用情况预测为导向。它要求在耐用性和可维修性之间取得平衡,同时不牺牲安全性、安保性和隐私性。 进一步了解 Apple 在打造经久耐用设计方面所采用的方法,其中包括获得安全可靠的维修。</p><p><br></p></div><div class=news_page><div class=left><i class="iconfont icon_back"></i><strong>上一篇</strong><p><a href=javascript:; class=page_style>NeverYu科技公司发布重磅新闻一</a></p></div><div class=right><strong>下一篇</strong><i class="iconfont icon_next"></i><p><a href=javascript:; class=page_style>NeverYu科技公司发布重磅新闻二</a></p></div></div></div></div></div></div></div><div id=footer><div class=all_footer><div class=container><div class=el-row><div class="el-col el-col-xs-24 el-col-sm-12 el-col-lg-7"><div class=footer_box1><div class=footer_title>NeverYu科技有限公司</div><p class=footer_text>加我微信:421354532</p><p class=footer_text>我的主页:<a href=https://neveryu.github.io/ >NeverYu</a></p><p class=footer_text>博客:<a href=https://blog.csdn.net/csdn_yudong>CSDN - NeverYu</a></p><p class=footer_text>Github:<a href=https://github.com/Neveryu>NeverYu</a></p><p class=footer_text>公司地址:武汉东湖新技术开发区高新大道999号武汉未来科技城蘑菇1号</p></div></div><div class="el-col el-col-xs-24 el-col-sm-12 el-col-lg-5"><div class=footer_box2><div class=wx><img class=footer_picture src=/ai-website/img/common_footer_wx.jpg alt=""><p>微信扫一扫可留言</p></div></div></div><div class="el-col el-col-xs-24 el-col-sm-24 el-col-lg-12"><div class=footer_box3><div><div class=footer_box3_title>解决方案</div><div class=footer_link><a href="nav/solution/chemical.html?id=10">人工智能学习解决方案</a></div><div class=footer_link><a href="nav/solution/medical.html?id=11">智慧医疗安全解决方案</a></div><div class=footer_link><a href="nav/solution/health.html?id=12">人体健康守护解决方案</a></div><div class=footer_link><a href="nav/solution/education.html?id=13">安全教育行业解决方案</a></div><div class=footer_link><a href="nav/solution/track.html?id=14">智能轨道交通解决方案</a></div><div class=footer_link><a href="nav/solution/power.html?id=17">电力施工安全解决方案</a></div><div class=footer_link><a href="nav/solution/tree.html?id=18">智慧森林防火解决方案</a></div><div class=footer_link><a href="nav/solution/metal.html?id=19">精准冶金行业解决方案</a></div></div><div><div class=footer_box3_title>产品中心</div><div class=footer_link><a href="nav/product.html?id=2">Mac系列</a></div><div class=footer_link><a href="nav/product.html?id=2#box2">iPhone系列</a></div><div class=footer_link><a href="nav/product.html?id=2#box3">iPad系列</a></div><div class=footer_link><a href="nav/product.html?id=2#box4">智能穿戴系列</a></div><div class=footer_link><a href="nav/product.html?id=2#box5">芯片系列</a></div></div><div><div class=footer_box3_title>项目案例</div><div class=footer_link><a href="./nav/project.html?id=4">项目名称一</a></div><div class=footer_link><a href="./nav/project.html?id=4#box2">项目名称二</a></div><div class=footer_link><a href="./nav/project.html?id=4#box3">项目名称三</a></div></div><div><div class=footer_box3_title>关于我们</div><div class=footer_link><a href="nav/about.html?id=1">公司介绍</a></div><div class=footer_link><a href="nav/news.html?id=5">新闻动态</a></div><div class=footer_link><a href="nav/joinus.html?id=6">招贤纳士</a></div></div></div></div></div><div class=footer_title2><div class=footer_container2><div>NeverYu科技有限公司 &copy; 版权所有 2024 <a target=_blank href="http://www.beian.gov.com/portal/registerSystemInfo?recordcode=" class=copyright-link><img src=/ai-website/img/beian.png style=float:left alt=""><p style=float:left>鄂公网安备 421354532号</p></a><div id=policeBei class=copyright-link>鄂ICP备20240101xx号-1</div></div></div></div></div></div></div></div></body><script>new Vue({el:"#common",data:function(){return{}},mounted(){window.addEventListener("scroll",this.scrollToTop),document.getElementById("header").classList.add("header")},destroyed(){document.removeEventListener("scroll",this.scrollToTop)},methods:{addMenu(){document.getElementById("xs-btn-menu").classList.add("hide-btn"),document.getElementById("navigation-menu").classList.add("show-menu"),document.getElementById("xs-btn-close").classList.add("show-btn"),document.getElementById("xs-page-bg").classList.add("show-bg")},removeMenu(){document.getElementById("xs-btn-menu").classList.remove("hide-btn"),document.getElementById("navigation-menu").classList.remove("show-menu"),document.getElementById("xs-btn-close").classList.remove("show-btn"),document.getElementById("xs-page-bg").classList.remove("show-bg")},showsubA(){document.getElementById("link-product").getElementsByTagName("ul")[0].style.display="block"},hidesubA(){document.getElementById("link-product").getElementsByTagName("ul")[0].style.display="none"},showsubB(){document.getElementById("link-solution").getElementsByTagName("ul")[0].style.display="block"},hidesubB(){document.getElementById("link-solution").getElementsByTagName("ul")[0].style.display="none"},scrollToTop(){(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)>1?document.getElementById("header").classList.add("header-fixed"):document.getElementById("header").classList.remove("header-fixed")}}}),new Vue({el:"#main"})</script></html>

dist/css/about.css

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
.about-text h3 {
2+
margin-bottom: 30px;
3+
}
4+
.about-text .box + .box {
5+
margin-top: 40px;
6+
}
7+
.about-text .desc {
8+
width: 100%;
9+
max-width: 950px;
10+
margin: 0 auto;
11+
font-size: 16px;
12+
text-align: center;
13+
line-height: 2;
14+
margin-bottom: 40px;
15+
}
16+
.about-text h4 {
17+
font-weight: bold;
18+
font-size: 20px;
19+
margin-bottom: 15px;
20+
line-height: 2;
21+
}
22+
#box1,
23+
#box2,
24+
#box3 {
25+
width: 100%;
26+
display: flex;
27+
justify-content: center;
28+
flex-wrap: wrap;
29+
overflow: hidden;
30+
}
31+
#box1 {
32+
padding-top: 60px;
33+
}
34+
#box1.box1-fixed {
35+
padding-top: 110px;
36+
}
37+
#box4 {
38+
width: 100%;
39+
display: flex;
40+
justify-content: center;
41+
flex-wrap: wrap;
42+
overflow: hidden;
43+
}
44+
45+
#box1 > div,
46+
#box2 > div,
47+
#box3 > div,
48+
#box4 > div {
49+
text-align: center;
50+
width: 100%;
51+
}
52+
.box4_bottom {
53+
display: flex;
54+
justify-content: space-around;
55+
align-items: center;
56+
}
57+
.box4_bottom .el-row {
58+
width: 100%;
59+
}
60+
.box4_bottom .el-col > div {
61+
max-width: 230px;
62+
margin: 0 auto;
63+
}
64+
.box4_bottom_icon {
65+
width: 90px;
66+
height: 90px;
67+
background: #3361ce;
68+
border-radius: 50%;
69+
display: flex;
70+
justify-content: center;
71+
align-items: center;
72+
margin: 0 auto;
73+
}
74+
.box4_title {
75+
font-size: 18px;
76+
font-weight: bold;
77+
margin-top: 15px;
78+
line-height: 2;
79+
}
80+
.box4_text {
81+
font-size: 16px;
82+
color: #666666;
83+
padding-bottom: 30px;
84+
}
85+
.box4_bottom .iconfont {
86+
font-size: 50px;
87+
color: #fff;
88+
}
89+
.pictures {
90+
display: block;
91+
margin: 30px auto;
92+
max-width: 80%;
93+
}
94+
.pictures3 {
95+
margin-top: 40px;
96+
width: 100%;
97+
height: 240px;
98+
display: flex;
99+
justify-content: space-around;
100+
}
101+
102+
.picture2 {
103+
width: 100%;
104+
height: 100%;
105+
}
106+
.picture3 {
107+
width: 15%;
108+
height: 240px;
109+
}
110+
111+
.box5 {
112+
width: 100%;
113+
height: 500px;
114+
}
115+
116+
@media (max-width: 992px) {
117+
.pictures {
118+
max-width: 100%;
119+
width: auto;
120+
}
121+
}

0 commit comments

Comments
 (0)