JSFiddle - React, Tailwind, and code Playground
by dledle2
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coding Adventures with Sparky!</title>
<script src="https://unpkg.com/blockly/blockly.min.js"></script>
<style>
body {
font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
margin: 0;
padding: 20px;
background-color: #e0f7fa; /* Light sky blue */
color: #004d40; /* Dark teal */
}
header {
background-color: #00796b; /* Teal */
color: white;
padding: 15px 30px;
border-radius: 10px;
margin-bottom: 20px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
text-align: center;
}
h1 {
margin: 0;
font-size: 2.5em;
}
#main-content {
display: flex;
width: 100%;
max-width: 1200px;
gap: 20px;
}
#instructions-panel {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
width: 25%;
height: fit-content;
}
#instructions-panel h2 {
color: #00796b;
margin-top: 0;
}
#instructions-panel p, #instructions-panel ul {
line-height: 1.6;
}
#instructions-panel li {
margin-bottom: 5px;
}
#coding-area {
flex-grow: 1;
display: flex;
flex-direction: column;
}
#blockly-container {
width: 100%;
height: 400px; /* Adjust as needed */
border: 2px solid #004d40;
border-radius: 8px;
box-shadow: 0 2px 4px...