Add recommended apps for Chat/XMPP
continuous-integration/drone/push Build is passing

This commit is contained in:
Râu Cao
2023-08-08 18:16:13 +02:00
parent 138f13c1a0
commit e4242333d9
10 changed files with 290 additions and 21 deletions
+19
View File
@@ -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