Split CSS out into its own file

This commit is contained in:
Emi Simpson 2022-11-17 12:19:34 -05:00
parent 9646e67ff7
commit 96808a5648
Signed by: Emi
GPG key ID: A12F2C2FFDC3D847
5 changed files with 28 additions and 24 deletions

View file

@ -97,9 +97,11 @@ gunicorn fhost:app
```
You'll also need to serve the `aviary.min.js` file generated during the
**building** step at `/aviary.min.js`. This can be done using an external
webserver. A sample `Caddyfile` exists in `:dist/`. To use this, run the
following command from the `dist/` directory.
**building** step at `/aviary.min.js`, and the `aviary.css` file in
`:dist/www/` at `/aviary.css`. This can be done using an external webserver.
A sample `Caddyfile` exists in `:dist/`. To use this, run the following
command from the `dist/` directory after filling in the `/path/to/0x0` with the
directory your instance of `0x0` is running in.
```bash
caddy run

2
dist/Caddyfile vendored
View file

@ -1,6 +1,6 @@
http://localhost:6660 {
route {
file_server /aviary.min.js {
file_server /* {
pass_thru
root www/
}

21
dist/www/404.html vendored Normal file
View file

@ -0,0 +1,21 @@
<!Doctype HTML>
<html>
<head>
<style>
</style>
<link rel="stylesheet" href="/aviary.css"/>
<script src="/aviary.min.js"></script>
<script src="https://unpkg.com/rescript-blurhash@0.4.0/dist/production.min.js"></script>
</head>
<body>
<div id="spinner">
<div class="loader">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div id="loader-text">Downloading<br/>Gallery...</div>
</div>
</body>
</html>

View file

@ -1,7 +1,3 @@
<!Doctype HTML>
<html>
<head>
<style>
body {
margin: 0;
padding: 0;
@ -240,19 +236,3 @@ p {
background: #201b27;
border-radius: 50%;
}
</style>
<script src="/aviary.min.js"></script>
<script src="https://unpkg.com/rescript-blurhash@0.4.0/dist/production.min.js"></script>
</head>
<body>
<div id="spinner">
<div class="loader">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div id="loader-text">Downloading<br/>Gallery...</div>
</div>
</body>
</html>

1
dist/www/aviary.min.js vendored Symbolic link
View file

@ -0,0 +1 @@
../../aviary.min.js