diff --git a/app/assets/images/logo.svg b/app/assets/images/logo.svg new file mode 100644 index 0000000..702eb89 --- /dev/null +++ b/app/assets/images/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/assets/images/mountains.jpg b/app/assets/images/mountains.jpg new file mode 100644 index 0000000..c9f4428 Binary files /dev/null and b/app/assets/images/mountains.jpg differ diff --git a/app/assets/images/ruby.svg b/app/assets/images/ruby.svg new file mode 100644 index 0000000..ffa2aa9 --- /dev/null +++ b/app/assets/images/ruby.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/assets/images/typesense.svg b/app/assets/images/typesense.svg new file mode 100644 index 0000000..849a665 --- /dev/null +++ b/app/assets/images/typesense.svg @@ -0,0 +1,144 @@ + diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 0000000..7e41d51 --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,33 @@ +@import 'tailwindcss'; + +@theme { + --font-*: initial; + --font-sans: colfax-web, sans-serif; + --font-mono: + ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, + Courier New, monospace; +} + +@layer base { + *, + ::after, + ::before, + ::backdrop, + ::file-selector-button { + border-color: var(--color-gray-200, currentcolor); + } +} + +.bg-mountains-fixed { + background-color: #0C2866; + background-size: 1800px auto; + background-repeat: no-repeat; + background-position: 50% 0%; + background-attachment: fixed; +} + +@media screen and (min-width: 1800px) { + .bg-mountains-fixed { + background-size: 100% auto; + } +} diff --git a/app/assets/stylesheets/application.tailwind.css b/app/assets/stylesheets/application.tailwind.css deleted file mode 100644 index f1d8c73..0000000 --- a/app/assets/stylesheets/application.tailwind.css +++ /dev/null @@ -1 +0,0 @@ -@import "tailwindcss"; diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 4db8e2b..9be5702 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,5 +1,4 @@ class ApplicationController < ActionController::Base - allow_browser versions: :modern before_action :set_current_user private diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb index e6dc2c6..45c793d 100644 --- a/app/views/admin/index.html.erb +++ b/app/views/admin/index.html.erb @@ -1,34 +1,38 @@ -
- <%= submission.user.github_username %> - (<%= submission.user.github_email %>) - · <%= time_ago_in_words(submission.created_at) %> ago - <% if submission.discarded? %> - — discarded - <% end %> -
-
- <%= submission.line1 %>
- <%= submission.line2 %>
- <%= submission.line3 %>
-
+ <%= submission.user.github_username %> + (<%= submission.user.github_email %>) + · <%= time_ago_in_words(submission.created_at) %> ago + <% if submission.discarded? %> + — discarded + <% end %> +
+
+ <%= submission.line1 %>
+ <%= submission.line2 %>
+ <%= submission.line3 %>
+
No submissions yet.
-<% end %> + <% if @submissions.empty? %> +No submissions yet.
+ <% end %> +