Skip to content

Commit

Permalink
tmp comment
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Mar 21, 2023
1 parent 4a76f4a commit 9e049e9
Show file tree
Hide file tree
Showing 14 changed files with 344 additions and 537 deletions.
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ GEM
mime-types-data (~> 3.2015)
mime-types-data (3.2022.0105)
mini_mime (1.1.2)
mini_portile2 (2.8.1)
minitest (5.17.0)
msgpack (1.6.0)
multi_json (1.15.0)
Expand All @@ -235,6 +236,9 @@ GEM
netrc (0.11.0)
newrelic_rpm (8.16.0)
nio4r (2.5.8)
nokogiri (1.14.2)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogiri (1.14.2-x86_64-linux)
racc (~> 1.4)
oj (3.14.2)
Expand Down Expand Up @@ -418,6 +422,7 @@ GEM
zeitwerk (2.6.7)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
Expand Down
1 change: 0 additions & 1 deletion app/assets/stylesheets/application.css.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
@import "file_uploader";
@import "register";
@import "lostpassword";
@import "flatpickr/dist/themes/light";
@import "feedback";
@import "login";
@import "components/index";
Expand Down
12 changes: 12 additions & 0 deletions app/assets/stylesheets/browse.scss
Original file line number Diff line number Diff line change
Expand Up @@ -313,3 +313,15 @@ input:checked + .slider:before {
.account-page-subscribe-button{

}


@media only screen and (max-width: 1250px) {
.browse-first-row{
width: 24vw;
margin-right: 20px;
}

.browse-second-row{
width: 68vw;
}
}
7 changes: 6 additions & 1 deletion app/components/chips_component.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
class ChipsComponent < ViewComponent::Base
def initialize(name:, value:)
def initialize(name:, value:, checked: false)
@name = name
@value = value
@checked = checked
end

def checked?
@checked
end
end
2 changes: 1 addition & 1 deletion app/components/chips_component/chips_component.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.chips-container
%div
%label{:for => "chips-#{@name}-check"}
%input{:id => "chips-#{@name}-check", :name => @name, :type => "checkbox", :value => @value}/
%input{:id => "chips-#{@name}-check", :name => @name, :type => "checkbox", :value => @value, checked: checked?}
%span
%svg.chips-check-icon{:fill => "none", :height => "8", :viewbox => "0 0 10 8", :width => "10", :xmlns => "http://www.w3.org/2000/svg"}
%path{:d => "M9.76764 0.232287C9.45824 -0.0775267 8.95582 -0.0773313 8.646 0.232287L3.59787 5.28062L1.35419 3.03696C1.04438 2.72714 0.542174 2.72714 0.23236 3.03696C-0.0774534 3.34677 -0.0774534 3.84897 0.23236 4.15879L3.03684 6.96326C3.19165 7.11807 3.39464 7.19567 3.59765 7.19567C3.80067 7.19567 4.00386 7.11827 4.15867 6.96326L9.76764 1.3541C10.0775 1.0445 10.0775 0.542081 9.76764 0.232287Z"}
Expand Down
Loading

0 comments on commit 9e049e9

Please sign in to comment.