Runtime Template
<!DOCTYPE html>
<html>
<head>
<title>Dev Tek</title>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<style>
* {
box-sizing: border-box;
font-family: 'Press Start 2P', system-ui;
line-height: 1.5;
}
body {
margin: 0;
padding: 16px;
font-size: 12px;
}
input, textarea, select {
font-family: 'Press Start 2P', system-ui;
font-size: 12px;
padding: 8px;
}
button {
cursor: pointer;å
font-family: 'Press Start 2P', system-ui;
padding: 8px 16px;
}
h1, h2, h3, h4, h5, h6 {
line-height: 1.6;
margin: 0;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const { useState, useEffect, useCallback, useRef } = React;
${code}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(React.createElement(App));
</script>
</body>
</html>`;
Overview
Base HTML Structure
Dependencies
Base Styling
Runtime Script
Complete Template
Key Features
Last updated