-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add promo video content block * fix active processes cell
- Loading branch information
1 parent
0afc191
commit 1dc3ff4
Showing
8 changed files
with
108 additions
and
62 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
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,12 @@ | ||
<section id="promo-video" class="extended home-section promo-video"> | ||
<div class="row"> | ||
|
||
<video controls width="100%" style="width: 100%;max-height: 100%;" autoplay muted> | ||
|
||
<source src="<%= video_url %>" type="video/mp4" /> | ||
|
||
Download the <a href="<%= video_url %>">video</a>. | ||
</video> | ||
|
||
</div> | ||
</section> |
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,17 @@ | ||
# frozen_string_literal: true | ||
|
||
module Decidim | ||
module ContentBlocks | ||
class PromoVideoCell < Decidim::ViewModel | ||
def video_url | ||
case I18n.locale | ||
when :en | ||
# change to "en" when available | ||
"/ecod_ca.mp4" | ||
else | ||
"/ecod_ca.mp4" | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
.democracy-innovation { | ||
background-color: $capitalitat-violet; | ||
.promo-video { | ||
background-color: $cpb-violet; | ||
padding: 4rem 0; | ||
} | ||
|
||
.democracy-innovation .button { | ||
color: #ffffff; | ||
border-color: #fff; | ||
@media print, screen and (max-width: 40em) { | ||
padding: 0; | ||
} | ||
} | ||
|
||
.democracy-innovation { | ||
background-color: $capitalitat-violet; | ||
padding: 4rem 0; | ||
color: #ffffff; | ||
} | ||
|
||
.democracy-innovation .heading3 { | ||
margin-bottom: 2rem; | ||
|
||
.button { | ||
color: #ffffff; | ||
border-color: #fff; | ||
} | ||
|
||
.heading3 { | ||
margin-bottom: 2rem; | ||
} | ||
} |
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
Binary file not shown.