From 6f92986645051f44fe661c5cf366afb27cd0685d Mon Sep 17 00:00:00 2001 From: Sahudy Montenegro Date: Mon, 9 Sep 2024 12:31:12 -0300 Subject: [PATCH] corrigido rota boletin para boletins, e ajuste no width da imagem das capas dos boletins (#208) * extract common tasks aliases * rota boletin para boletins, ajuste no width da imagem das capas dos boletins * tirando node_modules * Delete package.json * Delete package-lock.json * correcoes no estilo dos boletins e errinhos --------- Co-authored-by: Zoey de Souza Pessanha --- assets/css/app.scss | 3 ++- assets/css/boletins.scss | 5 +++++ .../{boletin_controller.ex => boletins_controller.ex} | 2 +- lib/pescarte_web/router.ex | 2 +- lib/pescarte_web/templates/boletin_html.ex | 5 ----- lib/pescarte_web/templates/boletins_html.ex | 5 +++++ .../{boletin_html => boletins_html}/show.html.heex | 6 +++--- lib/pescarte_web/templates/journal_html/show.html.heex | 2 +- 8 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 assets/css/boletins.scss rename lib/pescarte_web/controllers/{boletin_controller.ex => boletins_controller.ex} (80%) delete mode 100644 lib/pescarte_web/templates/boletin_html.ex create mode 100644 lib/pescarte_web/templates/boletins_html.ex rename lib/pescarte_web/templates/{boletin_html => boletins_html}/show.html.heex (94%) diff --git a/assets/css/app.scss b/assets/css/app.scss index d2e7b7ee..a46181bf 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -176,6 +176,7 @@ footer { @import "./agenda.scss"; @import "./contact.scss"; +@import "./boletins.scss"; // Com autenticação @import "./pages/app/researcher/profile.scss"; @@ -185,4 +186,4 @@ footer { @import "./pages/app/researcher/pesquisador"; // Páginas de Erros -@import "./errors/404.scss"; \ No newline at end of file +@import "./errors/404.scss"; diff --git a/assets/css/boletins.scss b/assets/css/boletins.scss new file mode 100644 index 00000000..a8ce45d8 --- /dev/null +++ b/assets/css/boletins.scss @@ -0,0 +1,5 @@ +.boletim-wrapper { + .links-item { + width: 15.5rem; + } +} diff --git a/lib/pescarte_web/controllers/boletin_controller.ex b/lib/pescarte_web/controllers/boletins_controller.ex similarity index 80% rename from lib/pescarte_web/controllers/boletin_controller.ex rename to lib/pescarte_web/controllers/boletins_controller.ex index ae9e3138..14c48f2f 100644 --- a/lib/pescarte_web/controllers/boletin_controller.ex +++ b/lib/pescarte_web/controllers/boletins_controller.ex @@ -1,4 +1,4 @@ -defmodule PescarteWeb.BoletinController do +defmodule PescarteWeb.BoletinsController do use PescarteWeb, :controller def show(conn, _params) do diff --git a/lib/pescarte_web/router.ex b/lib/pescarte_web/router.ex index ca17647e..a04fe3b4 100644 --- a/lib/pescarte_web/router.ex +++ b/lib/pescarte_web/router.ex @@ -57,7 +57,7 @@ defmodule PescarteWeb.Router do end scope "/publicacoes" do - get "/boletin", BoletinController, :show + get "/boletins", BoletinsController, :show end scope "/contato" do diff --git a/lib/pescarte_web/templates/boletin_html.ex b/lib/pescarte_web/templates/boletin_html.ex deleted file mode 100644 index 09badf5c..00000000 --- a/lib/pescarte_web/templates/boletin_html.ex +++ /dev/null @@ -1,5 +0,0 @@ -defmodule PescarteWeb.BoletinHTML do - use PescarteWeb, :html - - embed_templates("boletin_html/*") -end diff --git a/lib/pescarte_web/templates/boletins_html.ex b/lib/pescarte_web/templates/boletins_html.ex new file mode 100644 index 00000000..25c1d736 --- /dev/null +++ b/lib/pescarte_web/templates/boletins_html.ex @@ -0,0 +1,5 @@ +defmodule PescarteWeb.BoletinsHTML do + use PescarteWeb, :html + + embed_templates("boletins_html/*") +end diff --git a/lib/pescarte_web/templates/boletin_html/show.html.heex b/lib/pescarte_web/templates/boletins_html/show.html.heex similarity index 94% rename from lib/pescarte_web/templates/boletin_html/show.html.heex rename to lib/pescarte_web/templates/boletins_html/show.html.heex index d6ad53ff..a54e4848 100644 --- a/lib/pescarte_web/templates/boletin_html/show.html.heex +++ b/lib/pescarte_web/templates/boletins_html/show.html.heex @@ -1,4 +1,4 @@ -
+