File size: 3,431 Bytes
7e144db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en" class="h-full">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LovelyScript - Visual Novel Engine</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="components/navbar.js"></script>
    <script src="components/editor-sidebar.js"></script>
    <script src="components/preview-window.js"></script>
</head>
<body class="bg-pink-50 h-full flex flex-col">
    <lovely-navbar></lovely-navbar>
    
    <div class="flex flex-1 overflow-hidden">
        <editor-sidebar></editor-sidebar>
        
        <main class="flex-1 flex flex-col overflow-hidden">
            <div class="flex-1 flex overflow-hidden">
                <div class="w-1/2 border-r border-pink-200 overflow-auto p-4">
                    <div class="flex justify-between items-center mb-4">
                        <h2 class="text-xl font-bold text-pink-800">Script Editor</h2>
                        <button id="run-button" class="bg-pink-600 text-white px-3 py-1 rounded-md hover:bg-pink-700 transition">
                            <i data-feather="play" class="w-4 h-4"></i> Run
                        </button>
                    </div>
                    <textarea id="script-editor" class="w-full h-full p-4 font-mono text-sm bg-white rounded-lg border border-pink-300 focus:ring-2 focus:ring-pink-500 focus:border-transparent" spellcheck="false"># LovelyScript Example

character "Aoi" "Aoi" "pink"
character "Haru" "Haru" "blue"

background "park_day"

scene start
    show Aoi happy
    "Aoi" "Hello! Welcome to LovelyScript!"
    show Haru shy
    "Haru" "I hope you enjoy creating visual novels with us~"
    menu
        "Option 1":
            "Aoi" "You chose option 1!"
        "Option 2":
            "Haru" "Option 2 is great too!"
    jump next_scene

scene next_scene
    background "cafe"
    show Aoi surprised
    "Aoi" "Wow, this cafe is beautiful!"
    show Haru happy
    "Haru" "I come here often. The cakes are delicious."
    end</textarea>
                </div>
                
                <preview-window></preview-window>
            </div>
            
            <div class="border-t border-pink-200 bg-white p-3">
                <div class="flex items-center space-x-4">
                    <button class="flex items-center space-x-1 text-pink-700 hover:text-pink-900">
                        <i data-feather="save" class="w-4 h-4"></i>
                        <span>Save</span>
                    </button>
                    <button class="flex items-center space-x-1 text-pink-700 hover:text-pink-900">
                        <i data-feather="folder" class="w-4 h-4"></i>
                        <span>Open</span>
                    </button>
                    <button class="flex items-center space-x-1 text-pink-700 hover:text-pink-900">
                        <i data-feather="book" class="w-4 h-4"></i>
                        <span>Documentation</span>
                    </button>
                </div>
            </div>
        </main>
    </div>

    <script src="script.js"></script>
    <script>
        feather.replace();
    </script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>