Rouji / single_php_filehost

Simple Filehosting Page in a Single PHP File (obvious 0x0 clone)
ISC License
235 stars 35 forks source link

Markup improvements and styling addition #9

Closed sha1sum closed 2 years ago

sha1sum commented 2 years ago

This cleans some things up in the HTML markup and also adds a styles.css file for placement of styles.

Rouji commented 2 years ago

Does this really need styling? The whole point is to KISS and keep it small (and preferably in one file)

sha1sum commented 2 years ago

@Rouji if I'm understanding the purpose of this correctly, this is meant to provide an easy place for you to provide as a link for people to upload files to you temporarily? If giving this out to others, I would like to have a little bit of styling control. But if that doesn't fit with your paradigm, then that's fine.

Rouji commented 2 years ago

Kind of yes, kind of no. Glossy js-laden pastebins/file hosts with drag&drop and progress bars and other desktop-friendly whatnots exist in the hundreds. This is (at least supposed to be) a cli-first, no-nonsense, minimalistic thing. The terminal-y (lack of) styling is sort of deliberate in reflecting that. The form and app configs are only really in there because they were doable without going against the KISS-ness too much.

I'm not really a fan of the idea of having css in this by default. I'm thinking if there's an easy way to just soup the markup up a bit without changing the default behaviour, so people can slap a css file onto it if they want to, that'd be probably alright. Not entirely sure that's doable, but I'm no HTML expert. 🤔