-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update control live tests for desktop and mobile scenarios
- Loading branch information
Showing
5 changed files
with
116 additions
and
73 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
20 changes: 20 additions & 0 deletions
20
lib/live_deck_web/templates/control/_mobile_thumbnail_drawer.html.leex
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,20 @@ | ||
<div data-testid="mobile-thumbnail-view" class="menu__drawer <%= @view_attributes.menu_drawer %>"> | ||
<button phx-click="toggle_menu" class="menu__close"> | ||
close | ||
</button> | ||
<nav class="u-padded"> | ||
<ul> | ||
<%= for index <- 0..@presentation.last_index do %> | ||
<li class="thumbnail__container"> | ||
<div | ||
phx-click="set_slide_index" | ||
phx-value-index="<%= index %>" | ||
data-testid="thumbnail-<%= index %>" | ||
class="thumbnail"> | ||
<iframe src="/thumbnails/<%= index %>"></iframe> | ||
</div> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</nav> | ||
</div> |
42 changes: 42 additions & 0 deletions
42
lib/live_deck_web/templates/control/_presenter_mode.html.leex
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,42 @@ | ||
<div class="speaker__slides"> | ||
<div class="slide--current"> | ||
<h2>Current Slide</h2> | ||
<div class="thumbnail__container"> | ||
<div | ||
data-testid="active-slide-preview" | ||
class="thumbnail"> | ||
<iframe src="/thumbnails/<%= @presentation.active_index %>"></iframe> | ||
</div> | ||
</div> | ||
</div> | ||
<%= if @presentation.active_index < @presentation.last_index do %> | ||
<div class="slide--next"> | ||
<h2>Next Slide</h2> | ||
<div class="thumbnail__container"> | ||
<div | ||
data-testid="next-slide-preview" | ||
class="thumbnail"> | ||
<iframe src="/thumbnails/<%= @presentation.active_index + 1%>"></iframe> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
<div class="speaker__notes"> | ||
<p class="notes"><%= @current_slide.notes %></p> | ||
</div> | ||
<div class="speaker__thumbnails"> | ||
<div data-testid="desktop-thumbnail-view" class="thumbnail__track"> | ||
<%= for index <- 0..@presentation.last_index do %> | ||
<div class="thumbnail__container"> | ||
<div | ||
phx-click="set_slide_index" | ||
phx-value-index="<%= index %>" | ||
data-testid="thumbnail-<%= index %>" | ||
class="thumbnail"> | ||
<iframe src="/thumbnails/<%= index %>"></iframe> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> |
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