From 0c1e2b74cf8ade0f8c439c68fa6485c53d2c118a Mon Sep 17 00:00:00 2001 From: tilde services Date: Tue, 17 Jul 2018 19:16:37 -0400 Subject: [PATCH] tildeverse custom --- .gitignore | 11 -- app/assets/stylesheets/local/tildeverse.css | 149 ++++++++++++++++++++ app/views/home/about.html.erb | 5 + app/views/home/chat.html.erb | 5 + app/views/home/privacy.html.erb | 5 + config/initializers/production.rb | 11 ++ 6 files changed, 175 insertions(+), 11 deletions(-) create mode 100644 app/assets/stylesheets/local/tildeverse.css create mode 100644 app/views/home/about.html.erb create mode 100644 app/views/home/chat.html.erb create mode 100644 app/views/home/privacy.html.erb create mode 100644 config/initializers/production.rb diff --git a/.gitignore b/.gitignore index a531473..f7efe37 100644 --- a/.gitignore +++ b/.gitignore @@ -25,19 +25,8 @@ yarn-error.log yarn.lock .byebug* -# templates to be created per-site -app/views/home/privacy.* -app/views/home/about.* -app/views/home/chat.* -app/views/home/404.* -app/views/layouts/_footer.* -app/assets/stylesheets/local/* -public/favicon.ico -public/apple-touch-icon* - # files added in production lib/tasks/deploy.rake -config/initializers/production.rb config/database.yml config/initializers/secret_token.rb config/*.sphinx.conf diff --git a/app/assets/stylesheets/local/tildeverse.css b/app/assets/stylesheets/local/tildeverse.css new file mode 100644 index 0000000..eec5d00 --- /dev/null +++ b/app/assets/stylesheets/local/tildeverse.css @@ -0,0 +1,149 @@ +/* general */ + +@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,400i'); + +body, textarea, input, button { + font-family: 'IBM Plex Mono', monospace; + /* font-size: 14pt; */ + color: #21823B; +} + +body { + background-color: #1c1c1c; +} + +a { + color: #21823B; +} + +li.story div.details span.link a:visited { + color: #2BB04E; +} + + +/* forms */ + +input, +button, +select, +textarea { + color: #21823B; + background-color: #111111; + padding: 3px 5px; +} +input[type="text"], +input[type="search"], +input[type="password"], +input[type="email"], +input[type="number"], +textarea { + border: 1px solid #ccc; +} +select { + border: 1px solid #ccc; +} +input:focus, +textarea:focus { + border-color: #888; + color: #21823B; + outline: 0; +} +textarea:disabled { + background-color: #000; +} + + +input[type="submit"]:focus, +button:focus { + border-color: #888; + outline: 1px solid #888; +} + +button, +input[type="button"], +input[type="reset"], +input[type="submit"], +div.select2-choices, +a.button { + background-color: #111111; + color: #21823B; +} +button:hover, +input[type="button"]:hover, +input[type="reset"]:hover, +input[type="submit"]:hover { + color: #21823B; + background-color: #111111; +} + +select:focus { + color: #21823B; +} + +input:disabled, +button:disabled { + background-color: #222222; + color: #1C532A; +} + +/* select2 deuglification */ + +.select2-container-multi.select2-container-active .select2-choices { + border: 1px solid rgba(160,160,160,.8); +} +.select2-container .select2-results .select2-highlighted { + background: red; + color: #fff; +} + +.select2-container-multi .select2-choices { + border-color: #ccc; +} + +.select2-dropdown-open .select2-choice { + border: 1px solid #aaa; +} + +.select2-container .select2-results li em { + color: #aaa; +} + +.select2-container, +.select2-container-multi, +.select2-choices, +.select2-search-field, +.select2-container-multi .select2-choices { + background-color: #111111; +} + +/* data tables */ + +table.data th { + background-color: #111111; +} + +table.data.zebra tr:nth-child(even) td { + background-color: #222222; +} +table.data.zebra tr:nth-child(odd) td { + background-color: #292929; +} + +#header a.cur_url { + color: #999; +} + +a.tag { + background-color: #666; + border: 1px solid #d5d458; + color: #000; +} + +span.hat span.crown { + color: #000; +} + +table, +div.markdown_help { + background-color: #333; +} diff --git a/app/views/home/about.html.erb b/app/views/home/about.html.erb new file mode 100644 index 0000000..0d6e85a --- /dev/null +++ b/app/views/home/about.html.erb @@ -0,0 +1,5 @@ +
+
about
+

this is a link aggregator for the tildeverse.

+
+ diff --git a/app/views/home/chat.html.erb b/app/views/home/chat.html.erb new file mode 100644 index 0000000..9fc91a5 --- /dev/null +++ b/app/views/home/chat.html.erb @@ -0,0 +1,5 @@ +
+
chat
+ tildeverse irc network here
+ webchat here +
diff --git a/app/views/home/privacy.html.erb b/app/views/home/privacy.html.erb new file mode 100644 index 0000000..b3f44b9 --- /dev/null +++ b/app/views/home/privacy.html.erb @@ -0,0 +1,5 @@ +
+
privacy
+

this is the internet. you have no privacy.

+
+ diff --git a/config/initializers/production.rb b/config/initializers/production.rb new file mode 100644 index 0000000..afcf786 --- /dev/null +++ b/config/initializers/production.rb @@ -0,0 +1,11 @@ +class << Rails.application + def domain + "links.tildeverse.org" + end + + def name + "tilde news" + end +end + +Rails.application.routes.default_url_options[:host] = Rails.application.domain \ No newline at end of file