Split CSS out into its own file
This commit is contained in:
parent
9646e67ff7
commit
96808a5648
|
@ -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
2
dist/Caddyfile
vendored
|
@ -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
21
dist/www/404.html
vendored
Normal 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>
|
20
dist/www/index.html → dist/www/aviary.css
vendored
20
dist/www/index.html → dist/www/aviary.css
vendored
|
@ -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
1
dist/www/aviary.min.js
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../aviary.min.js
|
Loading…
Reference in a new issue