-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
132 lines (118 loc) · 6.02 KB
/
Copy pathindex.html
File metadata and controls
132 lines (118 loc) · 6.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Encounters</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="globals.css">
<link rel="icon" type="image/x-icon" href="/images/favicon.png">
</head>
<body>
<div class="app">
<header class="header">
<div class="header-content">
<h1 class="app-title">AI Encounters</h1>
<p class="app-subtitle">AI-Powered Combat Narratives</p>
</div>
</header>
<main class="main">
<!-- Character Setup -->
<section class="card">
<header class="card-header">
<h2 class="card-title">Character</h2>
</header>
<div class="card-content">
<div class="character-section">
<div class="character-avatar">
<img src="/images/placeholder.png" alt="Character" class="avatar-image" id="imagen-personaje">
</div>
<div class="character-details">
<select id="personaje" class="select" onchange="actualizarDatos()">
<option value=""></option>
</select>
<div class="character-info" id="character-info">
<span class="info-item" id="clase-personaje">—</span>
<span class="info-separator">•</span>
<span class="info-item">Level <span id="nivel-personaje">—</span></span>
<span class="info-separator">•</span>
<span class="info-item"><span id="hp-personaje">—</span> HP</span>
</div>
</div>
</div>
<div class="form-group">
<label class="label">Weapon / Spell</label>
<select id="arma" class="select">
<option value="">Choose weapon or spell</option>
</select>
</div>
<div class="form-group">
<label class="label">Target</label>
<select id="enemigo" class="select">
<option value="">Select enemy</option>
</select>
</div>
</div>
</section>
<!-- Combat Resolution -->
<section class="card">
<header class="card-header">
<h2 class="card-title">Combat</h2>
</header>
<div class="card-content">
<div class="dice-grid">
<div class="form-group">
<label class="label">Attack Roll</label>
<input id="ataque" type="number" class="input" placeholder="1-20" min="1" max="30">
</div>
<div class="form-group">
<label class="label">Damage</label>
<input id="dano" type="number" class="input" placeholder="0+" min="0">
</div>
</div>
<div class="form-group">
<label class="label">Action Description</label>
<div class="input-group">
<textarea id="input" class="textarea" placeholder="Describe your character's action..."></textarea>
<button onclick="empezarEscucha()" class="voice-button" title="Voice Input">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path>
<path d="M19 10v2a7 7 0 0 1-14 0v-2"></path>
<line x1="12" y1="19" x2="12" y2="23"></line>
<line x1="8" y1="23" x2="16" y2="23"></line>
</svg>
</button>
</div>
</div>
<button id="submit" class="generate-button">
Generate Encounter
</button>
</div>
</section>
<!-- Narrative Output -->
<section class="card narrative-card">
<header class="card-header">
<h2 class="card-title">Narrative</h2>
<button class="copy-button" onclick="copyToClipboard()" title="Copy to clipboard">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
</svg>
</button>
</header>
<div class="card-content">
<div id="output" class="narrative-output">
<div class="placeholder">
<p>Your encounter narrative will appear here</p>
</div>
</div>
</div>
</section>
</main>
</div>
<script src="https://js.puter.com/v2/"></script>
<script src="main.js"></script>
</body>
</html>