Skip to content

Commit

Permalink
feat: add new css to responsive template (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglastofoli authored Sep 25, 2024
1 parent 9d42b8c commit be2309c
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ footer {
@import "./aboutus.scss";
@import "./noticias.scss";
@import "./cooperativas.scss";

@import "./sedes.scss";
@import "./agenda.scss";
@import "./contact.scss";
@import "./article.scss";
Expand Down
57 changes: 57 additions & 0 deletions assets/css/sedes.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
.sedes-wrapper {
@apply flex flex-col;
gap: 5rem;

.mapa {
@apply flex justify-center;
margin-top: 5rem;
padding: 0 2.5rem;

img {
border-radius: 1.5rem;
}
}

.nossas-sedes {
@apply flex flex-col justify-center;
align-items: center;
gap: 5rem;

.nossas-sedes-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2.5rem;
padding: 0 7.19rem;

.sede-detail {
@apply flex;
gap: 0.62rem;

.sede-text {
font-size: 1rem;

h5:nth-child(1) {
font-weight: 700;
}
}
}
}
}

@media (max-width: 768px) {
.mapa {
padding: 0 1rem;
}

.nossas-sedes {
h2 {
text-align: center;
}

.nossas-sedes-container {
grid-template-columns: 1fr;
padding: 0 1rem;
}
}
}
}
6 changes: 3 additions & 3 deletions lib/pescarte_web/templates/sedes_html/show.html.heex
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<main class="equipes-wrapper">
<main class="sedes-wrapper">
<!-- MAPA -->
<div class="mapa-wrapper">
<div class="mapa">
<img src="https://rrosgcmviafnxjshljoq.supabase.co/storage/v1/object/sign/static/images/equipes/mapa.jpeg?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJzdGF0aWMvaW1hZ2VzL2VxdWlwZXMvbWFwYS5qcGVnIiwiaWF0IjoxNzI0MTU2NjYwLCJleHAiOjE3NTU2OTI2NjB9.cpDBGFmH-HhwRjZ27FUpBLZ_tsulytz7MlcngJLlyyI&t=2024-08-20T12%3A24%3A20.597Z" />
</div>
<!-- NOSSAS SEDES MUNICIPAIS -->
<div class="nossas-sedes-wrapper">
<div class="nossas-sedes">
<.text size="h2" color="text-blue-100">Nossas Sedes Municipais</.text>
<div class="nossas-sedes-container">
<div class="sede-detail">
Expand Down

0 comments on commit be2309c

Please sign in to comment.