Skip to content

Commit

Permalink
Use new Card color modifiers in card examples
Browse files Browse the repository at this point in the history
  • Loading branch information
davidalejandroaguilar authored Aug 27, 2024
1 parent d1bc167 commit 1d99aa0
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/PhlexyUI/phlexy_ui.git
revision: d3523dfb4529ea41298a4d77497b3ac48e0c3af0
revision: 1f08386b69d2ef5dc6752328ac2d5bb05507e5f8
branch: main
specs:
phlexy_ui (0.1.2)
Expand Down
2 changes: 1 addition & 1 deletion app/views/components/examples/cards/basic_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card class: "bg-base-100 w-96 shadow-xl" do |card|
Card :base_100, class: "w-96 shadow-xl" do |card|
figure do
img(src:, alt: "Shoes")
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card class: "bg-neutral text-neutral-content w-96" do |card|
Card :neutral, class: "w-96" do |card|
card.body class: "items-center text-center" do
card.title do
"Cookies!"
Expand Down
2 changes: 1 addition & 1 deletion app/views/components/examples/cards/compact_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card :compact, class: "bg-base-100 w-96 shadow-xl" do |card|
Card :compact, :base_100, class: "w-96 shadow-xl" do |card|
figure do
img(src:, alt: "Shoes")
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card lg: :side, class: "bg-base-100 shadow-xl" do |card|
Card :base_100, lg: :side, class: "shadow-xl" do |card|
figure do
img(src:, alt: "Album")
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card class: "bg-base-100 w-96 shadow-xl" do |card|
Card :base_100, class: "w-96 shadow-xl" do |card|
card.body do
card.actions class: "justify-end" do
Button :sm, :square do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card class: "bg-base-100 w-96 shadow-xl" do |card|
Card :base_100, class: "w-96 shadow-xl" do |card|
figure do
img(src:, alt: "Shoes")
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card class: "bg-base-100 w-96 shadow-xl" do |card|
Card :base_100, class: "w-96 shadow-xl" do |card|
card.body do
card.title do
"Shoes!"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card class: "bg-base-100 w-96 shadow-xl" do |card|
Card :base_100, class: "w-96 shadow-xl" do |card|
figure class: "px-10 pt-10" do
img(src:, alt: "Shoes", class: "rounded-xl")
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card class: "bg-primary text-primary-content w-96" do |card|
Card :primary, class: "w-96" do |card|
card.body do
card.title do
"Card title!"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card :side, class: "bg-base-100 shadow-xl" do |card|
Card :side, :base_100, class: "shadow-xl" do |card|
figure do
img(src:, alt: "Movie")
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card :image_full, class: "bg-base-100 w-96 shadow-xl" do |card|
Card :image_full, :base_100, class: "w-96 shadow-xl" do |card|
card.body do
card.title do
"Shoes!"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def title
end

def example
Card class: "bg-base-100 w-96 shadow-xl" do |card|
Card :base_100, class: "w-96 shadow-xl" do |card|
card.body do
card.title do
"Shoes!"
Expand Down

0 comments on commit 1d99aa0

Please sign in to comment.