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:
@@ -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
8
src/book.js
Normal 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
1139
src/fabula-ultima-sheet.css
Normal file
File diff suppressed because it is too large
Load Diff
13
src/fabula-ultima-sheet.html
Normal file
13
src/fabula-ultima-sheet.html
Normal 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>
|
||||
Reference in New Issue
Block a user