diff --git a/Cargo.lock b/Cargo.lock deleted file mode 100644 index 8b1af53..0000000 --- a/Cargo.lock +++ /dev/null @@ -1,307 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "core-foundation-sys" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" - -[[package]] -name = "crossbeam-deque" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" -dependencies = [ - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-utils" -version = "0.8.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" - -[[package]] -name = "either" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" - -[[package]] -name = "itoa" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" - -[[package]] -name = "libc" -version = "0.2.155" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" - -[[package]] -name = "maud" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df518b75016b4289cdddffa1b01f2122f4a49802c93191f3133f6dc2472ebcaa" -dependencies = [ - "itoa", - "maud_macros", -] - -[[package]] -name = "maud_macros" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa453238ec218da0af6b11fc5978d3b5c3a45ed97b722391a2a11f3306274e18" -dependencies = [ - "proc-macro-error", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "me" -version = "0.1.0" -dependencies = [ - "maud", - "sysinfo", -] - -[[package]] -name = "ntapi" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8a3895c6391c39d7fe7ebc444a87eb2991b2a0bc718fdabd071eec617fc68e4" -dependencies = [ - "winapi", -] - -[[package]] -name = "once_cell" -version = "1.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" - -[[package]] -name = "proc-macro-error" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" -dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" -dependencies = [ - "proc-macro2", - "quote", - "version_check", -] - -[[package]] -name = "proc-macro2" -version = "1.0.86" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "quote" -version = "1.0.36" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "rayon" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" -dependencies = [ - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" -dependencies = [ - "crossbeam-deque", - "crossbeam-utils", -] - -[[package]] -name = "syn" -version = "2.0.71" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b146dcf730474b4bcd16c311627b31ede9ab149045db4d6088b3becaea046462" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "sysinfo" -version = "0.30.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a5b4ddaee55fb2bea2bf0e5000747e5f5c0de765e5a5ff87f4cd106439f4bb3" -dependencies = [ - "cfg-if", - "core-foundation-sys", - "libc", - "ntapi", - "once_cell", - "rayon", - "windows", -] - -[[package]] -name = "unicode-ident" -version = "1.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" - -[[package]] -name = "version_check" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "windows" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be" -dependencies = [ - "windows-core", - "windows-targets", -] - -[[package]] -name = "windows-core" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" -dependencies = [ - "windows-targets", -] - -[[package]] -name = "windows-targets" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" -dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" - -[[package]] -name = "windows_i686_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" diff --git a/Cargo.toml b/Cargo.toml deleted file mode 100644 index e6991e7..0000000 --- a/Cargo.toml +++ /dev/null @@ -1,8 +0,0 @@ -[package] -name = "me" -version = "0.1.0" -edition = "2021" - -[dependencies] -maud = "0.26" -sysinfo = "0.30" diff --git a/dist/favicon.ico b/dist/favicon.ico deleted file mode 100644 index 4afef56..0000000 Binary files a/dist/favicon.ico and /dev/null differ diff --git a/dist/favicon.jpg b/dist/favicon.jpg deleted file mode 100644 index 262f8b8..0000000 Binary files a/dist/favicon.jpg and /dev/null differ diff --git a/dist/index.html b/dist/index.html deleted file mode 100644 index 9ee9555..0000000 --- a/dist/index.html +++ /dev/null @@ -1,470 +0,0 @@ -logan's site

logan's site


me

- I am a programming and philosophy - enthusiast. Once upon a time i was a - competitive debater on a few local and - state circuits. After over 10 years of - doing robotics I'm finally starting to - get the hang of it. Currently in the - process of discovering my love for - hypertext and the world wide web! -

portfolio

\ No newline at end of file diff --git a/dist/projects/fishbowl.html b/dist/projects/fishbowl.html deleted file mode 100644 index 7711e3b..0000000 --- a/dist/projects/fishbowl.html +++ /dev/null @@ -1,485 +0,0 @@ -logan's site

fishbowl

- Choose an image and click submit. The image will be sent and processed by - my server, so be mindful of what you submit. No logs or copies of the - input are preserved. -




\ No newline at end of file diff --git a/dist/res/cascadiacode.woff2 b/dist/res/cascadiacode.woff2 deleted file mode 100644 index 9039084..0000000 Binary files a/dist/res/cascadiacode.woff2 and /dev/null differ diff --git a/dist/res/grey.png b/dist/res/grey.png deleted file mode 100644 index ea738d6..0000000 Binary files a/dist/res/grey.png and /dev/null differ diff --git a/dist/res/merriweather-regular.ttf b/dist/res/merriweather-regular.ttf deleted file mode 100644 index 3fecc77..0000000 Binary files a/dist/res/merriweather-regular.ttf and /dev/null differ diff --git a/dist/res/merriweather-regular.woff2 b/dist/res/merriweather-regular.woff2 deleted file mode 100644 index 8a33d49..0000000 Binary files a/dist/res/merriweather-regular.woff2 and /dev/null differ diff --git a/dist/res/nebula.png b/dist/res/nebula.png deleted file mode 100644 index d75c42e..0000000 Binary files a/dist/res/nebula.png and /dev/null differ diff --git a/dist/res/sky.gif b/dist/res/sky.gif deleted file mode 100644 index a410b76..0000000 Binary files a/dist/res/sky.gif and /dev/null differ diff --git a/dist/res/stars.gif b/dist/res/stars.gif deleted file mode 100644 index ce13314..0000000 Binary files a/dist/res/stars.gif and /dev/null differ diff --git a/src/main.css b/head similarity index 72% rename from src/main.css rename to head index 405e6b5..735ff02 100644 --- a/src/main.css +++ b/head @@ -1,3 +1,4 @@ + @font-face { font-family: 'merriweather'; src: url(/res/merriweather-regular.woff2); @@ -14,13 +15,13 @@ body { background-repeat: repeat; padding: 20px 10px 20px; line-height: 1.75em; -} - -.container { + height: 100%; max-width: 40em; + display: flex; + margin: auto; } -.tile { +main { border-radius: 15px; padding: 15px; background-color: #ffeedd; @@ -28,46 +29,10 @@ body { width: 100% } -.third { - padding-left: 5px; - padding-right: 5px; - flex: 30%; -} - -.half { - padding-left: 15px; - padding-right: 15px; - flex: 50%; -} - -.bg { - width: 100%; - height: 100%; - display: block; - position: fixed; - top: 0; - left: 0; - z-index: -9999; -} - code { font-family: cascadia; } -.monospace { - font-family: cascadia; - align-content: center; -} - -.flex { - display: flex; - margin: auto; -} - -.text_center { - text-align: center; -} - table { margin-left: auto; margin-right: auto; @@ -94,13 +59,13 @@ a:visited { text-decoration: none; } -a:before { +a:hover:before { content: "["; font-style: normal; color: black; } -a:after { +a:hover:after { content: "]"; font-style: normal; color: black; diff --git a/index.md b/index.md new file mode 100644 index 0000000..7841eb2 --- /dev/null +++ b/index.md @@ -0,0 +1,16 @@ +# logan's site +
+## me +I am a programming and philosophy enthusiast. Once upon a time i was a +competitive debater on a few local and state circuits. After over 10 years of +doing robotics I'm finally starting to get the hang of it. Currently in the +process of discovering my love for hypertext and the world wide web! + +## portfolio +* my git server +* http web server +* html templating language +* stack based assembly language +* kinematic image processing +* n dimensional cartesian product +* stock trading algorithm diff --git a/src/fishbowl.js b/projects/fishbowl.md similarity index 54% rename from src/fishbowl.js rename to projects/fishbowl.md index 084a142..d625402 100644 --- a/src/fishbowl.js +++ b/projects/fishbowl.md @@ -1,6 +1,18 @@ +# fishbowl +Choose an image and click submit. The image will be sent and processed by my +server, so be mindful of what you submit. No logs or copies of the input are +preserved. +
+ +
+ +
+ +
+ + diff --git a/src/homepage.rs b/src/homepage.rs deleted file mode 100644 index fb2dd11..0000000 --- a/src/homepage.rs +++ /dev/null @@ -1,52 +0,0 @@ -use crate::*; - -fn prow(name: &str, desc: &str, _date: &str, link: &str) -> Markup { - html! { - tr { - td { a href=(link) { (name) } } - td { (desc) } - } - } -} - -pub fn index() -> Markup { - template(html! { - h1 {"logan's site"} - hr; - h2 {"me"} - " - I am a programming and philosophy - enthusiast. Once upon a time i was a - competitive debater on a few local and - state circuits. After over 10 years of - doing robotics I'm finally starting to - get the hang of it. Currently in the - process of discovering my love for - hypertext and the world wide web! - " - h2 {"portfolio"} - ul { - li { - a href="https://git.lgatlin.dev/logan" { "my git server" } - } - li { - a href="https://git.lgatlin.dev/logan/http-server" { "http web server" } - } - li { - a href="https://git.lgatlin.dev/logan/html-templater" { "html templating language" } - } - li { - a href="https://git.lgatlin.dev/logan/fishbowl" { "kinematic image processing" } - } - li { - a href="https://git.lgatlin.dev/logan/forte" { "stack based assembly language" } - } - li { - a href="https://git.lgatlin.dev/logan/nrange" { "n dimensional cartesian product" } - } - li { - a href="https://git.lgatlin.dev/logan/stocks" { "stock trading algorithm" } - } - } - }) -} diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index 4cfb852..0000000 --- a/src/main.rs +++ /dev/null @@ -1,52 +0,0 @@ -mod homepage; -mod projects; - -use maud::*; -use std::fs::File; -use std::io::prelude::*; - -fn head() -> Markup { - html! { - head { - meta charset="UTF-8"; - meta name="viewport" content="width=device-width, initial-scale=1.0"; - meta http-equiv="X-UA-Compatible" content="ie=edge"; - title { "logan's site" }; - style { - (PreEscaped(include_str!("normalize.css"))) - "\n" - (PreEscaped(include_str!("main.css"))) - } - } - } -} - -fn template(inner: Markup) -> Markup { - html! { - (DOCTYPE) - html { - (head()) - body { - div .container .flex { - main .tile .big { - (inner) - } - } - } - } - } -} - -fn main() -> std::io::Result<()> { - make_page("index", homepage::index())?; - make_page("projects/fishbowl", projects::fishbowl())?; - Ok(()) -} - -fn make_page(path: &str, html: Markup) -> std::io::Result<()> { - let dist_path: String = "./dist/".to_owned(); - let mut file = File::create(dist_path + path + ".html")?; - - file.write_all(html.into_string().as_bytes())?; - Ok(()) -} diff --git a/src/normalize.css b/src/normalize.css deleted file mode 100644 index 9d9f37a..0000000 --- a/src/normalize.css +++ /dev/null @@ -1,350 +0,0 @@ -/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ - -/* Document - ========================================================================== */ - -/** - * 1. Correct the line height in all browsers. - * 2. Prevent adjustments of font size after orientation changes in iOS. - */ - -html { - line-height: 1.15; /* 1 */ - -webkit-text-size-adjust: 100%; /* 2 */ -} - -/* Sections - ========================================================================== */ - -/** - * Remove the margin in all browsers. - */ - -body { - margin: 0; -} - -/** - * Render the `main` element consistently in IE. - */ - -main { - display: block; -} - -/** - * Correct the font size and margin on `h1` elements within `section` and - * `article` contexts in Chrome, Firefox, and Safari. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/* Grouping content - ========================================================================== */ - -/** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. - */ - -hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -pre { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/* Text-level semantics - ========================================================================== */ - -/** - * Remove the gray background on active links in IE 10. - */ - -a { - background-color: transparent; -} - -/** - * 1. Remove the bottom border in Chrome 57- - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ - -abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ - -b, -strong { - font-weight: bolder; -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -code, -kbd, -samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/** - * Add the correct font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` elements from affecting the line height in - * all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* Embedded content - ========================================================================== */ - -/** - * Remove the border on images inside links in IE 10. - */ - -img { - border-style: none; -} - -/* Forms - ========================================================================== */ - -/** - * 1. Change the font styles in all browsers. - * 2. Remove the margin in Firefox and Safari. - */ - -button, -input, -optgroup, -select, -textarea { - font-family: inherit; /* 1 */ - font-size: 100%; /* 1 */ - line-height: 1.15; /* 1 */ - margin: 0; /* 2 */ -} - -/** - * Show the overflow in IE. - * 1. Show the overflow in Edge. - */ - -button, -input { /* 1 */ - overflow: visible; -} - -/** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. - */ - -button, -select { /* 1 */ - text-transform: none; -} - -/** - * Correct the inability to style clickable types in iOS and Safari. - */ - -button, -[type="button"], -[type="reset"], -[type="submit"] { - -webkit-appearance: button; -} - -/** - * Remove the inner border and padding in Firefox. - */ - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ - -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * Correct the padding in Firefox. - */ - -fieldset { - padding: 0.35em 0.75em 0.625em; -} - -/** - * 1. Correct the text wrapping in Edge and IE. - * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. - */ - -legend { - box-sizing: border-box; /* 1 */ - color: inherit; /* 2 */ - display: table; /* 1 */ - max-width: 100%; /* 1 */ - padding: 0; /* 3 */ - white-space: normal; /* 1 */ -} - -/** - * Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ - -progress { - vertical-align: baseline; -} - -/** - * Remove the default vertical scrollbar in IE 10+. - */ - -textarea { - overflow: auto; -} - -/** - * 1. Add the correct box sizing in IE 10. - * 2. Remove the padding in IE 10. - */ - -[type="checkbox"], -[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Correct the cursor style of increment and decrement buttons in Chrome. - */ - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ - -[type="search"] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ -} - -/** - * Remove the inner padding in Chrome and Safari on macOS. - */ - -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ - -::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ -} - -/* Interactive - ========================================================================== */ - -/* - * Add the correct display in Edge, IE 10+, and Firefox. - */ - -details { - display: block; -} - -/* - * Add the correct display in all browsers. - */ - -summary { - display: list-item; -} - -/* Misc - ========================================================================== */ - -/** - * Add the correct display in IE 10+. - */ - -template { - display: none; -} - -/** - * Add the correct display in IE 10. - */ - -[hidden] { - display: none; -} - diff --git a/src/projects.rs b/src/projects.rs deleted file mode 100644 index f88cfb6..0000000 --- a/src/projects.rs +++ /dev/null @@ -1,26 +0,0 @@ -use crate::*; - -pub fn fishbowl() -> Markup { - template(html! { - h1 {"fishbowl"} - p { - " - Choose an image and click submit. The image will be sent and processed by - my server, so be mindful of what you submit. No logs or copies of the - input are preserved. - " - } - form #fishForm { - label for="file" {"Select an image:"} - br; - input #fishFile accept="image/*" name="image" type="file"; - br; - input value="Run Fishbowl" type="submit"; - } - br; - img #fishImage width="480" height="480"; - script { - (PreEscaped(include_str!("fishbowl.js"))) - } - }) -}