Verified Commit 229541c0 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Add example index.html and Caddyfile for development

To make it easier to develop the navbar, add an example html file with
Caddyfile to serve the files.
parent a6008aeb
http://localhost:8000
log
encode gzip
handle /css/*.svg {
uri replace css img
}
file_server
# Arch Linux common CSS Styles
Common Arch Linux SASS and CSS styles.
## Navbar development
```
make sass-watcher
caddy
xdg-open http://localhost:8000/example/index.html
```
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Arch Linux Navigation Bar</title>
<link rel="stylesheet" href="../css/navbar.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
</body>
<script>
document.addEventListener('DOMContentLoaded', (event) => {
fetch("/html/navbar.html")
.then(response => {
return response.text()
})
.then(data => {
document.querySelector("body").innerHTML = data;
});
});
</script>
</html>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment