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
3 changes: 2 additions & 1 deletion assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ footer {

@import "./agenda.scss";
@import "./contact.scss";
@import "./boletins.scss";

// Com autenticação
@import "./pages/app/researcher/profile.scss";
Expand All @@ -185,4 +186,4 @@ footer {
@import "./pages/app/researcher/pesquisador";

// Páginas de Erros
@import "./errors/404.scss";
@import "./errors/404.scss";
5 changes: 5 additions & 0 deletions assets/css/boletins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.boletim-wrapper {
.links-item {
width: 15.5rem;
}
}
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 Down Expand Up @@ -99,8 +99,8 @@
</DesignSystem.link>
</div>
<div class="links-item">
<img src={~p"/images/noticias/TECNOLOGIA_SOCIAL/capa_noti1.JPG"} />
<DesignSystem.link href={~p"/publicacoes/boletin"} class="text-sm font-semibold">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/noticias/tecnologia social/capa.JPG?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL25vdGljaWFzL3RlY25vbG9naWEgc29jaWFsL2NhcGEuSlBHIiwiaWF0IjoxNzI0NDE4NDQzLCJleHAiOjIwMzk3Nzg0NDN9.i6DpnsFFdRpOuEy5Kqyu0h_S7ziJt1p1qtmD94YkB6k&t=2024-08-23T13%3A07%3A23.299Z" />
<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
2 changes: 1 addition & 1 deletion lib/pescarte_web/templates/journal_html/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="links-landing">
<div class="links-item">
<img src={~p"/images/journal/boletin/DSC05126.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">Boletins Pescarte</.text>
<.button style="primary">
Saiba mais <Lucideicons.arrow_right class="text-white-100" />
Expand Down
Loading