added picoserve example
This commit is contained in:
14
examples/picoserve/static/index.html
Normal file
14
examples/picoserve/static/index.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Simple Static Example</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello from Static!</h1>
|
||||
<button id="clickMeBtn">Click Me</button>
|
||||
<p id="message"></p>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
3
examples/picoserve/static/script.js
Normal file
3
examples/picoserve/static/script.js
Normal file
@@ -0,0 +1,3 @@
|
||||
document.getElementById("clickMeBtn").addEventListener("click", function() {
|
||||
document.getElementById("message").textContent = "You clicked the button!";
|
||||
});
|
||||
27
examples/picoserve/static/style.css
Normal file
27
examples/picoserve/static/style.css
Normal file
@@ -0,0 +1,27 @@
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background: #f7f8fa;
|
||||
text-align: center;
|
||||
margin-top: 100px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px 25px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
border-radius: 5px;
|
||||
border: none;
|
||||
background: #4e8cff;
|
||||
color: white;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
#message {
|
||||
margin-top: 30px;
|
||||
color: #4e8cff;
|
||||
font-weight: bold;
|
||||
}
|
||||
Reference in New Issue
Block a user