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

fix footer #226

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ footer {
@import "./pages/app/researcher/pesquisador";

// Páginas de Erros
@import "./errors/404.scss";
@import "./errors/404.scss";
35 changes: 14 additions & 21 deletions assets/css/footer.scss
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
footer {
@apply flex items-center justify-center fixed bg-white-100;
gap: 2rem;
bottom: 0;
padding: 1.5rem 13.5rem;
width: 100%;
@apply fixed bottom-0 z-10 w-full;

stroke-width: 1px;
stroke: var(--NEUTRAS-20, #CFCFCF);

p {
font-size: 0.75rem;
font-style: normal;
font-weight: 400;
line-height: 1.25rem;
}
}

@media (max-width: 768px) {
footer {
@apply absolute flex-wrap;
div {
@apply absolute flex flex-wrap items-center justify-center bg-white-100;
gap: 2rem;
padding: 1.5rem 1rem;
align-items: center;

stroke-width: 0;
box-shadow: 0px 0px 20px 2px rgba(64, 64, 64, 0.10);

p {
text-align: center;
font-size: 0.75rem;
font-style: normal;
font-weight: 400;
line-height: 1.25rem;
}
}
}

@media (max-width: 767px) {
footer {
@apply absolute;
}
}
17 changes: 10 additions & 7 deletions lib/pescarte_web/design_system.ex
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,16 @@ defmodule PescarteWeb.DesignSystem do
def footer(assigns) do
~H"""
<footer>
<img src={~p"/images/footer/logo_ibama.svg"} />
<img src={~p"/images/footer/logo_uenf.svg"} />
<img src={~p"/images/footer/logo_petrobras.svg"} />
<img src={~p"/images/footer/logo_ipead.svg"} />
<.text size="base" color="text-blue-100">
A realização do Projeto Pescarte é uma medida de mitigação exigida pelo licenciamento ambiental federal, conduzido pelo IBAMA.
</.text>
<img class="hidden md:flex" src={~p"/images/footer_logos_reduced_height.png"} />
<div class="md:hidden">
<img src={~p"/images/footer/logo_ibama.svg"} />
<img src={~p"/images/footer/logo_uenf.svg"} />
<img src={~p"/images/footer/logo_petrobras.svg"} />
<img src={~p"/images/footer/logo_ipead.svg"} />
<.text size="base" color="text-blue-100">
A realização do Projeto Pescarte é uma medida de mitigação exigida pelo licenciamento ambiental federal, conduzido pelo IBAMA.
</.text>
</div>
</footer>
"""
end
Expand Down
Loading