tiny-httpd example

This commit is contained in:
Swrup 2024-04-16 06:58:24 +02:00
parent fc4b8f5b8f
commit 709718f802
6 changed files with 77 additions and 14 deletions

8
examples/content/dune Normal file
View file

@ -0,0 +1,8 @@
(rule
(target script.js)
(deps
(file ../script.bc.js))
(action
(with-stdout-to
%{target}
(cat ../script.bc.js))))

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>gadgetobrr</title>
<script src="/script.js" defer="defer"></script>
<link rel="stylesheet" href="/style.css">
</head>
<body>
</body>
</html>

View file

@ -0,0 +1,19 @@
.brridget-container {
display: flex;
flex-direction: column;
top: 5vh;
left: 5vw;
background-color: black;
color: white;
opacity: 0.7;
padding-block: 2vh;
padding-inline: 1vw;
}
.brridget-grid {
display: grid;
position: fixed;
top: 5vh;
left: 4vw;
gap: 10%;
}