diff --git a/.env.example b/.env.example index 081d0ae..aa77727 100644 --- a/.env.example +++ b/.env.example @@ -22,6 +22,8 @@ WEBHOOKS_ALLOWED_IPS='10.1.1.163' DISCOURSE_PUBLIC_URL='https://community.kosmos.org' DISCOURSE_CONNECT_SECRET='discourse_connect_ftw' +DRONECI_PUBLIC_URL='https://drone.kosmos.org' + GITEA_PUBLIC_URL='https://gitea.kosmos.org' MASTODON_PUBLIC_URL='https://kosmos.social' MEDIAWIKI_PUBLIC_URL='https://wiki.kosmos.org' diff --git a/.gitignore b/.gitignore index 3960528..ed3c95a 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ yarn-debug.log* # Ignore local dotenv config file .env +.env.development # Ignore redis dumps from sidekiq dump.rdb diff --git a/README.md b/README.md index 5a177e9..9bd72ea 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,7 @@ command: * [Tailwind CSS](https://tailwindcss.com/) * [Sass](https://sass-lang.com/documentation) * [Stimulus](https://stimulus.hotwired.dev/handbook/) +* [Tailwind Stimulus Components](https://github.com/excid3/tailwindcss-stimulus-components) ### Testing diff --git a/app/components/app_info_component.html.erb b/app/components/app_info_component.html.erb new file mode 100644 index 0000000..9f06ba0 --- /dev/null +++ b/app/components/app_info_component.html.erb @@ -0,0 +1,15 @@ +
+
+ <%= image_tag(@icon_path, class: 'h-full w-full') %> +
+
+

<%= @name %>

+

<%= @description %>

+

+ <% @links.each do |link| %> + <%= link[0] %> + <% end %> +

+
+
diff --git a/app/components/app_info_component.rb b/app/components/app_info_component.rb new file mode 100644 index 0000000..bdaf958 --- /dev/null +++ b/app/components/app_info_component.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +class AppInfoComponent < ViewComponent::Base + def initialize(name:, description:, icon_path: , icon_fill_box: false, links: []) + @name = name + @description = description + @icon_path = icon_path + @icon_container_class = icon_container_class(icon_fill_box) + @links = links + end + + def icon_container_class(icon_fill_box) + str = "flex-0 h-16 w-16 sm:h-28 sm:w-28 bg-white rounded-3xl overflow-hidden" + unless icon_fill_box + str += " p-2 border border-gray-200" + end + str + end +end diff --git a/app/components/modal_component.html.erb b/app/components/modal_component.html.erb index 81702ab..fa92a72 100644 --- a/app/components/modal_component.html.erb +++ b/app/components/modal_component.html.erb @@ -1,13 +1,26 @@ -