File size: 11,832 Bytes
dd5f033
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ROTE PROJECT - Actor's Dialogue Trainer</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        @keyframes bob {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        .cockatoo-pixel {
            image-rendering: pixelated;
            animation: bob 1s infinite ease-in-out;
        }
        .redacted {
            background-color: #333;
            color: transparent;
            border-radius: 3px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .redacted:hover {
            background-color: #444;
        }
        .redacted.revealed {
            background-color: transparent;
            color: inherit;
        }
        .redacted.first-letter {
            background-color: #333;
            color: transparent;
        }
        .redacted.first-letter::first-letter {
            color: white;
        }
    </style>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen flex flex-col">
    <!-- Navigation -->
    <nav class="bg-gray-800 p-4 flex justify-between items-center">
        <div class="flex items-center space-x-2">
            <h1 class="text-xl font-bold text-yellow-400">ROTE PROJECT</h1>
            <span class="text-sm text-gray-400">Actor's Dialogue Trainer</span>
        </div>
        <div class="flex space-x-4">
            <button class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded">Login</button>
            <button class="px-4 py-2 bg-yellow-600 hover:bg-yellow-500 rounded">Sign Up</button>
        </div>
    </nav>

    <!-- Main Content -->
    <main class="flex flex-1">
        <!-- Sidebar -->
        <aside class="w-64 bg-gray-800 p-4 hidden md:block">
            <div class="mb-6">
                <h2 class="text-lg font-semibold mb-2">My Scenes</h2>
                <ul class="space-y-1">
                    <li class="p-2 hover:bg-gray-700 rounded cursor-pointer">Hamlet Act 1</li>
                    <li class="p-2 hover:bg-gray-700 rounded cursor-pointer">Romeo & Juliet</li>
                    <li class="p-2 hover:bg-gray-700 rounded cursor-pointer">Death of a Salesman</li>
                </ul>
                <button class="mt-2 w-full py-2 bg-gray-700 hover:bg-gray-600 rounded">+ New Scene</button>
            </div>
            
            <div class="mb-6">
                <h2 class="text-lg font-semibold mb-2">Practice Tools</h2>
                <button class="w-full py-2 px-4 mb-2 bg-gray-700 hover:bg-gray-600 rounded text-left">Redaction</button>
                <button class="w-full py-2 px-4 mb-2 bg-gray-700 hover:bg-gray-600 rounded text-left">AI Coach</button>
                <button class="w-full py-2 px-4 bg-gray-700 hover:bg-gray-600 rounded text-left">Recordings</button>
            </div>
            
            <div class="mt-8 pt-4 border-t border-gray-700">
                <div class="flex justify-center">
                    <!-- Cockatoo Mascot (static version) -->
                    <div class="cockatoo-pixel w-16 h-16"></div>
                </div>
                <p class="text-center text-xs text-gray-400 mt-2">Your practice companion</p>
            </div>
        </aside>

        <!-- Scene Workspace -->
        <section class="flex-1 p-6">
            <div class="max-w-4xl mx-auto">
                <!-- Scene Title -->
                <div class="mb-6">
                    <input type="text" value="Hamlet - Act 3, Scene 1" 
                           class="w-full text-2xl font-bold bg-transparent border-b border-gray-700 focus:border-yellow-500 outline-none pb-2">
                </div>
                
                <!-- Scene Controls -->
                <div class="flex flex-wrap gap-2 mb-6">
                    <button class="px-4 py-2 bg-gray-800 hover:bg-gray-700 rounded">Upload Script</button>
                    <button class="px-4 py-2 bg-gray-800 hover:bg-gray-700 rounded">Redact All</button>
                    <button class="px-4 py-2 bg-gray-800 hover:bg-gray-700 rounded">Show All</button>
                    <button class="px-4 py-2 bg-gray-800 hover:bg-gray-700 rounded">First Letters</button>
                    <button class="px-4 py-2 bg-gray-800 hover:bg-gray-700 rounded">Record Audio</button>
                    <button class="px-4 py-2 bg-yellow-700 hover:bg-yellow-600 rounded">AI Coach</button>
                </div>
                
                <!-- Scene Text -->
                <div class="bg-gray-800 p-6 rounded-lg mb-6">
                    <div class="mb-4">
                        <span class="font-semibold text-yellow-400">HAMLET</span>
                        <p class="mt-1 text-lg leading-relaxed">
                            <span class="redacted">To</span> <span class="redacted">be,</span> <span class="redacted">or</span> <span class="redacted">not</span> <span class="redacted">to</span> <span class="redacted">be:</span> <span class="redacted">that</span> <span class="redacted">is</span> <span class="redacted">the</span> <span class="redacted">question:</span>
                        </p>
                    </div>
                    <div class="mb-4">
                        <span class="font-semibold text-yellow-400">HAMLET</span>
                        <p class="mt-1 text-lg leading-relaxed">
                            <span class="redacted first-letter">Whether</span> <span class="redacted first-letter">'tis</span> <span class="redacted first-letter">nobler</span> <span class="redacted first-letter">in</span> <span class="redacted first-letter">the</span> <span class="redacted first-letter">mind</span> <span class="redacted first-letter">to</span> <span class="redacted first-letter">suffer</span>
                        </p>
                    </div>
                    <div>
                        <span class="font-semibold text-yellow-400">HAMLET</span>
                        <p class="mt-1 text-lg leading-relaxed">
                            <span class="redacted revealed">The</span> <span class="redacted">slings</span> <span class="redacted">and</span> <span class="redacted">arrows</span> <span class="redacted">of</span> <span class="redacted">outrageous</span> <span class="redacted">fortune,</span>
                        </p>
                    </div>
                </div>
                
                <!-- Redaction Controls -->
                <div class="flex justify-center space-x-4 mb-8">
                    <button class="px-6 py-3 bg-gray-800 hover:bg-gray-700 rounded-lg font-bold"><<</button>
                    <button class="px-6 py-3 bg-gray-800 hover:bg-gray-700 rounded-lg font-bold"><</button>
                    <button class="px-6 py-3 bg-gray-800 hover:bg-gray-700 rounded-lg font-bold">></button>
                    <button class="px-6 py-3 bg-gray-800 hover:bg-gray-700 rounded-lg font-bold">>></button>
                </div>
                
                <!-- Loading Indicator -->
                <div id="loadingIndicator" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden">
                    <div class="text-center">
                        <div class="cockatoo-pixel w-32 h-32 mx-auto"></div>
                        <p class="mt-4 text-xl">Processing your scene...</p>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <!-- Footer -->
    <footer class="bg-gray-800 p-4 text-center text-sm text-gray-400">
        <p>ROTE PROJECT © 2023 - Helping actors master their lines with confidence</p>
    </footer>

    <script>
        // Render the 16-bit cockatoo
        document.addEventListener('DOMContentLoaded', function() {
            const cockatoo = document.querySelector('.cockatoo-pixel');
            const canvas = document.createElement('canvas');
            canvas.width = 16;
            canvas.height = 16;
            canvas.style.width = '100%';
            canvas.style.height = '100%';
            cockatoo.appendChild(canvas);
            
            const ctx = canvas.getContext('2d');
            
            // 16x16 pixel map
            const pixelMap = [
                "................",
                ".....YYY........",
                ".....YYY........",
                ".....WWWYYY.....",
                ".....WWWWWW.....",
                "....WWWWWWWW....",
                "...WWWWWWWWWW....",
                "...WWWWWWWWWW....",
                "...WWWWWWWWWW....",
                "...WWWWWWWWW.....",
                "....WWWWWWWW.....",
                "......B.BB.......",
                ".....OO..OO......",
                "................",
                "................",
                "................"
            ];
            
            const colorMap = {
                '.': 'rgba(0,0,0,0)',
                'Y': '#FFFF00',
                'W': '#FFFFFF',
                'B': '#000000',
                'O': '#FFAA00'
            };
            
            // Draw the cockatoo
            for (let y = 0; y < pixelMap.length; y++) {
                for (let x = 0; x < pixelMap[y].length; x++) {
                    ctx.fillStyle = colorMap[pixelMap[y][x]] || '#FF00FF';
                    ctx.fillRect(x, y, 1, 1);
                }
            }
            
            // Redaction interaction
            document.querySelectorAll('.redacted').forEach(el => {
                el.addEventListener('click', function() {
                    this.classList.toggle('revealed');
                });
                
                el.addEventListener('mouseenter', function() {
                    if (!this.classList.contains('revealed') && !this.classList.contains('first-letter')) {
                        this.classList.add('hovered');
                    }
                });
                
                el.addEventListener('mouseleave', function() {
                    this.classList.remove('hovered');
                });
            });
            
            // Simulate loading for demo purposes
            document.querySelectorAll('button').forEach(btn => {
                btn.addEventListener('click', function() {
                    if (this.textContent.includes('AI Coach') || this.textContent.includes('Upload')) {
                        const loader = document.getElementById('loadingIndicator');
                        loader.classList.remove('hidden');
                        
                        setTimeout(() => {
                            loader.classList.add('hidden');
                            if (this.textContent.includes('AI Coach')) {
                                alert("AI Coach: Focus on the existential dilemma in Hamlet's voice. Try emphasizing 'question' in the first line.");
                            }
                        }, 2000);
                    }
                });
            });
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=rote1/roterote" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>