Skip to content

Commit

Permalink
Feat/livros (#209)
Browse files Browse the repository at this point in the history
* extract common tasks aliases

* criando pagina dos livros

* criando pagina dos livros

* livro 4 adicionado

* Delete package.json

* Delete package-lock.json

---------

Co-authored-by: Zoey de Souza Pessanha <[email protected]>
  • Loading branch information
sahudy and zoedsoupe authored Sep 9, 2024
1 parent 6f92986 commit dafb52a
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 4 deletions.
8 changes: 8 additions & 0 deletions lib/pescarte_web/controllers/livros_controller.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
defmodule PescarteWeb.LivrosController do
use PescarteWeb, :controller

def show(conn, _params) do
current_path = conn.request_path
render(conn, :show, current_path: current_path, error_message: nil)
end
end
1 change: 1 addition & 0 deletions lib/pescarte_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ defmodule PescarteWeb.Router do
end

scope "/publicacoes" do
get "/livros", LivrosController, :show
get "/boletins", BoletinsController, :show
end

Expand Down
5 changes: 1 addition & 4 deletions lib/pescarte_web/templates/journal_html/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
</div>
<div class="links-item">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim%201/Boletim%20Pescarte%2001.pdf?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gMS9Cb2xldGltIFBlc2NhcnRlIDAxLnBkZiIsImlhdCI6MTcyNDQyMjE5MywiZXhwIjoyMDM5NzgyMTkzfQ._2dqfBlcNb_fkiK8UyMr6Rx54SdevkaOlEUMdFL9oeY&t=2024-08-23T14%3A09%3A53.831Z" />
<DesignSystem.link
href="https://drive.google.com/file/d/1yQ_MaeVhiSMeP1-GR9DR2D4PeqAUaJfV/view?usp=drive_link"
class="text-sm font-semibold"
>
<DesignSystem.link href={~p"/publicacoes/livros"} class="text-sm font-semibold">
<.text size="h3" color="text-white-100">Livros</.text>
<.button style="primary">
Saiba mais <Lucideicons.arrow_right class="text-white-100" />
Expand Down
5 changes: 5 additions & 0 deletions lib/pescarte_web/templates/livros_html.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
defmodule PescarteWeb.LivrosHTML do
use PescarteWeb, :html

embed_templates("livros_html/*")
end
55 changes: 55 additions & 0 deletions lib/pescarte_web/templates/livros_html/show.html.heex
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<main class="book-wrapper">
<div class="publications">
<div class="banner-container">
<img src={~p"/images/landing/bg_fill.png"} />
<h1 class="centered-text">Livros do PEA Pescarte</h1>
</div>
<section class="publications-text">
<!-- criando os cards dos livros -->
<div class="links-landing">
<div class="links-item" style="width: 16rem">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/livros/livro1_capa.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2xpdnJvcy9saXZybzFfY2FwYS5wbmciLCJpYXQiOjE3MjUzODQ1NDIsImV4cCI6MjA0MDc0NDU0Mn0.Kq788YF3Rsd0TwBCZ8kxDZEV3eTZ8IQ7BlGmUgJ1rZk&t=2024-09-03T17%3A29%3A02.533Z" />
<DesignSystem.link
href="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/livros/Livro-1-eBook.pdf?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2xpdnJvcy9MaXZyby0xLWVCb29rLnBkZiIsImlhdCI6MTcyNTM4NDQ4MSwiZXhwIjoyMDQwNzQ0NDgxfQ.dKC0IaO9-WzjH8FTcLTqst0WsVybS2LHcVomDjsmguU&t=2024-09-03T17%3A28%3A02.492Z"
class="text-sm font-semibold"
target-blank
>
<.text size="h3" color="text-white-100">Livro Pescarte 1</.text>
</DesignSystem.link>
</div>
<div class="links-item" style="width: 16rem">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/livros/livro2_capa.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2xpdnJvcy9saXZybzJfY2FwYS5wbmciLCJpYXQiOjE3MjUzODQ1NjEsImV4cCI6MjA0MDc0NDU2MX0.U6ClO169WPPLv9ZrrrwdUNTP6dGSW0IL5KQdbwzkfgM&t=2024-09-03T17%3A29%3A21.965Z" />
<DesignSystem.link
href="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim%202/Boletim%20Pescarte%2002.pdf?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gMi9Cb2xldGltIFBlc2NhcnRlIDAyLnBkZiIsImlhdCI6MTcyNDQyMjM5NywiZXhwIjoyMDM5NzgyMzk3fQ.9D1fAdjMSm5eSf707SP8DjRCDi_nFmtoKzctpAyKZd8&t=2024-08-23T14%3A13%3A17.771Z"
class="text-sm font-semibold"
target-blank
>
<.text size="h3" color="text-white-100">Livro Pescarte 2</.text>
</DesignSystem.link>
</div>
<div class="links-item" style="width: 16rem">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/livros/livro3_capa.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2xpdnJvcy9saXZybzNfY2FwYS5wbmciLCJpYXQiOjE3MjUzODQ1NzksImV4cCI6MjA0MDc0NDU3OX0.KQq3jvtCbA3FebhWspy1I9OG6khjLeGLNdadvSf7udM&t=2024-09-03T17%3A29%3A39.188Z" />
<DesignSystem.link
href="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/livros/Livro-3-eBook.pdf?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2xpdnJvcy9MaXZyby0zLWVCb29rLnBkZiIsImlhdCI6MTcyNTM4NDUyNCwiZXhwIjoyMDQwNzQ0NTI0fQ.K-y0xz8VHAqRSCdr62RKpGFYdeu5e5RSVbYJDhN20jE&t=2024-09-03T17%3A28%3A44.852Z"
class="text-sm font-semibold"
target-blank
>
<.text size="h3" color="text-white-100">Livro Pescarte 3</.text>
</DesignSystem.link>
</div>
<div class="links-item" style="width: 16rem">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/livros/livro4_capa.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2xpdnJvcy9saXZybzRfY2FwYS5wbmciLCJpYXQiOjE3MjU3NTg2NjgsImV4cCI6MjA0MTExODY2OH0.a1IBvYpIUKWUjnyhPWRoaAyotcSHnHPn8XqHFqgRDjY&t=2024-09-08T01%3A24%3A28.346Z" />
<DesignSystem.link
href="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/livros/Livro-4-eBook.pdf?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2xpdnJvcy9MaXZyby00LWVCb29rLnBkZiIsImlhdCI6MTcyNTc2NDIzNCwiZXhwIjoyMDQxMTI0MjM0fQ.TNyd3J5ClL5NI9iUARwTllK_PevXU1GfJt_X2tD42iY&t=2024-09-08T02%3A57%3A14.612Z"
class="text-sm font-semibold"
target-blank
>
<.text size="h3" color="text-white-100">Livro Pescarte 4</.text>
</DesignSystem.link>
</div>
</div>
</section>
</div>
<!-- ONDE NOS ENCONTRAR -->
<PescarteWeb.DesignSystem.GetInTouch.render />
</main>

0 comments on commit dafb52a

Please sign in to comment.