From 3a083f4425da793a1d354a527cf041dd444738d0 Mon Sep 17 00:00:00 2001 From: John Hess Date: Wed, 5 Jun 2024 01:00:04 -0500 Subject: [PATCH] use a decent simulation for developing the explore view --- assets/css/butter-dir-listing.css | 71 +++++++++ assets/js/butter-dir-listing.js | 1 + simulated-usb-butter.html | 248 +++++++++++++++++++++++++++++- 3 files changed, 319 insertions(+), 1 deletion(-) create mode 100644 assets/css/butter-dir-listing.css create mode 100644 assets/js/butter-dir-listing.js diff --git a/assets/css/butter-dir-listing.css b/assets/css/butter-dir-listing.css new file mode 100644 index 0000000..f11e0b9 --- /dev/null +++ b/assets/css/butter-dir-listing.css @@ -0,0 +1,71 @@ +/* Based on the default lighttpd styles, this butters up the UI */ + + +a, +a:active { + text-decoration: none; + color: blue; +} + +a:visited { + color: #48468F; +} + +a:hover, +a:focus { + text-decoration: underline; + color: red; +} + +body { + background-color: #FFDF3F; +} + +h2 { + font-family: "Poppins", sans-serif; + margin-bottom: 12px; +} + +table { + margin-left: 12px; +} + +th, +td { + font: 90% monospace; + text-align: left; +} + +th { + font-weight: bold; + padding-right: 14px; + padding-bottom: 3px; +} + +td { + padding-right: 14px; +} + +td.s, +th.s { + text-align: right; +} + +/* Don't display the .. nav tool. */ +tbody tr.d:first-of-type +{ + display: none; +} + +div.list { + background-color: white; + border-top: 1px solid #646464; + border-bottom: 1px solid #646464; + padding-top: 10px; + padding-bottom: 14px; +} + +div.foot { + /* No need to display the lighttpd version; this is user-facing. */ + display: none; +} \ No newline at end of file diff --git a/assets/js/butter-dir-listing.js b/assets/js/butter-dir-listing.js new file mode 100644 index 0000000..7aeb049 --- /dev/null +++ b/assets/js/butter-dir-listing.js @@ -0,0 +1 @@ +console.log("butter-dir-listing.js loaded!"); \ No newline at end of file diff --git a/simulated-usb-butter.html b/simulated-usb-butter.html index 4c0bee7..96f3784 100644 --- a/simulated-usb-butter.html +++ b/simulated-usb-butter.html @@ -1 +1,247 @@ - \ No newline at end of file +--- +layout: empty +--- + + + + + + + + + + Index of /usb-butter/ + + + + + + +

Index of /usb-butter/

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameLast ModifiedSizeType
../ -  Directory
johns_folder/2024-May-01 15:39:05-  Directory
ocw/2024-Mar-29 20:42:52-  Directory
+
+
lighttpd/1.4.69
+ + + + + + \ No newline at end of file