Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrigido rota boletin para boletins, e ajuste no width da imagem das capas dos boletins #208

Merged
merged 10 commits into from
Sep 9, 2024
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule PescarteWeb.BoletinController do
defmodule PescarteWeb.BoletinsController do
use PescarteWeb, :controller

def show(conn, _params) do
Expand Down
2 changes: 1 addition & 1 deletion lib/pescarte_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ defmodule PescarteWeb.Router do
end

scope "/publicacoes" do
get "/boletin", BoletinController, :show
get "/boletins", BoletinsController, :show
end

scope "/contato" do
Expand Down
5 changes: 0 additions & 5 deletions lib/pescarte_web/templates/boletin_html.ex

This file was deleted.

5 changes: 5 additions & 0 deletions lib/pescarte_web/templates/boletins_html.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
defmodule PescarteWeb.BoletinsHTML do
use PescarteWeb, :html

embed_templates("boletins_html/*")
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<main class="journal-wrapper">
<main class="boletim-wrapper">
<div class="publications">
zoedsoupe marked this conversation as resolved.
Show resolved Hide resolved
<div class="banner-container">
<img src={~p"/images/landing/bg_fill.png"} />
Expand All @@ -7,7 +7,7 @@
<section class="publications-text">
<!-- criando os cards dos boletins -->
<div class="links-landing">
<div class="links-item">
<div class="links-item" style="width:16rem">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim%201/Boletim%201-Capa.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gMS9Cb2xldGltIDEtQ2FwYS5wbmciLCJpYXQiOjE3MjQ0MjIxNzQsImV4cCI6MjAzOTc4MjE3NH0.2_CSCLy04DPWbCIOgsDifVd4KbCqhnng4i02leUwSqM&t=2024-08-23T14%3A09%3A35.182Z" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

não recomendo fazer dessa forma... depois confundimos cada estilo e vai quebrar o layout. se for assim, recomendo criar a boletim-wrapper que foi definida logo acima e fazer que o CSS lide com o escopo correto aplicando esse estilo customizado direto na classe usada. exemplo:

// `assets/css/boletim.scss`
.boletim-wrapper {
  .links-item {
    width: 16rem;
  }
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e ai teria que importar esse arquivo no assets/css/app.scss que nem fazemos com o restante dos arquivos a partir da linha 150

<DesignSystem.link
href="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"
Expand All @@ -20,7 +20,7 @@
</.text>
</DesignSystem.link>
</div>
<div class="links-item">
<div class="links-item" style="width:16rem">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim%202/Boletim-2-Capa.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gMi9Cb2xldGltLTItQ2FwYS5wbmciLCJpYXQiOjE3MjQ0MjI0MjAsImV4cCI6MjAzOTc4MjQyMH0.APtsqe16bjhphF_HC_zF5J6Z-mtgTeXW3h7q_8dLshA&t=2024-08-23T14%3A13%3A40.707Z" />
<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"
Expand All @@ -33,7 +33,7 @@
</.text>
</DesignSystem.link>
</div>
<div class="links-item">
<div class="links-item" style="width:16rem">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim%203/Boletim-3-Capa.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gMy9Cb2xldGltLTMtQ2FwYS5wbmciLCJpYXQiOjE3MjQ0MjIzNjIsImV4cCI6MjAzOTc4MjM2Mn0.O4tfiUrXuLDuELp0uOFFvB3vlTZmRlgiQMAWb2q68Xo&t=2024-08-23T14%3A12%3A42.553Z" />
<DesignSystem.link
href="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim%203/Boletim%20Pescarte%2003.pdf?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gMy9Cb2xldGltIFBlc2NhcnRlIDAzLnBkZiIsImlhdCI6MTcyNDQyMjQ4MiwiZXhwIjoyMDM5NzgyNDgyfQ.gKD5jQ54qsS94OKQ7WKiF23mdAyn_-EKrQ1Utk0mGVM&t=2024-08-23T14%3A14%3A42.003Z"
Expand All @@ -46,7 +46,7 @@
</.text>
</DesignSystem.link>
</div>
<div class="links-item">
<div class="links-item" style="width:16rem">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim%204/Boletim-4-Capa.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gNC9Cb2xldGltLTQtQ2FwYS5wbmciLCJpYXQiOjE3MjQ0MjI1NTQsImV4cCI6MjAzOTc4MjU1NH0.U6w0ZffBcGZRBBj-p-hpcBhNOKVIq9VSUSPbhTO4skY&t=2024-08-23T14%3A15%3A54.261Z" />
<DesignSystem.link
href="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim 4/Boletim Pescarte 04.pdf?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gNC9Cb2xldGltIFBlc2NhcnRlIDA0LnBkZiIsImlhdCI6MTcyNDQyMjU3MCwiZXhwIjoyMDM5NzgyNTcwfQ.yYZUgvV91ceOrXdkJSMjv1yzVWZbbolEYvcROs58z0s&t=2024-08-23T14%3A16%3A10.830Z"
Expand All @@ -59,7 +59,7 @@
</.text>
</DesignSystem.link>
</div>
<div class="links-item">
<div class="links-item" style="width:16rem">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim%205/Boletim-5-Capa.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gNS9Cb2xldGltLTUtQ2FwYS5wbmciLCJpYXQiOjE3MjQ0MjI2MDgsImV4cCI6MjAzOTc4MjYwOH0.pKeENVheJlvDyq_zrqTlXPUkEa9CAnHbM-IJQLNuRA0&t=2024-08-23T14%3A16%3A48.300Z" />
<DesignSystem.link
href="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim%205/Boletim%20Pescarte%2005.pdf?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gNS9Cb2xldGltIFBlc2NhcnRlIDA1LnBkZiIsImlhdCI6MTcyNDQyMjYyMCwiZXhwIjoyMDM5NzgyNjIwfQ.QkA6iVdCRkdNwcprThhM8UOcNw4Ik1vwBu6LTHRPyZ8&t=2024-08-23T14%3A17%3A01.532Z"
Expand All @@ -72,7 +72,7 @@
</.text>
</DesignSystem.link>
</div>
<div class="links-item">
<div class="links-item" style="width:16rem">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim%206/Boletim-6-Capa.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gNi9Cb2xldGltLTYtQ2FwYS5wbmciLCJpYXQiOjE3MjQ0MjI2NjgsImV4cCI6MjAzOTc4MjY2OH0.zS2vsuvBNjg2fTXIcEtP-qNlIMLie7yXz82zG2TB6w4&t=2024-08-23T14%3A17%3A48.382Z" />
<DesignSystem.link
href="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim 6/Boletim Pescarte 06.pdf?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gNi9Cb2xldGltIFBlc2NhcnRlIDA2LnBkZiIsImlhdCI6MTcyNDQyMjY4MywiZXhwIjoyMDM5NzgyNjgzfQ.KmivwfLqUv7Y8c1MU2Qkob6t0__hgBUk1KAfWZBuujk&t=2024-08-23T14%3A18%3A03.580Z"
Expand All @@ -85,7 +85,7 @@
</.text>
</DesignSystem.link>
</div>
<div class="links-item">
<div class="links-item" style="width:16rem">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim%207/Boletim-7-Capa.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gNy9Cb2xldGltLTctQ2FwYS5wbmciLCJpYXQiOjE3MjQ0MjI3MzcsImV4cCI6MjAzOTc4MjczN30.nd56Npp7AZ-5o3jGf5XitVNei3bfcLUjnDaYwwVngi8&t=2024-08-23T14%3A18%3A57.750Z" />
<DesignSystem.link
href="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/publicacoes/boletins/boletim 7/Boletim Pescarte 07.pdf?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL3B1YmxpY2Fjb2VzL2JvbGV0aW5zL2JvbGV0aW0gNy9Cb2xldGltIFBlc2NhcnRlIDA3LnBkZiIsImlhdCI6MTcyNDQyMjc0OSwiZXhwIjoyMDM5NzgyNzQ5fQ.lR_WnSe4CZZfJLxKt8ynNvTysdZfbElJUyhC8Q7qrEI&t=2024-08-23T14%3A19%3A09.142Z"
Expand All @@ -98,9 +98,9 @@
</.text>
</DesignSystem.link>
</div>
<div class="links-item">
<div class="links-item" style="width:16rem">
<img src={~p"/images/noticias/TECNOLOGIA_SOCIAL/capa_noti1.JPG"} />
<DesignSystem.link href={~p"/publicacoes/boletin"} class="text-sm font-semibold">
<DesignSystem.link href={~p"/publicacoes/boletins"} class="text-sm font-semibold">
<.text size="h3" color="text-white-100">Boletim Pescarte 8</.text>
<.text size="base" color="text-white-100">
<b>Edição 8</b>: Julho a Dezembro de 2024
Expand Down
Loading