Skip to content

Commit

Permalink
feat: Write usage
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Nov 24, 2024
1 parent 2eaadb8 commit c138bf9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/components/layouts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export const AppMessageBox: FC<
<div class="message-header">
<p>{props.title}</p>
</div>
<div class="message-body">{props.children}</div>
<div class="message-body">
<div class="content">{props.children}</div>
</div>
</article>
);
15 changes: 13 additions & 2 deletions src/routes/html.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
import { Hono } from 'hono';
import { Input } from '../components/inputs';
import { AppLayout } from '../components/layouts';
import { AppLayout, AppMessageBox } from '../components/layouts';

const app = new Hono<{ Bindings: CloudflareBindings }>();

Expand Down Expand Up @@ -43,7 +43,18 @@ app.get('/', (c) => {
</form>
</div>
<div class="column">
<div class="section" id="result" />
<div class="section" id="result">
<AppMessageBox title="Usage" type="info">
<ol>
<li>左のフォームに必要な情報を入力してください。</li>
<li>
リポジトリがPrivateなら、事前に attakei
にRead権限を付与してください。
</li>
<li>「URL生成」ボタンをクリックしてください。</li>
</ol>
</AppMessageBox>
</div>
</div>
</div>
</section>
Expand Down

0 comments on commit c138bf9

Please sign in to comment.