diff --git a/config/index.js b/config/index.js
index 9f9cb58..a0d57fa 100644
--- a/config/index.js
+++ b/config/index.js
@@ -43,14 +43,23 @@ const config = {
},
},
h5: {
- webpackChain (chain) {
+ webpackChain(chain) {
chain.module
- .rule('markdown')
+ .rule("markdown")
.test(/\.md$/)
- .use('raw-loader')
- .loader('raw-loader')
- .end();
+ .use("raw-loader")
+ .loader("raw-loader")
+ .end();
+ chain.module
+ .rule("ico")
+ .test(/\.ico$/)
+ .use("file-loader")
+ .loader("file-loader")
+ .options({
+ name: "static/images/[name].[ext]",
+ });
},
+
esnextModules: ["taro-ui"],
publicPath: "/",
staticDirectory: "static",
@@ -86,20 +95,20 @@ const config = {
// host: 'nomad.hackrobot.cn', // 替换为您的域名
// port: 10087, // 选择一个适当的端口号
proxy: {
- '/api/': {
+ "/api/": {
target: JSON.parse('"http://localhost:8700"'), //本地调试端口
pathRewrite: {
- '^/api/': '/'
+ "^/api/": "/",
},
- changeOrigin: true
- }
+ changeOrigin: true,
+ },
},
// 允许特定域名访问
allowedHosts: [
// 'bot.hackrobot.cn'
- 'nomadyt.com'
+ "nomadyt.com",
],
- }
+ },
},
};
diff --git a/src/images/youtube.ico b/src/images/youtube.ico
new file mode 100644
index 0000000..7240597
Binary files /dev/null and b/src/images/youtube.ico differ
diff --git a/src/index.html b/src/index.html
index a75a8f7..9d42fac 100644
--- a/src/index.html
+++ b/src/index.html
@@ -9,14 +9,14 @@
-
+
+
Youtube运营笔记
diff --git a/src/pages/book/index.config.js b/src/pages/book/index.config.js
index 351171b..4046f73 100644
--- a/src/pages/book/index.config.js
+++ b/src/pages/book/index.config.js
@@ -1,3 +1,3 @@
export default {
- navigationBarTitleText: '一人公司方法论'
+ navigationBarTitleText: '油管运营笔记'
}
diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx
index 93dc431..700832d 100644
--- a/src/pages/index/index.jsx
+++ b/src/pages/index/index.jsx
@@ -47,6 +47,9 @@ import youtube4 from "../../images/yt4.svg";
import ytGpt from "../../images/ytGpt.png";
import demo from "../../images/demo.svg";
+import youtubeIco from "../../images/youtube.ico";
+
+
// export default class Index extends Component {
const Index = () => {
@@ -410,11 +413,10 @@ const Index = () => {
-
- {/* */}
-
- {/* 《Youtube运营笔记》 */}
- Copyright © 2025
+ {/* */}
+ {/*
+ Copyright © 2025
+ */}
>
);
diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss
index 7d24111..3b075a1 100644
--- a/src/pages/index/index.scss
+++ b/src/pages/index/index.scss
@@ -24,7 +24,7 @@
flex-direction: column;
align-items: center;
justify-content: space-around;
- // background-color: rgb(208, 255, 0);
+ // background-color: rgb(208, 255, 0);
.left_title {
font-size: 50px;
font-weight: 700;
@@ -42,7 +42,6 @@
// align-items: center;
// justify-content: space-around;
// background-color: yellow;
-
}
.left_btn {
margin-top: 40px;
@@ -81,7 +80,9 @@
@media (min-width: 1536px) {
.index {
- padding: 100px;
+ // padding: 100px;
+ // height: 100vh;
+ position: relative;
display: flex;
flex-direction: column;
align-items: center;
@@ -170,19 +171,21 @@
display: none;
}
}
- }
-}
-.footer {
- position: absolute;
- bottom: 0px;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- width: 100%;
- height: 60px;
- // margin-bottom: 20px;
- font-size: 14px;
- // background-color: yellow;
+ .footer {
+ // position: absolute;
+ position: fixed;
+ bottom: 0px;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ width: 100%;
+ height: 60px;
+ // margin-bottom: 20px;
+ font-size: 14px;
+ background-color: yellow;
+ }
+ }
+
}