Skip to content

Commit 7642715

Browse files
committed
Set Community Engine hero background via Rails asset helpers
1 parent 1ab6866 commit 7642715

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

app/views/better_together/static_pages/community_engine.html.erb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
2-
<!-- Hero Section with Background Image from Unsplash -->
3-
<section class="text-center" style="background: url('https://source.unsplash.com/featured/?community') no-repeat center center; background-size: cover;">
1+
<!-- Hero Section with Background Image -->
2+
<section class="text-center" style="background: url(<%= asset_path('better_together/unsplash-community-1.jpeg') %>) no-repeat center center; background-size: cover;">
43
<div class="container py-5 my-5 text-white">
54
<div class="row py-lg-5">
65
<div class="col-lg-8 mx-auto">
@@ -61,7 +60,7 @@
6160

6261
<!-- Interspersed Hero Images and Content Sections -->
6362
<!-- Section with Background Image -->
64-
<section class="text-center" style="background: url('https://source.unsplash.com/featured/?collaboration') no-repeat center center; background-size: cover;">
63+
<section class="text-center" style="background: url(<%= asset_path('better_together/unsplash-collaborate-1.jpeg') %>) no-repeat center center; background-size: cover;">
6564
<div class="container py-5 my-5 text-white">
6665
<h2>Collaborate Effectively</h2>
6766
<p>Join projects, share ideas, and collaborate in real-time with community tools that empower.</p>
@@ -77,10 +76,9 @@
7776
</section>
7877

7978
<!-- Another Interspersed Image Section with CSS Class for Overlay -->
80-
<section class="text-center image-overlay-container" style="background: url('https://source.unsplash.com/featured/?innovation') no-repeat center center; background-size: cover;">
79+
<section class="text-center image-overlay-container" style="background: url(<%= asset_path('better_together/unsplash-community-2.jpeg') %>) no-repeat center center; background-size: cover;">
8180
<div class="container py-5 my-5 image-overlay">
8281
<h2>Innovate Together</h2>
8382
<p>Explore new possibilities and innovations sparked by community-driven initiatives.</p>
8483
</div>
8584
</section>
86-

0 commit comments

Comments
 (0)