diff --git a/assets/css/app.scss b/assets/css/app.scss index 54e8c873..5ebf02a2 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -180,6 +180,7 @@ footer { @import "./contact.scss"; @import "./article.scss"; @import "./boletins.scss"; +@import "./noticias.scss"; // Com autenticação @import "./pages/app/researcher/profile.scss"; diff --git a/assets/css/noticias.scss b/assets/css/noticias.scss index 6579272f..e96b0367 100644 --- a/assets/css/noticias.scss +++ b/assets/css/noticias.scss @@ -1,6 +1,145 @@ -.noticias-grid { +.noticias-grid, + .noticia-wrapper { max-width: 100vw !important; div { max-width: 100vw; } -} \ No newline at end of file +} + +/* trocando gallery-carousel por land-carousel */ +.land-carousel { + margin-bottom: 70px; + + .glide1 { + max-width: 100vw; + max-height: 600px; + } + + .glide__slide { + max-width: 100%; + height: 100%; + + img { + width: 100%; + height: 100%; + max-width: 1100px; + max-height: 600px; + background-size: cover; + margin: 0 auto; + } + } + .glide__slides { + margin: 0; + padding: 0; + list-style: none; + } + + .glide__bullets { + display: flex; + justify-content: center; + margin-top: 40px; + } + + .glide__bullet { + @apply bg-black-10; + height: 10px; + width: 10px; + border-radius: 50%; + margin: 0 5px; + } + + .glide__bullet.active { + @apply bg-blue-80; + } +} + +/* pegando o get-to-know do sobre e ajustando as notícias */ +.get-to-know { + display: flex; + align-items: center; + justify-content: center; + gap: 56px; + padding: 80px 40px; + + img { + object-fit: cover; + height: 465px; + width: 50%; + max-width: 668px; + border-radius: 16px; + flex-shrink: 1; + } + .know-content { + display: flex; + flex-direction: column; + width: 50%; + gap: 25px; + } + @media (max-width: 768px) { + .get-to-know { + flex-direction: column; + align-items: center; + justify-content: center; + gap: 18px; + padding: 40px 20px; + } + + img { + width: 100vw; + } + + .know-content { + width: 100vw; + padding: 0px 20px; + margin-top: 40px; + } + } +} +/* até aqui */ + +.phases { + display: flex; + align-items: flex-start; + justify-content: center; + gap: 56px; + padding: 80px 40px; +} + +.noticia-text { + display: flex; + flex-direction: column; + align-items: center; + width: 100%; + gap: 25px; +} + + +/* Estilo para telas pequenas (móveis) */ +@media (max-width: 768px) { + .phases { + display: flex; + align-items: flex-start; + justify-content: center; + gap: 18px; + padding: 40px 20px; + } + .noticia-text { + width: 100vw; + padding: 0px 20px; + margin-top: 40px; + } +} +@media (min-width: 360px) and (max-width: 567px) { + .phases { + display: flex; + align-items: flex-start; + justify-content: center; + gap: 9px; + padding: 20px 10px; + } + .noticia-text { + width: 100vw; + padding: 0px 10px; + margin-top: 20px; + } +} diff --git a/lib/pescarte_web/templates/landing_html/show.html.heex b/lib/pescarte_web/templates/landing_html/show.html.heex index 84d7558d..da50e359 100644 --- a/lib/pescarte_web/templates/landing_html/show.html.heex +++ b/lib/pescarte_web/templates/landing_html/show.html.heex @@ -36,10 +36,13 @@