tremble 2 年之前
當前提交
40084a0330
共有 72 個文件被更改,包括 785705 次插入0 次删除
  1. 23 0
      .gitignore
  2. 46 0
      README.md
  3. 28142 0
      package-lock.json
  4. 47 0
      package.json
  5. 二進制
      public/favicon.ico
  6. 43 0
      public/index.html
  7. 25 0
      public/manifest.json
  8. 二進制
      public/model/1-AO.jpg
  9. 二進制
      public/model/1-Basecolor.jpg
  10. 二進制
      public/model/1-Normal.jpg
  11. 二進制
      public/model/1-Roughness.jpg
  12. 二進制
      public/model/1-Specular.jpg
  13. 5 0
      public/model/1-low.mtl
  14. 61289 0
      public/model/1-low.obj
  15. 二進制
      public/model/1-manshouxing.jpg
  16. 二進制
      public/model/2-AO.jpg
  17. 二進制
      public/model/2-Basecolor.jpg
  18. 二進制
      public/model/2-Normal.jpg
  19. 二進制
      public/model/2-Roughness.jpg
  20. 二進制
      public/model/2-Specular.jpg
  21. 5 0
      public/model/2-low.mtl
  22. 64872 0
      public/model/2-low.obj
  23. 二進制
      public/model/2-shouxinger.jpg
  24. 二進制
      public/model/3-zimukou.jpg
  25. 二進制
      public/model/4-shouxingniu.jpg
  26. 620230 0
      public/model/YTqinghuaci.obj
  27. 二進制
      public/model/chuan.jpg
  28. 二進制
      public/model/ren.jpg
  29. 二進制
      public/model/shan.jpg
  30. 二進制
      public/model/shanchuanren.jpg
  31. 22 0
      public/model/ytqinghuaci.mtl
  32. 3 0
      public/robots.txt
  33. 202 0
      src/App.scss
  34. 9 0
      src/App.test.tsx
  35. 738 0
      src/App.tsx
  36. 二進制
      src/assets/fonts/SourceHanSansCN.ttf
  37. 二進制
      src/assets/fonts/SourceHanSerifCN-Bold-2.otf
  38. 二進制
      src/assets/images/ico_change_active.png
  39. 二進制
      src/assets/images/ico_change_normal.png
  40. 二進制
      src/assets/images/ico_down.png
  41. 二進制
      src/assets/images/ico_up.png
  42. 二進制
      src/assets/images/img_culture.png
  43. 二進制
      src/assets/images/img_juanzhou.png
  44. 二進制
      src/assets/images/img_loading.png
  45. 二進制
      src/assets/images/img_manshouxing.png
  46. 二進制
      src/assets/images/img_shouxinger.png
  47. 二進制
      src/assets/images/img_shouxingniu.png
  48. 二進制
      src/assets/images/img_texture.jpg
  49. 二進制
      src/assets/images/img_zimukou.png
  50. 二進制
      src/assets/images/label_title.png
  51. 二進制
      src/assets/images/line_boat.png
  52. 二進制
      src/assets/images/line_friends.png
  53. 二進制
      src/assets/images/line_mount.png
  54. 48 0
      src/assets/images/loadImg.js
  55. 二進制
      src/assets/images/loading_bg.jpg
  56. 二進制
      src/assets/images/loading_bg.png
  57. 二進制
      src/assets/images/logo.png
  58. 二進制
      src/assets/images/text.png
  59. 38 0
      src/components/Toast/index.module.scss
  60. 20 0
      src/components/Toast/index.tsx
  61. 88 0
      src/components/huajuan.tsx
  62. 61 0
      src/components/index.module.scss
  63. 38 0
      src/index.css
  64. 12 0
      src/index.tsx
  65. 1 0
      src/logo.svg
  66. 349 0
      src/normalize.css
  67. 4 0
      src/react-app-env.d.ts
  68. 15 0
      src/reportWebVitals.ts
  69. 5 0
      src/setupTests.ts
  70. 23 0
      src/utils/index.tsx
  71. 26 0
      tsconfig.json
  72. 9276 0
      yarn.lock

+ 23 - 0
.gitignore

@@ -0,0 +1,23 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# production
+/build
+
+# misc
+.DS_Store
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*

+ 46 - 0
README.md

@@ -0,0 +1,46 @@
+# Getting Started with Create React App
+
+This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
+
+## Available Scripts
+
+In the project directory, you can run:
+
+### `npm start`
+
+Runs the app in the development mode.\
+Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
+
+The page will reload if you make edits.\
+You will also see any lint errors in the console.
+
+### `npm test`
+
+Launches the test runner in the interactive watch mode.\
+See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
+
+### `npm run build`
+
+Builds the app for production to the `build` folder.\
+It correctly bundles React in production mode and optimizes the build for the best performance.
+
+The build is minified and the filenames include the hashes.\
+Your app is ready to be deployed!
+
+See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
+
+### `npm run eject`
+
+**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
+
+If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
+
+Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
+
+You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
+
+## Learn More
+
+You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
+
+To learn React, check out the [React documentation](https://reactjs.org/).

File diff suppressed because it is too large
+ 28142 - 0
package-lock.json


+ 47 - 0
package.json

@@ -0,0 +1,47 @@
+{
+  "name": "code",
+  "version": "0.1.0",
+  "private": true,
+  "dependencies": {
+    "@testing-library/jest-dom": "^5.16.5",
+    "@testing-library/react": "^13.4.0",
+    "@testing-library/user-event": "^13.5.0",
+    "@types/jest": "^27.5.2",
+    "@types/node": "^16.18.23",
+    "@types/react": "^18.0.31",
+    "@types/react-dom": "^18.0.11",
+    "@types/three": "^0.150.0",
+    "react": "^18.2.0",
+    "react-dom": "^18.2.0",
+    "react-scripts": "5.0.1",
+    "sass": "^1.60.0",
+    "three": "^0.151.1",
+    "typescript": "^4.9.5",
+    "web-vitals": "^2.1.4"
+  },
+  "homepage": ".",
+  "scripts": {
+    "start": "react-scripts start",
+    "build": "react-scripts build",
+    "test": "react-scripts test",
+    "eject": "react-scripts eject"
+  },
+  "eslintConfig": {
+    "extends": [
+      "react-app",
+      "react-app/jest"
+    ]
+  },
+  "browserslist": {
+    "production": [
+      ">0.2%",
+      "not dead",
+      "not op_mini all"
+    ],
+    "development": [
+      "last 1 chrome version",
+      "last 1 firefox version",
+      "last 1 safari version"
+    ]
+  }
+}

二進制
public/favicon.ico


+ 43 - 0
public/index.html

@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8" />
+    <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
+    <meta name="theme-color" content="#000000" />
+    <meta
+      name="description"
+      content="Web site created using create-react-app"
+    />
+    <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
+    <!--
+      manifest.json provides metadata used when your web app is installed on a
+      user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
+    -->
+    <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
+    <!--
+      Notice the use of %PUBLIC_URL% in the tags above.
+      It will be replaced with the URL of the `public` folder during the build.
+      Only files inside the `public` folder can be referenced from the HTML.
+
+      Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
+      work correctly both with client-side routing and a non-root public URL.
+      Learn how to configure a non-root public URL by running `npm run build`.
+    -->
+    <title>带盖青花瓷坛</title>
+  </head>
+  <body>
+    <noscript>You need to enable JavaScript to run this app.</noscript>
+    <div id="root"></div>
+    <!--
+      This HTML file is a template.
+      If you open it directly in the browser, you will see an empty page.
+
+      You can add webfonts, meta tags, or analytics to this file.
+      The build step will place the bundled scripts into the <body> tag.
+
+      To begin the development, run `npm start` or `yarn start`.
+      To create a production bundle, use `npm run build` or `yarn build`.
+    -->
+  </body>
+</html>

+ 25 - 0
public/manifest.json

@@ -0,0 +1,25 @@
+{
+  "short_name": "React App",
+  "name": "Create React App Sample",
+  "icons": [
+    {
+      "src": "favicon.ico",
+      "sizes": "64x64 32x32 24x24 16x16",
+      "type": "image/x-icon"
+    },
+    {
+      "src": "logo192.png",
+      "type": "image/png",
+      "sizes": "192x192"
+    },
+    {
+      "src": "logo512.png",
+      "type": "image/png",
+      "sizes": "512x512"
+    }
+  ],
+  "start_url": ".",
+  "display": "standalone",
+  "theme_color": "#000000",
+  "background_color": "#ffffff"
+}

二進制
public/model/1-AO.jpg


二進制
public/model/1-Basecolor.jpg


二進制
public/model/1-Normal.jpg


二進制
public/model/1-Roughness.jpg


二進制
public/model/1-Specular.jpg


+ 5 - 0
public/model/1-low.mtl

@@ -0,0 +1,5 @@
+# File created by ZBrush
+# ToolType: PolyMesh3D
+# www.zbrush.com
+newmtl defaultMat
+map_Kd 1-low.bmp

File diff suppressed because it is too large
+ 61289 - 0
public/model/1-low.obj


二進制
public/model/1-manshouxing.jpg


二進制
public/model/2-AO.jpg


二進制
public/model/2-Basecolor.jpg


二進制
public/model/2-Normal.jpg


二進制
public/model/2-Roughness.jpg


二進制
public/model/2-Specular.jpg


+ 5 - 0
public/model/2-low.mtl

@@ -0,0 +1,5 @@
+# File created by ZBrush
+# ToolType: PolyMesh3D
+# www.zbrush.com
+newmtl defaultMat
+map_Kd 2-low.bmp

File diff suppressed because it is too large
+ 64872 - 0
public/model/2-low.obj


二進制
public/model/2-shouxinger.jpg


二進制
public/model/3-zimukou.jpg


二進制
public/model/4-shouxingniu.jpg


File diff suppressed because it is too large
+ 620230 - 0
public/model/YTqinghuaci.obj


二進制
public/model/chuan.jpg


二進制
public/model/ren.jpg


二進制
public/model/shan.jpg


二進制
public/model/shanchuanren.jpg


+ 22 - 0
public/model/ytqinghuaci.mtl

@@ -0,0 +1,22 @@
+# 
+# Wavefront material file
+# Created with Kaydara FBX
+# 
+
+newmtl 01_LOW
+map_Kd 1-Basecolor.jpg
+Ka 0.200000 0.200000 0.200000
+Kd 1.000000 1.000000 1.000000
+Ks 0.419000 0.419000 0.419000
+illum 2
+Ns 20.000000
+Tr 0.000000
+
+newmtl 02_LOW
+map_Kd 2-Basecolor.jpg
+Ka 0.200000 0.200000 0.200000
+Kd 1.000000 1.000000 1.000000
+Ks 0.419551 0.419551 0.419551
+illum 2
+Ns 20.000000
+Tr 0.000000

+ 3 - 0
public/robots.txt

@@ -0,0 +1,3 @@
+# https://www.robotstxt.org/robotstxt.html
+User-agent: *
+Disallow:

+ 202 - 0
src/App.scss

@@ -0,0 +1,202 @@
+.App {
+  width: 100%;
+  height: 100%;
+  overflow: hidden;
+  background-color: #3c454c;
+  position: relative;
+  .logo {
+    position: absolute;
+    left: 20px;
+    top: 20px;
+    width: 40px;
+  }
+  .loadbox {
+    height: 100%;
+    left: 0;
+    overflow: hidden;
+    position: absolute;
+    top: 0;
+    width: 100%;
+    z-index: 999;
+    .loadShow {
+      align-items: center;
+      display: flex;
+      flex-flow: column;
+      height: 100%;
+      justify-content: center;
+      text-align: center;
+      width: 100%;
+      position: relative;
+      > div {
+        width: 50%;
+        > img {
+          width: 100%;
+        }
+      }
+      .title {
+        width: 50%;
+      }
+      .loading {
+        width: 40%;
+        position: relative;
+        > span {
+          font-family: "songti SimSun";
+          position: absolute;
+          left: 50%;
+          top: 50%;
+          transform: translate(-50%, -50%);
+          font-size: 14px;
+          font-weight: bold;
+          color: #000;
+        }
+      }
+      .model {
+        width: 70%;
+      }
+    }
+  }
+
+  .mask {
+    position: absolute;
+    width: 100%;
+    height: 96%;
+    bottom: -40%;
+    background: #35393e;
+    border: 1px solid #3a4a69;
+    border-radius: 40px 40px 0 0;
+    z-index: 10;
+    transition: 0.3s ease bottom;
+    left: 0;
+    .info {
+      color: #a2b4af;
+      padding: 10% 10%;
+      width: 100%;
+      height: 60%;
+      box-sizing: border-box;
+      > h3 {
+        font-size: 24px;
+        border-bottom: 1px solid #a2b4af;
+        display: inline-block;
+        padding-bottom: 10px;
+        position: relative;
+        &::after {
+          content: "";
+          bottom: 0;
+          left: 0;
+          width: 48px;
+          position: absolute;
+          background: #a2b4af;
+          height: 2px;
+          display: inline-block;
+        }
+      }
+      > ul {
+        width: 100%;
+        margin-top: 30px;
+        overflow-y: auto;
+        max-height: calc(100% - 38px);
+        > li {
+          width: 100%;
+          line-height: 1.8;
+          display: flex;
+          > span {
+            text-align: justify;
+            display: inline-block;
+            &:first-of-type {
+              width: 50px;
+              flex-shrink: 0;
+            }
+          }
+        }
+      }
+    }
+
+    .shoula {
+      position: absolute;
+      right: 11%;
+      top: 3%;
+      width: 44px;
+      z-index: 99;
+      > img {
+        width: 100%;
+      }
+    }
+  }
+
+  .btnlist {
+    position: absolute;
+    bottom: 24%;
+    z-index: 9;
+    left: 50%;
+    transform: translateX(-50%);
+    width: 100%;
+    > ul {
+      margin: 0 auto;
+      width: 90%;
+      display: flex;
+      justify-content: space-around;
+      > li {
+        width: 18%;
+        text-align: center;
+        .img {
+          width: 100%;
+          position: relative;
+          font-size: 0;
+          > img {
+            width: 100%;
+            border-radius: 50%;
+            background-color: #fff;
+            font-size: 0;
+            overflow: hidden;
+            border: 3px solid #A2B4AF;
+          }
+          .imgmask {
+            display: inline-block;
+            background: rgba($color: #000000, $alpha: 0.5);
+            z-index: 9;
+            position: absolute;
+            left: 0%;
+            top: 0%;
+            font-size: 0;
+            overflow: hidden;
+            border-radius: 50%;
+            width: 100%;
+            height: 100%;
+          }
+        }
+        > span {
+          color: #708b97;
+          display: inline-block;
+          margin-top: 8px;
+        }
+        &.active {
+          .img {
+            >img{
+            }
+            .imgmask {
+              display: none;
+            }
+          }
+          > span {
+            color: #a2b4af;
+          }
+        }
+      }
+    }
+  }
+
+  .reset {
+    position: absolute;
+    bottom: 40%;
+    right: 10%;
+    z-index: 3;
+    width: 50px;
+    > img {
+      width: 100%;
+    }
+  }
+  #webgl {
+    width: 100%;
+    height: 77%;
+  }
+}

+ 9 - 0
src/App.test.tsx

@@ -0,0 +1,9 @@
+import React from 'react';
+import { render, screen } from '@testing-library/react';
+import App from './App';
+
+test('renders learn react link', () => {
+  render(<App />);
+  const linkElement = screen.getByText(/learn react/i);
+  expect(linkElement).toBeInTheDocument();
+});

File diff suppressed because it is too large
+ 738 - 0
src/App.tsx


二進制
src/assets/fonts/SourceHanSansCN.ttf


二進制
src/assets/fonts/SourceHanSerifCN-Bold-2.otf


二進制
src/assets/images/ico_change_active.png


二進制
src/assets/images/ico_change_normal.png


二進制
src/assets/images/ico_down.png


二進制
src/assets/images/ico_up.png


二進制
src/assets/images/img_culture.png


二進制
src/assets/images/img_juanzhou.png


二進制
src/assets/images/img_loading.png


二進制
src/assets/images/img_manshouxing.png


二進制
src/assets/images/img_shouxinger.png


二進制
src/assets/images/img_shouxingniu.png


二進制
src/assets/images/img_texture.jpg


二進制
src/assets/images/img_zimukou.png


二進制
src/assets/images/label_title.png


二進制
src/assets/images/line_boat.png


二進制
src/assets/images/line_friends.png


二進制
src/assets/images/line_mount.png


+ 48 - 0
src/assets/images/loadImg.js

@@ -0,0 +1,48 @@
+
+
+import loading_bg from './loading_bg.jpg';
+import img_culture from './img_culture.png';
+import img_loading from './img_loading.png';
+import label_title from './label_title.png';
+import logo from './logo.png';
+
+import ico_down from './ico_down.png';
+import ico_up from './ico_up.png';
+
+
+import img_manshouxing from './img_manshouxing.png';
+import img_shouxinger from './img_shouxinger.png';
+import img_shouxingniu from './img_shouxingniu.png';
+import img_zimukou from './img_zimukou.png';
+
+import ico_change_active from './ico_change_active.png';
+import ico_change_normal from './ico_change_normal.png';
+
+import img_juanzhou from './img_juanzhou.png';
+import img_texture from './img_texture.jpg';
+
+import line_boat from './line_boat.png';
+import line_friends from './line_friends.png';
+import line_mount from './line_mount.png';
+import imgtext from './text.png';
+export {
+  loading_bg,
+  img_culture,
+  img_loading,
+  label_title,
+  logo,
+  ico_up,
+  ico_down,
+  img_manshouxing,
+  img_shouxinger,
+  img_shouxingniu,
+  img_zimukou,
+  ico_change_active,
+  ico_change_normal,
+  img_juanzhou,
+  img_texture,
+  line_boat,
+  line_friends,
+  line_mount,
+  imgtext
+}

二進制
src/assets/images/loading_bg.jpg


二進制
src/assets/images/loading_bg.png


二進制
src/assets/images/logo.png


二進制
src/assets/images/text.png


+ 38 - 0
src/components/Toast/index.module.scss

@@ -0,0 +1,38 @@
+.Layout {
+  position: fixed;
+  width: 100%;
+  height: 100%;
+  left: 0;
+  top: 0;
+  z-index: 999;
+  :global {
+    .toast{
+      top: 50%;
+      position: absolute;
+      left: 50%;
+      transform: translate(-50%,-50%);
+      padding: 10px 20px;
+      border-radius: 5px;
+      background-color: rgba(0, 0, 0, 0.8);
+      background-repeat: no-repeat;
+      background-size: 100% 100%;
+      color: #fff;
+      display: flex;
+      align-items: center;
+      text-align: center;
+      max-width: 80%;
+      min-height: 50px;
+      min-width: 70%;
+      line-height: 1.5;
+      transition: opacity 0.3s ease-in-out;
+    }
+    .message {
+      font-size: 16px;
+      font-weight: bold;
+    }
+  }
+}
+
+.visible {
+  opacity: 1;
+}

+ 20 - 0
src/components/Toast/index.tsx

@@ -0,0 +1,20 @@
+import React, { FC, useEffect, useState } from "react";
+import styles from './index.module.scss';
+
+type Props = {
+  message: string;
+  bg: any
+};
+
+const Toast: FC<Props> = ({ message, bg }) => {
+
+  return (
+    <div className={`${styles.Layout}`}>
+      <div className="toast" style={{ backgroundImage: `url(${bg})` }}>
+        <div className="toast-message">{message}</div>
+      </div>
+    </div>
+  );
+};
+
+export default Toast;

+ 88 - 0
src/components/huajuan.tsx

@@ -0,0 +1,88 @@
+import React, { FunctionComponent, useEffect, useMemo, useRef } from 'react';
+import styles from './index.module.scss';
+
+
+interface IProps {
+  imgs: any,
+  left: number,
+  onChange: Function
+  handleClick: Function,
+}
+
+const Component: FunctionComponent<IProps> = (props) => {
+  const {
+    imgs,
+    left,
+    onChange,
+    handleClick
+  } = props;
+
+  const innerimg = useRef<HTMLDivElement>(null);
+  const jzimg = useRef<HTMLImageElement>(null);
+
+
+  const info = useMemo(() => {
+    return [
+      {
+        id: 1,
+        image: imgs.line_boat,
+        cls: 'line_boat',
+        msg: '独自荡舟江上,穿梭于山水之间,却不时回望',
+        name: '船'
+      },
+      {
+        id: 2,
+        image: imgs.line_friends,
+        cls: 'line_friends',
+        msg: '亲友即将远行,送别者依依不舍',
+        name: 'line_friends'
+      },
+      {
+        id: 3,
+        image: imgs.line_mount,
+        cls: 'line_mount',
+        msg: '洲渚之间,山水交融,美不胜收',
+        name: 'line_mount'
+      }
+    ]
+  }, [imgs])
+
+
+  useEffect(() => {
+    let temp = left
+    if (innerimg.current && jzimg.current) {
+      let innerW = window.innerWidth
+      let innerImgW = innerimg.current.clientWidth
+      let jzimgW = jzimg.current.clientWidth
+      temp = Math.max(Math.min((innerImgW - innerW + jzimgW + 20), left), 0)
+    }
+    onChange(temp)
+  }, [left])
+
+
+
+  return (
+    <div className={styles.Layout}>
+      <img ref={jzimg} className='hjbg' src={imgs.img_juanzhou} alt="img_juanzhou" />
+      <div className='inner'>
+        <div className='innerimg'
+          ref={innerimg}
+          style={{ left: `-${left}px` }}>
+          <img
+            className='texture'
+            src={imgs.img_texture} alt="img_texture" />
+          {
+            info.map(item => {
+              return (
+                <img key={item.id} onTouchEnd={(event) => {event.preventDefault(); handleClick(item) }} className={`gaoliang ${item.cls}`} src={item.image} alt={item.name} />
+              )
+            })
+          }
+
+        </div>
+      </div>
+    </div>
+  );
+};
+
+export default Component;

+ 61 - 0
src/components/index.module.scss

@@ -0,0 +1,61 @@
+.Layout {
+  width: 100%;
+  height: 40%;
+  padding: 20px 0;
+  margin-left: 20px;
+  position: relative;
+  display: flex;
+  align-items: center;
+  overflow: hidden;
+  $gap: 50px;
+  :global {
+    .hjbg {
+      height: 100%;
+      position: relative;
+      z-index: 99;
+      left: -2px;
+    }
+    .inner {
+      height: 80%;
+      position: relative;
+      &::before {
+        position: absolute;
+        content: "";
+        display: inline-block;
+        height: 100%;
+        z-index: 99;
+        left: -2px;
+        width: 30px;
+        background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
+      }
+      .innerimg {
+        height: 100%;
+        position: relative;
+        transition: left 0.5s linear;
+        .texture {
+          height: 100%;
+        }
+        .gaoliang {
+          position: absolute;
+          animation: opacity-cycle 2s linear infinite;
+        }
+
+        .line_boat {
+          width: 6%;
+          right: 23%;
+          top: 53.8%;
+        }
+        .line_friends {
+          width: 4%;
+          right: -0.4%;
+          top: 79%;
+        }
+        .line_mount {
+          width: 4%;
+          right: 33.8%;
+          top: 50%;
+        }
+      }
+    }
+  }
+}

+ 38 - 0
src/index.css

@@ -0,0 +1,38 @@
+@font-face {
+  font-family: 'siyuan';
+  src: url(./assets/fonts/SourceHanSerifCN-Bold-2.otf);
+  font-weight: normal;
+  font-style: normal;
+}
+
+* {
+  font-family: 'siyuan';
+  margin: 0;
+  padding: 0;
+  list-style: none;
+  box-sizing: border-box;
+}
+
+html,
+body,
+#root {
+  width: 100%;
+  height: 100%;
+  overflow: hidden;
+}
+
+
+
+@keyframes opacity-cycle {
+  0% {
+    opacity: 0.2;
+  }
+
+  50% {
+    opacity: 1;
+  }
+
+  100% {
+    opacity: 0.2;
+  }
+}

+ 12 - 0
src/index.tsx

@@ -0,0 +1,12 @@
+import React from 'react';
+import ReactDOM from 'react-dom/client';
+import './normalize.css';
+import './index.css';
+import App from './App';
+
+const root = ReactDOM.createRoot(
+  document.getElementById('root') as HTMLElement
+);
+root.render(
+    <App />
+);

File diff suppressed because it is too large
+ 1 - 0
src/logo.svg


+ 349 - 0
src/normalize.css

@@ -0,0 +1,349 @@
+/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
+
+/* Document
+   ========================================================================== */
+
+/**
+ * 1. Correct the line height in all browsers.
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
+ */
+
+ html {
+  line-height: 1.15; /* 1 */
+  -webkit-text-size-adjust: 100%; /* 2 */
+}
+
+/* Sections
+   ========================================================================== */
+
+/**
+ * Remove the margin in all browsers.
+ */
+
+body {
+  margin: 0;
+}
+
+/**
+ * Render the `main` element consistently in IE.
+ */
+
+main {
+  display: block;
+}
+
+/**
+ * Correct the font size and margin on `h1` elements within `section` and
+ * `article` contexts in Chrome, Firefox, and Safari.
+ */
+
+h1 {
+  font-size: 2em;
+  margin: 0.67em 0;
+}
+
+/* Grouping content
+   ========================================================================== */
+
+/**
+ * 1. Add the correct box sizing in Firefox.
+ * 2. Show the overflow in Edge and IE.
+ */
+
+hr {
+  box-sizing: content-box; /* 1 */
+  height: 0; /* 1 */
+  overflow: visible; /* 2 */
+}
+
+/**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+pre {
+  font-family: monospace, monospace; /* 1 */
+  font-size: 1em; /* 2 */
+}
+
+/* Text-level semantics
+   ========================================================================== */
+
+/**
+ * Remove the gray background on active links in IE 10.
+ */
+
+a {
+  background-color: transparent;
+}
+
+/**
+ * 1. Remove the bottom border in Chrome 57-
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
+ */
+
+abbr[title] {
+  border-bottom: none; /* 1 */
+  text-decoration: underline; /* 2 */
+  text-decoration: underline dotted; /* 2 */
+}
+
+/**
+ * Add the correct font weight in Chrome, Edge, and Safari.
+ */
+
+b,
+strong {
+  font-weight: bolder;
+}
+
+/**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+code,
+kbd,
+samp {
+  font-family: monospace, monospace; /* 1 */
+  font-size: 1em; /* 2 */
+}
+
+/**
+ * Add the correct font size in all browsers.
+ */
+
+small {
+  font-size: 80%;
+}
+
+/**
+ * Prevent `sub` and `sup` elements from affecting the line height in
+ * all browsers.
+ */
+
+sub,
+sup {
+  font-size: 75%;
+  line-height: 0;
+  position: relative;
+  vertical-align: baseline;
+}
+
+sub {
+  bottom: -0.25em;
+}
+
+sup {
+  top: -0.5em;
+}
+
+/* Embedded content
+   ========================================================================== */
+
+/**
+ * Remove the border on images inside links in IE 10.
+ */
+
+img {
+  border-style: none;
+}
+
+/* Forms
+   ========================================================================== */
+
+/**
+ * 1. Change the font styles in all browsers.
+ * 2. Remove the margin in Firefox and Safari.
+ */
+
+button,
+input,
+optgroup,
+select,
+textarea {
+  font-family: inherit; /* 1 */
+  font-size: 100%; /* 1 */
+  line-height: 1.15; /* 1 */
+  margin: 0; /* 2 */
+}
+
+/**
+ * Show the overflow in IE.
+ * 1. Show the overflow in Edge.
+ */
+
+button,
+input { /* 1 */
+  overflow: visible;
+}
+
+/**
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
+ * 1. Remove the inheritance of text transform in Firefox.
+ */
+
+button,
+select { /* 1 */
+  text-transform: none;
+}
+
+/**
+ * Correct the inability to style clickable types in iOS and Safari.
+ */
+
+button,
+[type="button"],
+[type="reset"],
+[type="submit"] {
+  -webkit-appearance: button;
+}
+
+/**
+ * Remove the inner border and padding in Firefox.
+ */
+
+button::-moz-focus-inner,
+[type="button"]::-moz-focus-inner,
+[type="reset"]::-moz-focus-inner,
+[type="submit"]::-moz-focus-inner {
+  border-style: none;
+  padding: 0;
+}
+
+/**
+ * Restore the focus styles unset by the previous rule.
+ */
+
+button:-moz-focusring,
+[type="button"]:-moz-focusring,
+[type="reset"]:-moz-focusring,
+[type="submit"]:-moz-focusring {
+  outline: 1px dotted ButtonText;
+}
+
+/**
+ * Correct the padding in Firefox.
+ */
+
+fieldset {
+  padding: 0.35em 0.75em 0.625em;
+}
+
+/**
+ * 1. Correct the text wrapping in Edge and IE.
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
+ * 3. Remove the padding so developers are not caught out when they zero out
+ *    `fieldset` elements in all browsers.
+ */
+
+legend {
+  box-sizing: border-box; /* 1 */
+  color: inherit; /* 2 */
+  display: table; /* 1 */
+  max-width: 100%; /* 1 */
+  padding: 0; /* 3 */
+  white-space: normal; /* 1 */
+}
+
+/**
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
+ */
+
+progress {
+  vertical-align: baseline;
+}
+
+/**
+ * Remove the default vertical scrollbar in IE 10+.
+ */
+
+textarea {
+  overflow: auto;
+}
+
+/**
+ * 1. Add the correct box sizing in IE 10.
+ * 2. Remove the padding in IE 10.
+ */
+
+[type="checkbox"],
+[type="radio"] {
+  box-sizing: border-box; /* 1 */
+  padding: 0; /* 2 */
+}
+
+/**
+ * Correct the cursor style of increment and decrement buttons in Chrome.
+ */
+
+[type="number"]::-webkit-inner-spin-button,
+[type="number"]::-webkit-outer-spin-button {
+  height: auto;
+}
+
+/**
+ * 1. Correct the odd appearance in Chrome and Safari.
+ * 2. Correct the outline style in Safari.
+ */
+
+[type="search"] {
+  -webkit-appearance: textfield; /* 1 */
+  outline-offset: -2px; /* 2 */
+}
+
+/**
+ * Remove the inner padding in Chrome and Safari on macOS.
+ */
+
+[type="search"]::-webkit-search-decoration {
+  -webkit-appearance: none;
+}
+
+/**
+ * 1. Correct the inability to style clickable types in iOS and Safari.
+ * 2. Change font properties to `inherit` in Safari.
+ */
+
+::-webkit-file-upload-button {
+  -webkit-appearance: button; /* 1 */
+  font: inherit; /* 2 */
+}
+
+/* Interactive
+   ========================================================================== */
+
+/*
+ * Add the correct display in Edge, IE 10+, and Firefox.
+ */
+
+details {
+  display: block;
+}
+
+/*
+ * Add the correct display in all browsers.
+ */
+
+summary {
+  display: list-item;
+}
+
+/* Misc
+   ========================================================================== */
+
+/**
+ * Add the correct display in IE 10+.
+ */
+
+template {
+  display: none;
+}
+
+/**
+ * Add the correct display in IE 10.
+ */
+
+[hidden] {
+  display: none;
+}

+ 4 - 0
src/react-app-env.d.ts

@@ -0,0 +1,4 @@
+/// <reference types="react-scripts" />
+
+
+declare module 'three/examples/jsm/libs/tween.module.js'

+ 15 - 0
src/reportWebVitals.ts

@@ -0,0 +1,15 @@
+import { ReportHandler } from 'web-vitals';
+
+const reportWebVitals = (onPerfEntry?: ReportHandler) => {
+  if (onPerfEntry && onPerfEntry instanceof Function) {
+    import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
+      getCLS(onPerfEntry);
+      getFID(onPerfEntry);
+      getFCP(onPerfEntry);
+      getLCP(onPerfEntry);
+      getTTFB(onPerfEntry);
+    });
+  }
+};
+
+export default reportWebVitals;

+ 5 - 0
src/setupTests.ts

@@ -0,0 +1,5 @@
+// jest-dom adds custom jest matchers for asserting on DOM nodes.
+// allows you to do things like:
+// expect(element).toHaveTextContent(/react/i)
+// learn more: https://github.com/testing-library/jest-dom
+import '@testing-library/jest-dom';

+ 23 - 0
src/utils/index.tsx

@@ -0,0 +1,23 @@
+export function debounce(func: Function, delay: number): Function {
+  let timer: any;
+  return function () {
+    if (timer) {
+      clearTimeout(timer);
+    }
+    timer = setTimeout(()=> {
+      func();
+    }, delay);
+  };
+}
+
+
+export function throttle(func: Function, delay: number): Function {
+  let lastTime = 0;
+  return () => {
+    const currentTime = new Date().getTime();
+    if (currentTime - lastTime > delay) {
+      lastTime = currentTime;
+      func();
+    }
+  };
+}

+ 26 - 0
tsconfig.json

@@ -0,0 +1,26 @@
+{
+  "compilerOptions": {
+    "target": "es5",
+    "lib": [
+      "dom",
+      "dom.iterable",
+      "esnext"
+    ],
+    "allowJs": true,
+    "skipLibCheck": true,
+    "esModuleInterop": true,
+    "allowSyntheticDefaultImports": true,
+    "strict": true,
+    "forceConsistentCasingInFileNames": true,
+    "noFallthroughCasesInSwitch": true,
+    "module": "esnext",
+    "moduleResolution": "node",
+    "resolveJsonModule": true,
+    "isolatedModules": true,
+    "noEmit": true,
+    "jsx": "react-jsx"
+  },
+  "include": [
+    "src"
+  ]
+}

File diff suppressed because it is too large
+ 9276 - 0
yarn.lock