mirror of
https://github.com/trycua/computer.git
synced 2026-01-01 19:10:30 -06:00
42 lines
1.2 KiB
HTML
42 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Static Folder Example</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<h1>Static Folder Example</h1>
|
|
<p>This page is served from a static folder using bench-ui!</p>
|
|
|
|
<div class="image-container">
|
|
<img src="logo.svg" alt="Example SVG Logo" class="logo">
|
|
</div>
|
|
|
|
<div class="info">
|
|
<p>This example demonstrates:</p>
|
|
<ul>
|
|
<li>Serving a static folder with bench-ui</li>
|
|
<li>Loading external CSS files (styles.css)</li>
|
|
<li>Loading SVG images (logo.svg)</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<button id="testButton" class="btn">Click Me!</button>
|
|
<p id="status"></p>
|
|
</div>
|
|
|
|
<script>
|
|
document.getElementById('testButton').addEventListener('click', function () {
|
|
document.getElementById('status').textContent = 'Button clicked! ✓';
|
|
this.disabled = true;
|
|
this.textContent = 'Clicked!';
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |