-
Notifications
You must be signed in to change notification settings - Fork 2
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 #517 from debtcollective/development
New member hub pages
- Loading branch information
Showing
58 changed files
with
689 additions
and
485 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
fix: true # default: false | ||
parallel: true # default: false | ||
format: progress # default: Standard::Formatter | ||
ruby_version: 2.3.3 # default: RUBY_VERSION | ||
default_ignores: false # default: true | ||
fix: true # default: false | ||
parallel: true # default: false | ||
format: progress # default: Standard::Formatter | ||
ruby_version: 2.3.3 # default: RUBY_VERSION | ||
default_ignores: false # default: true | ||
|
||
ignore: # default: [] | ||
ignore: # default: [] | ||
- 'db/schema.rb' | ||
- 'vendor/**/*' | ||
- 'app/views/memberships/edit_card.html.erb' | ||
- 'spec/**/*': | ||
- Metrics/BlockLength | ||
- Metrics/BlockLength |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
nav { | ||
.sidebar-item { | ||
color: rgb(67, 67, 67); | ||
box-shadow: 1px 1px 3px rgba(34, 34, 34, 0.2); | ||
|
||
// height: 4rem; | ||
// font-weight: 300; | ||
|
||
// font-size: 1rem; | ||
// justify-content: space-between; | ||
// padding: 1rem 1.5rem; | ||
// border-radius: 0px 4px 4px 0px; | ||
&.current-path { | ||
background: #434343; | ||
color: #ffffff; | ||
svg path { | ||
fill: #ffffff; | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.membership, | ||
.membership-edit-amount { | ||
.subscription-amount, | ||
input { | ||
background: rgba(91, 203, 181, 0.1); | ||
border: 1px solid #219653; | ||
box-sizing: border-box; | ||
border-radius: 6px; | ||
} | ||
.update-cc-link, | ||
.change-amount-link, | ||
.update-status-link, | ||
.edit-amount-button { | ||
background: #24ba9d; | ||
border: solid 1px transparent; | ||
border-radius: 8px; | ||
} | ||
} | ||
|
||
.membership h3 { | ||
// font-size: 4rem; | ||
// line-height: 1; | ||
} |
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,27 +1,27 @@ | ||
<fieldset class="mt-2 bg-white"> | ||
<legend class="block text-sm font-medium text-gray-700">Address</legend> | ||
<div class="mt-1 -space-y-px rounded-md shadow-sm"> | ||
<div> | ||
<div class="mt-1 rounded-md shadow-sm"> | ||
<div class="my-4"> | ||
<%= f.label :address_line1, class: "sr-only" %> | ||
<%= f.text_field :address_line1, class: "focus:ring-indigo-500 focus:border-indigo-500 relative block w-full rounded-none rounded-t-md bg-transparent focus:z-10 sm:text-sm border-gray-300", placeholder: "Street" %> | ||
</div> | ||
<div> | ||
<div class="my-4"> | ||
<%= f.label :address_city, class: "sr-only" %> | ||
<%= f.text_field :address_city, class: "focus:ring-indigo-500 focus:border-indigo-500 relative block w-full rounded-none bg-transparent focus:z-10 sm:text-sm border-gray-300", placeholder: "City" %> | ||
</div> | ||
<div class="flex"> | ||
<div class="w-full"> | ||
<div class="flex my-4"> | ||
<div class="w-full mr-2"> | ||
<%= f.label :address_state, class: "sr-only" %> | ||
<%= f.text_field :address_state, class: "focus:ring-indigo-500 focus:border-indigo-500 relative block w-full rounded-none bg-transparent focus:z-10 sm:text-sm border-gray-300", placeholder: "State" %> | ||
</div> | ||
<div class="w-full"> | ||
<div class="w-full ml-2"> | ||
<%= f.label :address_zip, class: "sr-only" %> | ||
<%= f.text_field :address_zip, class: "focus:ring-indigo-500 focus:border-indigo-500 relative block w-full rounded-none bg-transparent focus:z-10 sm:text-sm border-gray-300 border-l-0", placeholder: "Postal code" %> | ||
</div> | ||
</div> | ||
<div> | ||
<div class="my-4"> | ||
<%= f.label :address_country_code, class: "sr-only" %> | ||
<%= f.country_select(:address_country_code, {priority_countries: ['US', 'CA'], include_blank: "Select country"}, {class: 'focus:ring-indigo-500 focus:border-indigo-500 relative block w-full rounded-none rounded-b-md bg-transparent focus:z-10 sm:text-sm border-gray-300', id: 'address-country-code-select', required: true}) %> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</fieldset> |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module SvgHelper | ||
def show_svg(path) | ||
File.open("app/assets/icons/#{path}", "rb") do |file| | ||
raw file.read | ||
end | ||
end | ||
end |
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
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
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
Oops, something went wrong.