Skip to content

Commit 88570ee

Browse files
Continue changing images to self hosted
Sorry DaisyUI! I was using your images for development, not meaning to steal your bandwidth.
1 parent 6edb883 commit 88570ee

16 files changed

+27
-9
lines changed

.DS_Store

0 Bytes
Binary file not shown.

app/.DS_Store

0 Bytes
Binary file not shown.

app/assets/.DS_Store

0 Bytes
Binary file not shown.

app/assets/images/casette.webp

8.54 KB
Binary file not shown.

app/assets/images/spiderman.webp

4.47 KB
Binary file not shown.

app/views/.DS_Store

0 Bytes
Binary file not shown.

app/views/components/.DS_Store

0 Bytes
Binary file not shown.

app/views/components/examples/cards/compact_component.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module Examples
22
module Cards
33
class CompactComponent < Base
4+
include Phlex::Rails::Helpers::ImagePath
5+
46
def title
57
"Compact card (less padding for `card-body`)"
68
end
@@ -32,7 +34,7 @@ def example
3234
private
3335

3436
def src
35-
"https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
37+
image_path "green_sneaker.webp"
3638
end
3739
end
3840
end

app/views/components/examples/cards/glass_component.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module Examples
22
module Cards
33
class GlassComponent < Base
4+
include Phlex::Rails::Helpers::ImagePath
5+
46
def title
57
"Card with action on top"
68
end
@@ -32,7 +34,7 @@ def example
3234
private
3335

3436
def src
35-
"https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
37+
image_path "green_sneaker.webp"
3638
end
3739
end
3840
end

app/views/components/examples/cards/responsive_component.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module Examples
22
module Cards
33
class ResponsiveComponent < Base
4+
include Phlex::Rails::Helpers::ImagePath
5+
46
def title
57
"Responsive card (vertical on small screen, horizontal on large screen)"
68
end
@@ -32,7 +34,7 @@ def example
3234
private
3335

3436
def src
35-
"https://img.daisyui.com/images/stock/photo-1494232410401-ad00d5433cfa.webp"
37+
image_path "spiderman.webp"
3638
end
3739
end
3840
end

app/views/components/examples/cards/with_badge_component.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module Examples
22
module Cards
33
class WithBadgeComponent < Base
4+
include Phlex::Rails::Helpers::ImagePath
5+
46
def title
57
"Card with badge"
68
end
@@ -38,7 +40,7 @@ def example
3840
private
3941

4042
def src
41-
"https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
43+
image_path "green_sneaker.webp"
4244
end
4345
end
4446
end

app/views/components/examples/cards/with_bottom_image_component.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module Examples
22
module Cards
33
class WithBottomImageComponent < Base
4+
include Phlex::Rails::Helpers::ImagePath
5+
46
def title
57
"Card with bottom image"
68
end
@@ -26,7 +28,7 @@ def example
2628
private
2729

2830
def src
29-
"https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
31+
image_path "green_sneaker.webp"
3032
end
3133
end
3234
end

app/views/components/examples/cards/with_centered_content_and_paddings_component.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module Examples
22
module Cards
33
class WithCenteredContentAndPaddingsComponent < Base
4+
include Phlex::Rails::Helpers::ImagePath
5+
46
def title
57
"Card with centered content and paddings"
68
end
@@ -32,7 +34,7 @@ def example
3234
private
3335

3436
def src
35-
"https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
37+
image_path "green_sneaker.webp"
3638
end
3739
end
3840
end

app/views/components/examples/cards/with_image_on_side_component.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module Examples
22
module Cards
33
class WithImageOnSideComponent < Base
4+
include Phlex::Rails::Helpers::ImagePath
5+
46
def title
57
"Card with image on side"
68
end
@@ -30,7 +32,7 @@ def example
3032
end
3133

3234
def src
33-
"https://img.daisyui.com/images/stock/photo-1635805737707-575885ab0820.webp"
35+
image_path "casette.webp"
3436
end
3537
end
3638
end

app/views/components/examples/cards/with_image_overlay_component.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module Examples
22
module Cards
33
class WithImageOverlayComponent < Base
4+
include Phlex::Rails::Helpers::ImagePath
5+
46
def title
57
"Card with image overlay"
68
end
@@ -29,7 +31,7 @@ def example
2931
private
3032

3133
def src
32-
"https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
34+
image_path "green_sneaker.webp"
3335
end
3436
end
3537
end

app/views/landings/show_view.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module Landings
22
class ShowView < ApplicationView
3+
include Phlex::Rails::Helpers::ImagePath
4+
35
def view_template
46
div class: "w-full flex items-center justify-center mb-8" do
57
div class: "flex flex-col items-center justify-center gap-12 max-w-4xl" do
@@ -82,7 +84,7 @@ def example
8284
end
8385

8486
def src
85-
"https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp"
87+
image_path "green_sneaker.webp"
8688
end
8789
end
8890
end

0 commit comments

Comments
 (0)