From 98cb1af20d41996f94c7b05876f6ad2ef06d48a3 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Sat, 22 Mar 2025 23:44:37 -0500 Subject: [PATCH] =?UTF-8?q?'=E9=A6=96=E9=A1=B5=E6=9B=B4=E6=94=B9'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docusaurus.config.js | 62 ++++++------- src/components/HomepageFeatures/index.js | 21 ++--- src/pages/index.js | 2 +- src/pages/index.module.css | 2 + static/img/youtube.svg | 2 + static/img/yt1.svg | 11 +++ static/img/yt2.svg | 106 +++++++++++++++++++++++ static/img/yt3.svg | 36 ++++++++ static/img/yt4.svg | 99 +++++++++++++++++++++ 9 files changed, 298 insertions(+), 43 deletions(-) create mode 100644 static/img/youtube.svg create mode 100644 static/img/yt1.svg create mode 100644 static/img/yt2.svg create mode 100644 static/img/yt3.svg create mode 100644 static/img/yt4.svg diff --git a/docusaurus.config.js b/docusaurus.config.js index 2b8cdb8..45a553b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -10,8 +10,8 @@ import {themes as prismThemes} from 'prism-react-renderer'; /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'My Site', - tagline: 'Dinosaurs are cool', + title: 'Youtube运营笔记', + tagline: '数字游民-1', favicon: 'img/favicon.ico', // Set the production url of your site here @@ -76,24 +76,26 @@ const config = { // Replace with your project's social card image: 'img/docusaurus-social-card.jpg', navbar: { - title: 'My Site', + title: '油管运营笔记', logo: { - alt: 'My Site Logo', - src: 'img/logo.svg', + alt: 'youtube', + // src: 'img/logo.svg', + src: 'img/youtube.svg', + }, items: [ - { - type: 'docSidebar', - sidebarId: 'tutorialSidebar', - position: 'left', - label: 'Tutorial', - }, - {to: '/blog', label: 'Blog', position: 'left'}, - { - href: 'https://github.com/facebook/docusaurus', - label: 'GitHub', - position: 'right', - }, + // { + // type: 'docSidebar', + // sidebarId: 'tutorialSidebar', + // position: 'left', + // label: 'Tutorial', + // }, + // {to: '/blog', label: 'Blog', position: 'left'}, + // { + // href: 'https://github.com/facebook/docusaurus', + // label: 'GitHub', + // position: 'right', + // }, ], }, footer: { @@ -115,14 +117,14 @@ const config = { label: 'Stack Overflow', href: 'https://stackoverflow.com/questions/tagged/docusaurus', }, - { - label: 'Discord', - href: 'https://discordapp.com/invite/docusaurus', - }, - { - label: 'X', - href: 'https://x.com/docusaurus', - }, + // { + // label: 'Discord', + // href: 'https://discordapp.com/invite/docusaurus', + // }, + // { + // label: 'X', + // href: 'https://x.com/docusaurus', + // }, ], }, { @@ -132,14 +134,14 @@ const config = { label: 'Blog', to: '/blog', }, - { - label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', - }, + // { + // label: 'GitHub', + // href: 'https://github.com/facebook/docusaurus', + // }, ], }, ], - copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, + copyright: `Copyright © ${new Date().getFullYear()} , Inc nomadyt.com`, }, prism: { theme: prismThemes.github, diff --git a/src/components/HomepageFeatures/index.js b/src/components/HomepageFeatures/index.js index acc7621..2ea6c6e 100644 --- a/src/components/HomepageFeatures/index.js +++ b/src/components/HomepageFeatures/index.js @@ -4,32 +4,29 @@ import styles from './styles.module.css'; const FeatureList = [ { - title: 'Easy to Use', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, + title: 'YPP', + Svg: require('@site/static/img/yt2.svg').default, description: ( <> - Docusaurus was designed from the ground up to be easily installed and - used to get your website up and running quickly. + 开通YPP (youtube合作伙伴计划),通过平台广告,赚美金收益 ), }, { - title: 'Focus on What Matters', - Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, + title: '随时开始', + Svg: require('@site/static/img/yt3.svg').default, description: ( <> - Docusaurus lets you focus on your docs, and we'll do the chores. Go - ahead and move your docs into the docs directory. + 不需要昂贵的设备,1部手机,就可以开始的副业 ), }, { - title: 'Powered by React', - Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, + title: '杠杆', + Svg: require('@site/static/img/yt4.svg').default, description: ( <> - Extend or customize your website layout by reusing React. Docusaurus can - be extended while reusing the same header and footer. + 媒体和代码,是普通人最好的杠杆 ), }, diff --git a/src/pages/index.js b/src/pages/index.js index a8c61f2..88f4609 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -20,7 +20,7 @@ function HomepageHeader() { - Docusaurus Tutorial - 5min ⏱️ + 立即阅读 diff --git a/src/pages/index.module.css b/src/pages/index.module.css index 9f71a5d..ceab70a 100644 --- a/src/pages/index.module.css +++ b/src/pages/index.module.css @@ -3,11 +3,13 @@ * and scoped locally. */ + .heroBanner { padding: 4rem 0; text-align: center; position: relative; overflow: hidden; + background-color: #ff7875; } @media screen and (max-width: 996px) { diff --git a/static/img/youtube.svg b/static/img/youtube.svg new file mode 100644 index 0000000..92aaf5a --- /dev/null +++ b/static/img/youtube.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/static/img/yt1.svg b/static/img/yt1.svg new file mode 100644 index 0000000..18198c3 --- /dev/null +++ b/static/img/yt1.svg @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/static/img/yt2.svg b/static/img/yt2.svg new file mode 100644 index 0000000..8408694 --- /dev/null +++ b/static/img/yt2.svg @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/img/yt3.svg b/static/img/yt3.svg new file mode 100644 index 0000000..c50089c --- /dev/null +++ b/static/img/yt3.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/img/yt4.svg b/static/img/yt4.svg new file mode 100644 index 0000000..05c944a --- /dev/null +++ b/static/img/yt4.svg @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file