Skip to content

Commit

Permalink
responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Sep 7, 2023
1 parent 93fee01 commit d9f43e1
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"deno.enable": true
}
}
2 changes: 1 addition & 1 deletion _includes/layout.vto
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<footer class="footer">
<div>
{{ for group of logos }}
<div>
<div class="{{ group.title }}">
<strong>{{ group.title }}</strong>
<ul>
{{ for logo of group.items }}
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
},
"lock": false,
"imports": {
"lume/": "https://deno.land/x/[email protected].4/"
"lume/": "https://deno.land/x/[email protected].5/"
}
}
Binary file added img/logos/agadic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/logos/dag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ logos:
- title: Patrocina
items:
- alt: Agadic
img: /img/logos/agadic.svg
img: /img/logos/agadic.png
- title: Colabora
items:
- alt: AC/Española
Expand Down
81 changes: 62 additions & 19 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,33 @@ html {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
justify-content: center;
gap: 4rem;
column-gap: min(5vw, 4rem);
row-gap: 2rem;
padding: 5vw;
grid-template-columns: 1fr;

.header-content {
justify-self: center;
@media (max-width: 599px) {
.logo-feed.is-square {
grid-template-columns: repeat(4, 1fr);
aspect-ratio: 4 / 1;
}
}

@media (min-width: 600px) {
grid-template-columns: 1fr 1fr;
.header-content {
justify-self: center;
}
}


& h1 {
text-transform: uppercase;
font-size: clamp(2rem, 5vw, 4rem);
letter-spacing: -0.02em;
margin-top: 0;

&::after {
content: "";
Expand Down Expand Up @@ -144,14 +157,19 @@ html {
max-width: 1200px;
margin: auto;
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 4rem;
row-gap: 2rem;

@media (min-width: 700px) {
grid-template-columns: 1fr 1fr;
}

& h2 {
text-transform: uppercase;
font-size: clamp(2rem, 5vw, 4rem);
letter-spacing: -0.02em;
grid-column: 1 / -1;
margin-bottom: 0;
}

& h3 {
Expand Down Expand Up @@ -266,28 +284,38 @@ html {

& article {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);


> img {
max-width: 100%;
}

> div {
padding: 2rem 4rem;
padding-right: 0;
padding: 2rem 0;
align-self: center;
}
}

& li:nth-child(even) article {
> img {
grid-column: 2;
@media (min-width: 900px) {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

> div {
padding: 2rem 4rem;
padding-right: 0;
}
}
> div {
grid-column: 1;
grid-row: 1;
padding-left: 0;
padding-right: 4rem;
}

@media (min-width: 900px) {
& li:nth-child(even) article {
> img {
grid-column: 2;
}
> div {
grid-column: 1;
grid-row: 1;
padding-left: 0;
padding-right: 4rem;
}
}
}
}
Expand Down Expand Up @@ -389,8 +417,11 @@ html {

> div {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
gap: min(5vw, 4rem);

@media (min-width: 550px) {
grid-template-columns: 1fr 1fr;
}

> div {
background-color: var(--green);
Expand Down Expand Up @@ -424,6 +455,11 @@ html {
> div {
display: flex;
column-gap: 4rem;
row-gap: 2rem;

@media (max-width: 900px) {
flex-wrap: wrap;
}
}
& ul {
list-style: none;
Expand All @@ -436,4 +472,11 @@ html {
& img {
height: 40px;
}

.Organiza img {
height: 50px;
}
.Patrocina img {
height: 50px;
}
}

0 comments on commit d9f43e1

Please sign in to comment.