File size: 9,240 Bytes
a2f2f05
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bd594aa
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BlockSity Visual Code Wizard</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
    <style>
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
        .code-block {
            background: linear-gradient(145deg, #1a1a2e, #16213e);
            box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
        }
        .btn-glow:hover {
            box-shadow: 0 0 15px rgba(100, 255, 218, 0.6);
        }
        .undefined-bg {
            background: linear-gradient(135deg, #6e8efb, #a777e3);
        }
    </style>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen overflow-x-hidden">
    <div id="vanta-bg" class="fixed inset-0 z-0"></div>
    
    <div class="relative z-10 container mx-auto px-4 py-16">
        <header class="text-center mb-16">
            <h1 class="text-5xl md:text-7xl font-bold mb-6 bg-clip-text text-transparent undefined-bg animate-float">
                BlockSity <span class="text-indigo-300">Visual</span> Wizard
            </h1>
            <p class="text-xl text-gray-300 max-w-2xl mx-auto">
                Transform your Python code into a visual masterpiece with stunning animations and modern design
            </p>
        </header>

        <div class="grid md:grid-cols-2 gap-8 mb-16">
            <div class="code-block rounded-xl p-8 transform transition-all duration-500 hover:scale-105">
                <div class="flex items-center mb-6">
                    <div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div>
                    <div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div>
                    <div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
                    <span class="text-gray-400 ml-4">visual_code.py</span>
                </div>
                <pre class="text-green-400 font-mono text-sm overflow-x-auto">
<span class="text-purple-300">import</span> <span class="text-blue-300">pygame</span>
<span class="text-purple-300">import</span> <span class="text-blue-300">random</span>
<span class="text-purple-300">import</span> <span class="text-blue-300">math</span>

<span class="text-yellow-300">def</span> <span class="text-blue-300">create_particles</span>(<span class="text-green-300">x</span>, <span class="text-green-300">y</span>):
    <span class="text-gray-500"># Create magical particle effects</span>
    particles = []
    <span class="text-yellow-300">for</span> i <span class="text-yellow-300">in</span> <span class="text-blue-300">range</span>(<span class="text-orange-300">100</span>):
        angle = random.uniform(<span class="text-orange-300">0</span>, math.pi*<span class="text-orange-300">2</span>)
        speed = random.uniform(<span class="text-orange-300">1</span>, <span class="text-orange-300">5</span>)
        particles.append({
            <span class="text-green-300">'x'</span>: x,
            <span class="text-green-300">'y'</span>: y,
            <span class="text-green-300">'vx'</span>: math.cos(angle) * speed,
            <span class="text-green-300">'vy'</span>: math.sin(angle) * speed,
            <span class="text-green-300">'color'</span>: (random.randint(<span class="text-orange-300">100</span>,<span class="text-orange-300">255</span>), 
                          random.randint(<span class="text-orange-300">100</span>,<span class="text-orange-300">255</span>), 
                          random.randint(<span class="text-orange-300">100</span>,<span class="text-orange-300">255</span>)),
            <span class="text-green-300">'life'</span>: random.uniform(<span class="text-orange-300">20</span>, <span class="text-orange-300">40</span>)
        })
    <span class="text-yellow-300">return</span> particles</pre>
            </div>

            <div class="flex flex-col justify-center">
                <h2 class="text-3xl font-bold mb-4 undefined-bg bg-clip-text text-transparent">Visual Python Magic</h2>
                <p class="text-gray-300 mb-6">
                    Our tool transforms ordinary Python code into visually stunning experiences with:
                </p>
                <ul class="space-y-3">
                    <li class="flex items-center">
                        <i data-feather="zap" class="text-yellow-400 mr-3"></i>
                        <span>Real-time syntax highlighting</span>
                    </li>
                    <li class="flex items-center">
                        <i data-feather="code" class="text-purple-400 mr-3"></i>
                        <span>Interactive code animations</span>
                    </li>
                    <li class="flex items-center">
                        <i data-feather="eye" class="text-blue-400 mr-3"></i>
                        <span>3D visualization of data structures</span>
                    </li>
                    <li class="flex items-center">
                        <i data-feather="cpu" class="text-green-400 mr-3"></i>
                        <span>Execution flow visualization</span>
                    </li>
                </ul>
            </div>
        </div>

        <div class="text-center mt-16">
            <button class="btn-glow undefined-bg text-white font-bold py-4 px-8 rounded-full text-lg transform transition-all duration-300 hover:scale-110">
                Generate Your Visual Code
                <i data-feather="arrow-right" class="ml-2 inline"></i>
            </button>
        </div>

        <div class="mt-24 grid md:grid-cols-3 gap-8">
            <div class="bg-gray-800 bg-opacity-50 backdrop-blur-sm p-6 rounded-xl transform transition-all duration-300 hover:-translate-y-2">
                <div class="undefined-bg w-12 h-12 rounded-full flex items-center justify-center mb-4">
                    <i data-feather="box" class="text-white"></i>
                </div>
                <h3 class="text-xl font-bold mb-2">Code Blocks</h3>
                <p class="text-gray-300">Beautifully animated code segments that respond to your interactions.</p>
            </div>
            <div class="bg-gray-800 bg-opacity-50 backdrop-blur-sm p-6 rounded-xl transform transition-all duration-300 hover:-translate-y-2">
                <div class="undefined-bg w-12 h-12 rounded-full flex items-center justify-center mb-4">
                    <i data-feather="cpu" class="text-white"></i>
                </div>
                <h3 class="text-xl font-bold mb-2">Visual Debugger</h3>
                <p class="text-gray-300">See your code execute step-by-step with stunning visualizations.</p>
            </div>
            <div class="bg-gray-800 bg-opacity-50 backdrop-blur-sm p-6 rounded-xl transform transition-all duration-300 hover:-translate-y-2">
                <div class="undefined-bg w-12 h-12 rounded-full flex items-center justify-center mb-4">
                    <i data-feather="sliders" class="text-white"></i>
                </div>
                <h3 class="text-xl font-bold mb-2">Custom Themes</h3>
                <p class="text-gray-300">Choose from dozens of beautiful color schemes for your code.</p>
            </div>
        </div>
    </div>

    <script>
        // Initialize Vanta.js background
        VANTA.GLOBE({
            el: "#vanta-bg",
            mouseControls: true,
            touchControls: true,
            gyroControls: false,
            minHeight: 200.00,
            minWidth: 200.00,
            scale: 1.00,
            scaleMobile: 1.00,
            color: 0x5e35b1,
            backgroundColor: 0x111827,
            size: 0.8
        });

        // Animation for code blocks
        document.querySelectorAll('.code-block').forEach((block, index) => {
            block.style.opacity = '0';
            block.style.transform = 'translateY(20px)';
            
            anime({
                targets: block,
                opacity: 1,
                translateY: 0,
                delay: index * 100,
                duration: 800,
                easing: 'easeOutExpo'
            });
        });

        // Hover effect for buttons
        document.querySelectorAll('.btn-glow').forEach(btn => {
            btn.addEventListener('mouseenter', () => {
                anime({
                    targets: btn,
                    boxShadow: ['0 0 0px rgba(100, 255, 218, 0)', '0 0 20px rgba(100, 255, 218, 0.6)'],
                    duration: 300
                });
            });
            
            btn.addEventListener('mouseleave', () => {
                anime({
                    targets: btn,
                    boxShadow: ['0 0 20px rgba(100, 255, 218, 0.6)', '0 0 0px rgba(100, 255, 218, 0)'],
                    duration: 300
                });
            });
        });

        // Initialize feather icons
        feather.replace();
    </script>
</body>
</html>