refactor: Move source files from root into src/

Relocates book.js, fabula-ultima-sheet.css, and fabula-ultima-sheet.html
into src/ to consolidate all source files under one directory. Updates
webpack entry points, HTML template path, and CSS import accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 04:14:30 +00:00
parent 26d7a4a7fc
commit fcbd0acfb2
5 changed files with 17 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import React, { useState, useEffect, useCallback, useRef } from "react";
import "../fabula-ultima-sheet.css";
import "./fabula-ultima-sheet.css";
const STATUSES = ["Slow", "Enraged", "Dazed", "Weak", "Poisoned", "Shaken"];
const FEELINGS = [

8
src/book.js Normal file
View File

@@ -0,0 +1,8 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
import BookIndex from './BookIndex.jsx';
const { title, logoText, pages } = window.__BOOK_DATA__;
createRoot(document.getElementById('root')).render(
<BookIndex title={title} logoText={logoText} pages={pages} />
);

1139
src/fabula-ultima-sheet.css Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Fabula Ultima Character Sheet</title>
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inconsolata:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="fabula-ultima-sheet.css" />
</head>
<body>
<div id="root"></div>
</body>
</html>