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

Feat/responsive landing/cooperativas #196

Merged
merged 20 commits into from
Sep 18, 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
16 changes: 8 additions & 8 deletions assets/css/aboutus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
}

.lighter-banner{
.lighter-banner {
display: flex;
flex-direction: column;
text-align: center;
Expand All @@ -18,10 +18,10 @@
background-blend-mode: multiply;

.banner-img {
z-index: -1;
position: absolute;
width: 100vw;
height: 260px;
z-index: -1;
position: absolute;
width: 100vw;
height: 260px;
}

}
Expand Down Expand Up @@ -64,7 +64,7 @@
}

.know-content {
width: 100vw;
width: 100vw;
padding: 0px 20px;
margin-top: 40px;
}
Expand Down Expand Up @@ -221,7 +221,7 @@
}

img {
order: 2;
order: 2;
width: 100%;
}

Expand Down Expand Up @@ -251,4 +251,4 @@
height: 100%;
z-index: -1;
}
}
}
1 change: 1 addition & 0 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ footer {
// Sem autenticação
@import "./pages/login.scss";
@import "./aboutus.scss";
@import "./cooperativas.scss";

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

.cooperativas-container {
@apply flex flex-col;
gap: 5rem;
margin-bottom: 5rem;

.header {
@apply relative;

.header-content {
img {
width: 100%;
height: auto;
}

h2 {
@apply absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
}
}

.block {
@apply flex flex-row;
gap: 3.5rem;
margin: 0 2.5rem 0 2.5rem;

.block-content {
@apply flex flex-col;
gap: 2.5rem;
width: 50%;
}

img {
width: 50%;
}
}
}
}

@media (max-width: 768px) {
.cooperativas-wrapper {
.cooperativas-container {
@apply flex flex-wrap;
gap: 4rem;

.header {
height: 16.25rem;

.header-content {
img {
height: 16.25rem;
object-fit: none;
}
}
}

.block {
@apply flex-wrap;
gap: 4rem;
margin: 0 1rem 0 1rem;

.block-content {
width: 100%;

h1 {
font-size: 2rem;
}
}

img {
width: 100%;
border-radius: 0.5rem;
}

&:nth-child(3) {
@apply flex flex-col-reverse;
}
}
}
}
}
64 changes: 62 additions & 2 deletions assets/css/get_in_touch.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
.onde-nos-encontrar-wrapper {
@apply flex bg-orange-100;
grid-area: onde-nos-encontrar;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
gap: 5rem;
padding: 5rem;
padding: 5rem 0 5rem 0;
width: 100vw;

.redes-sociais-wrapper {
@apply flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;

.redes-sociais-links-wrapper {
@apply flex;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
padding-top: 2.5rem;

.redes-sociais-link {
Expand Down Expand Up @@ -50,6 +56,7 @@
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
gap: 2.5rem;

.contact-btn {
Expand All @@ -74,3 +81,56 @@
}
}
}

@media (max-width: 767px) {
.onde-nos-encontrar-wrapper {
.redes-sociais-wrapper {
margin: 1rem;

.redes-sociais-links-wrapper {
@apply flex;

.redes-sociais-link {
padding: 0;

.redes-sociais-icon {
width: 60px;
height: 60px;
}
}
}
}
}
}

@media (min-width: 768px) {
.onde-nos-encontrar-wrapper {
.redes-sociais-wrapper {
.redes-sociais-links-wrapper {
/* 2 colunas em telas médias */
@apply grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: auto;
column-gap: 80px;
min-height: auto;
margin-top: 2.5rem;
}
}
}
}

@media (min-width: 1024px) {
.onde-nos-encontrar-wrapper {
.redes-sociais-wrapper {
.redes-sociais-links-wrapper {
/* 3 colunas em telas grandes */
@apply grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: auto;
column-gap: 80px;
min-height: auto;
margin-top: 2.5rem;
}
}
}
}
Loading
Loading