浏览代码

新建页面脚本完美

yichael 5 月之前
父节点
当前提交
4b7da94e22

+ 2 - 0
src/App.jsx

@@ -1,9 +1,11 @@
 import './App.css';
 import './App.css';
 import Home from './pages/Home.jsx';
 import Home from './pages/Home.jsx';
+import ScreenShot from './pages/ScreenShot/ScreenShot.jsx';
 function App() {
 function App() {
   return (
   return (
     <div className="app">
     <div className="app">
       <Home />
       <Home />
+      <ScreenShot />
     </div>
     </div>
   );
   );
 }
 }

+ 1 - 1
src/pages/0-NEW-PAGE.BAT

@@ -241,5 +241,5 @@ exit /b
 
 
 :EndScript
 :EndScript
 endlocal
 endlocal
-echo 按任意键退出窗口...
+echo Press any key to exit...
 pause >nul
 pause >nul

+ 3 - 0
src/pages/ScreenShot/ScreenShot.css

@@ -0,0 +1,3 @@
+.ScreenShot-container {
+  padding: 20px;
+}

+ 7 - 0
src/pages/ScreenShot/ScreenShot.js

@@ -0,0 +1,7 @@
+export function ScreenShotLogic() {
+  // business logic placeholder
+
+  return {
+    // expose data or methods here
+  };
+}

+ 14 - 0
src/pages/ScreenShot/ScreenShot.jsx

@@ -0,0 +1,14 @@
+import './ScreenShot.css';
+import { ScreenShotLogic } from './ScreenShot.js';
+
+function ScreenShot() {
+  const logic = ScreenShotLogic();
+
+  return (
+    <div className="ScreenShot-container">
+      <h1>ScreenShot</h1>
+    </div>
+  );
+}
+
+export default ScreenShot;