diff --git a/app/helpers/chapters_helper.rb b/app/helpers/chapters_helper.rb index 9e2b2c80..7d455fb0 100644 --- a/app/helpers/chapters_helper.rb +++ b/app/helpers/chapters_helper.rb @@ -17,16 +17,17 @@ module ChaptersHelper ].freeze FEATURED_SPONSORS = [ - { image: 'sponsors/current/nairobits.png', link: 'https://www.nairobits.com/', alt: 'Nairobits' }, + { image: 'sponsors/current/solutech_official.svg', link: 'https://solutech.co.ke', alt: 'Solutech' }, { image: 'sponsors/current/finplus.png', link: 'https://finplusgroup.com', alt: 'Finplus Group' }, { image: 'sponsors/current/app_signal.png', link: 'https://www.appsignal.com', alt: 'App Signal' }, - { image: 'sponsors/current/friendly_rb.jpg', link: 'https://friendlyrb.com/', alt: 'FriendlyRB' }, + { image: 'sponsors/current/ruby_central.png', link: 'https://rubycentral.org/', alt: 'Ruby Central' }, + { image: 'sponsors/current/kopo_kopo.png', link: 'https://kopokopo.co.ke', alt: 'Kopo Kopo' }, - { image: 'sponsors/current/microverse.png', link: 'https://www.microverse.org/', alt: 'Microverse' }, { image: 'sponsors/current/planet_argon.png', link: 'https://www.planetargon.com', alt: 'Planet Argon' }, - { image: 'sponsors/current/ruby_central.png', link: 'https://rubycentral.org/', alt: 'Ruby Central' }, - { image: 'sponsors/current/solutech_official.svg', link: 'https://solutech.co.ke', alt: 'Solutech' }, - { image: 'sponsors/current/kca.png', link: 'https://www.kcau.ac.ke', alt: 'KCA University' } + { image: 'sponsors/current/friendly_rb.jpg', link: 'https://friendlyrb.com/', alt: 'FriendlyRB' }, + { image: 'sponsors/current/microverse.png', link: 'https://www.microverse.org/', alt: 'Microverse' }, + { image: 'sponsors/current/kca.png', link: 'https://www.kcau.ac.ke', alt: 'KCA University' }, + { image: 'sponsors/current/nairobits.png', link: 'https://www.nairobits.com/', alt: 'Nairobits' } ].freeze PREVIOUS_SPONSORS = [ diff --git a/app/views/landing/home/_featured_sponsors.html.erb b/app/views/landing/home/_featured_sponsors.html.erb index d0344cc5..f1d67f2d 100644 --- a/app/views/landing/home/_featured_sponsors.html.erb +++ b/app/views/landing/home/_featured_sponsors.html.erb @@ -1,15 +1,34 @@ + + + + + + +<%# featured_sponsors.each do |sponsor| %> +<%#= link_to sponsor[:link], target: '_blank' do %> + +<%#= image_tag sponsor[:image], alt: sponsor[:alt] %> + +<%# end %> +<%# end %> + + +
-

+

Featured Sponsors

-
+
<% featured_sponsors.each do |sponsor| %> <%= link_to sponsor[:link], target: '_blank' do %> -
- <%= image_tag sponsor[:image], alt: sponsor[:alt] %> +
+
+ <%= image_tag sponsor[:image], alt: sponsor[:alt] %> +
<% end %> <% end %>
-
+ +
\ No newline at end of file diff --git a/app/views/landing/home/_previous_sponsors.html.erb b/app/views/landing/home/_previous_sponsors.html.erb index 8cb20227..31527167 100644 --- a/app/views/landing/home/_previous_sponsors.html.erb +++ b/app/views/landing/home/_previous_sponsors.html.erb @@ -3,12 +3,14 @@ Previous Sponsors -
+
<% previous_sponsors.each do |sponsor| %> <%= link_to sponsor[:link], target: '_blank' do %> -
- <%= image_tag sponsor[:image], alt: sponsor[:alt] %> +
+
+ <%= image_tag sponsor[:image], alt: sponsor[:alt] %> +
<% end %> <% end %>