From bfd2a98d2f0ce8e4fe2b21c9563bd8f0171e3822 Mon Sep 17 00:00:00 2001 From: Rafael Fernandes Date: Mon, 27 Nov 2017 19:37:41 -0200 Subject: [PATCH] =?UTF-8?q?Atualiza=20resumo=20do=20epis=C3=B3dio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stylesheets/components/_series.scss | 8 ++ app/views/series/show.html.erb | 126 ++++++++++-------- 2 files changed, 81 insertions(+), 53 deletions(-) diff --git a/app/assets/stylesheets/components/_series.scss b/app/assets/stylesheets/components/_series.scss index 6037d18..eb4a94c 100644 --- a/app/assets/stylesheets/components/_series.scss +++ b/app/assets/stylesheets/components/_series.scss @@ -55,4 +55,12 @@ .episode-info { background-color: $color-white; + + .title { + font-size: 18px; + } + + .title, .subtitle { + color: rgba(51,51,51,0.75); + } } \ No newline at end of file diff --git a/app/views/series/show.html.erb b/app/views/series/show.html.erb index 1af5ae4..1188a6f 100644 --- a/app/views/series/show.html.erb +++ b/app/views/series/show.html.erb @@ -1,68 +1,88 @@ -
-
-
-
-
acompanhamento da série
-
+
+
+
+
+
+
acompanhamento da série
+
-
+
-
-
- <%= link_to "voltar à minhas séries", my_series_path, class: "btn btn-info btn-block" %> +
+
+ <%= link_to "voltar à minhas séries", my_series_path, class: "btn btn-info btn-block" %> +
-
-
-
- <%= image_tag @serie.image_path, width: "100%", height: "auto" %> -
- S0<%= @serie.seasons.first.number %>E0<%= @serie.seasons.first.episodes.first.number %> -
-
-
-
<%= @serie.title %>
-
Próximo episódio: hoje
-

Seu progresso:

-
-
+
+
+ <%= image_tag @serie.image_path, width: "100%", height: "auto" %> +
+ S0<%= @serie.seasons.first.number %>E0<%= @serie.seasons.first.episodes.first.number %> +
+
+
<%= @serie.title %>
+
Próximo episódio: hoje
+

Seu progresso:

+
+
+
-

Gênero

-

Drama, suspense

+

Gênero

+

Drama, suspense

-
-
-
No ar em
-

Canal

-
-
-
Duração
-

45 min

-
-
-
Status
-

Em exibição

+
+
+
No ar em
+

Canal

+
+
+
Duração
+

45 min

+
+
+
Status
+

Em exibição

+
-
- - <% if @exists %> - <%= link_to add_or_remove_serie_path(@serie), class: "mt-4 btn btn-outline-danger" do %> - remover da minha lista - <%= fa_icon "times" %> - <% end %> - <% else %> - <%= link_to add_or_remove_serie_path(@serie), class: "mt-4 btn btn-outline-success" do %> - adicionar a minha lista - <%= fa_icon "check-square" %> + + <% if @exists %> + <%= link_to add_or_remove_serie_path(@serie), class: "mt-4 btn btn-outline-danger" do %> + remover da minha lista + <%= fa_icon "times" %> + <% end %> + <% else %> + <%= link_to add_or_remove_serie_path(@serie), class: "mt-4 btn btn-outline-success" do %> + adicionar a minha lista + <%= fa_icon "check-square" %> + <% end %> <% end %> - <% end %> +
+
- +
+
+
Nome
+ <%= @serie.seasons.first.episodes.first.name %> +
+
+
Data de Lançamento
+ <%= @serie.seasons.first.episodes.first.release_date.strftime('%d/%m/%y') %> +
+
+
Resumo
+ <%= @serie.seasons.first.episodes.first.summary %> +
+
+
-
\ No newline at end of file +
+