-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from JudahSan/main
Fix sponsor logo alignment (mobile)
- Loading branch information
Showing
3 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,34 @@ | ||
<!--<div class="container mx-auto px-20 bg-zinc-50">--> | ||
<!-- <h1 class="pt-16 text-4xl text-red-600 font-bold text-center">--> | ||
<!-- Featured Sponsors--> | ||
<!-- </h1>--> | ||
|
||
<!-- <div class="grid md:grid-cols-2 grid-cols-2 lg:grid-cols-4 xl:grid-cols-4 gap-2 px-20 place-content-center">--> | ||
<%# featured_sponsors.each do |sponsor| %> | ||
<%#= link_to sponsor[:link], target: '_blank' do %> | ||
<!-- <div class="items-center justify-center w-36 h-40 card place-items-center">--> | ||
<%#= image_tag sponsor[:image], alt: sponsor[:alt] %> | ||
<!-- </div>--> | ||
<%# end %> | ||
<%# end %> | ||
<!-- </div>--> | ||
<!--</div>--> | ||
|
||
<div class="container mx-auto px-20 bg-zinc-50"> | ||
<h1 class="pt-16 text-4xl text-red-600 font-bold text-center"> | ||
<h1 class="pt-16 pb-12 text-4xl text-red-600 font-bold text-center"> | ||
Featured Sponsors | ||
</h1> | ||
|
||
<div class="grid md:grid-cols-2 grid-cols-2 lg:grid-cols-4 xl:grid-cols-4 gap-2 px-20 place-content-center"> | ||
<div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-3 gap-2 lg:ml-28"> | ||
<% featured_sponsors.each do |sponsor| %> | ||
<%= link_to sponsor[:link], target: '_blank' do %> | ||
<div class="items-center justify-center w-36 h-40 card place-items-center"> | ||
<%= image_tag sponsor[:image], alt: sponsor[:alt] %> | ||
<div class="flex items-center justify-center w-full"> | ||
<div class="w-36 h-40 card"> | ||
<%= image_tag sponsor[:image], alt: sponsor[:alt] %> | ||
</div> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters