From 08ef8dea7b1fcaab68b845e3b2463ffb3313055a Mon Sep 17 00:00:00 2001 From: Adrien POLY Date: Sun, 27 Aug 2023 13:03:28 +0200 Subject: [PATCH] fix responsive footer --- .../images/icons/heroicons/solid/heart.svg | 2 +- app/views/shared/_footer.html.erb | 37 +++++++++---------- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/app/assets/images/icons/heroicons/solid/heart.svg b/app/assets/images/icons/heroicons/solid/heart.svg index d9560252..adf55ff2 100644 --- a/app/assets/images/icons/heroicons/solid/heart.svg +++ b/app/assets/images/icons/heroicons/solid/heart.svg @@ -1,3 +1,3 @@ - + diff --git a/app/views/shared/_footer.html.erb b/app/views/shared/_footer.html.erb index de2ad2ea..7b1fb249 100644 --- a/app/views/shared/_footer.html.erb +++ b/app/views/shared/_footer.html.erb @@ -1,23 +1,22 @@
-
-
-
- <%= link_to "Status", "https://status.rubyvideo.dev/", target: "_blank", class: "link" %> -
-
- <%= link_to "Open analytics", analytics_dashboards_path, class: "link" %> -
-
- <%= link_to "Uses", uses_path, class: "link" %> -
-
-
- Made with - <%= heroicon :heart, variant: :solid, size: :sm, class: "text-brand" %> - for the ruby community by - <%= link_to "@adrienpoly", "https://twitter.com/adrienpoly", target: "_blank", class: "link" %> - and wonderful - <%= link_to "contributors", "https://github.com/adrienpoly/rubyvideo/graphs/contributors", target: "_blank", class: "link" %> +
+
+ <%= link_to "Status", "https://status.rubyvideo.dev/", target: "_blank", class: "link" %> + <%= link_to "Open analytics", analytics_dashboards_path, class: "link" %> + <%= link_to "Uses", uses_path, class: "link" %>
+

+ <% output = [] + output << "Made with" + output << heroicon(:heart, variant: :solid, size: :sm, class: "text-brand inline") + output << "for the Ruby community by" + output << link_to("@adrienpoly", "https://twitter.com/adrienpoly", target: "_blank", class: "link") + output << "and wonderful" + output << link_to("contributors", "https://github.com/adrienpoly/rubyvideo/graphs/contributors", target: "_blank", class: "link") + output << "using an" + output << link_to("edge stack.", uses_path, class: "link") + %> + <%= raw(output.join(" ")) %> +