Corin1998 commited on
Commit
e028e3f
·
verified ·
1 Parent(s): 11af141

Create App.tsx

Browse files
Files changed (1) hide show
  1. frontend/src/App.tsx +21 -0
frontend/src/App.tsx ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React, { useState } from "react";
2
+ import GeneratorForm from "./components/GeneratorForm";
3
+ import OutputPanel from "./components/OutputPanel";
4
+
5
+ export default function App() {
6
+ const [data, setData] = useState<any | null>(null);
7
+
8
+ return (
9
+ <div style={{ maxWidth: 980, margin: "0 auto", padding: 24 }}>
10
+ <header style={{ marginBottom: 18 }}>
11
+ <h1 style={{ margin: 0 }}>営業メール / 提案書ジェネレーター</h1>
12
+ <div style={{ opacity: 0.7 }}>Hugging Face + ChatGPT(API連携MVP)</div>
13
+ </header>
14
+ <GeneratorForm onResult={setData} />
15
+ <OutputPanel data={data} />
16
+ <footer style={{ marginTop: 24, fontSize: 12, opacity: 0.6 }}>
17
+ ※入力内容は生成のみに使用されます。保存は行いません(デモ設定)。
18
+ </footer>
19
+ </div>
20
+ );
21
+ }