-
-
Notifications
You must be signed in to change notification settings - Fork 198
Update /sponsors page to use shared sponsors partial #1524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
matyikriszta
merged 1 commit into
staging-remove-foundation-replace-with-bootstrap
from
improvement/update-sponsors-page-to-use-sponsors-partial
May 10, 2021
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -11,7 +11,3 @@ | |
| flex-wrap: wrap; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .sponsor-header-margin { | ||
| margin-bottom: 35px; | ||
| } | ||
This file contains hidden or 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,4 +1,4 @@ | ||
| .row.align-items-center | ||
| - sponsors.each do |sponsor| | ||
| .col-4.col-md-3.col-lg-2.mt-3 | ||
| = link_to image_tag(sponsor.avatar, class: 'small-image', alt: sponsor.name), sponsor.website, title: sponsor.name, class: 'd-inline-block' | ||
| .col-4.col-md-3.col-lg-2.mt-4.d-flex.justify-content-center | ||
| = link_to image_tag(sponsor.avatar, class: 'small-image mw-100', alt: sponsor.name), sponsor.website, title: sponsor.name, class: 'd-inline-block border-0' |
This file contains hidden or 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,25 +1,20 @@ | ||
| .stripe.reverse | ||
| .row | ||
| .large-12.columns | ||
| .col.col-lg-9 | ||
| %h2 Sponsors | ||
| %p.lead | ||
| Without our sponsors running <strong>codebar</strong> would be impossible. They provide us with space, food and drinks, internet, and they also help us cover our running costs. | ||
| %p.lead | ||
| Thank you for sharing our dream of creating a more welcoming, equal and diverse tech industry. | ||
|
|
||
| %p | ||
| %p.mb-0 | ||
| If you are interested in becoming a host please do get in touch with us at #{mail_to "hello@codebar.io", "hello@codebar.io"} | ||
| ='.' | ||
|
|
||
| - ['gold', 'silver', 'bronze', 'community', 'standard'].each do |level| | ||
| - if @sponsor_levels[level] | ||
| .stripe.reverse | ||
| .row | ||
| .large-12.columns | ||
| %h3.sponsor-header-margin.text-center | ||
| .col | ||
| %h3.text-center | ||
| = sponsorship_level_title(level) | ||
| - @sponsor_levels[level].in_groups_of(6) do |grouped_sponsors| | ||
| .row.sponsor-row | ||
| - grouped_sponsors.compact.each do |sponsor| | ||
| .medium-2.small-4.columns.sponsor-image | ||
| = link_to image_tag(sponsor.avatar, class: "small-image", alt: sponsor.name), sponsor.website | ||
| = render partial: 'shared/sponsors', object: @sponsor_levels[level].compact | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice spot! If you want to take this one step further, I noticed that
app/views/chapter/show.html.hamlcould br DRYed up as well using this partial…There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gnclmorais yep, it's coming up in a future PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.