Skip to content

Commit

Permalink
Add ods page
Browse files Browse the repository at this point in the history
  • Loading branch information
josempl committed Jan 12, 2024
1 parent 0a806a4 commit c21e939
Show file tree
Hide file tree
Showing 14 changed files with 837 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,20 @@ module.exports = function (eleventyConfig) {
return filtered;
});

eleventyConfig.addCollection("sdgRelatedToProjects", function (collectionApi) {
const projectsCollection = collectionApi.getFilteredByTag("proyecto");
const sdgRelatedToProjects = new Set();
projectsCollection.forEach((el) => {
el.data.ods.forEach((sdg) => {
sdgRelatedToProjects.add(sdg);
});
});

const orderedSdgRelatedToProjects = Array.from(sdgRelatedToProjects)
.sort((a, b) => a - b);
return orderedSdgRelatedToProjects;
});

let options = {
html: true,
breaks: true,
Expand Down
5 changes: 5 additions & 0 deletions src/assets/img/featured-icon-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/assets/img/featured-icon-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/img/featured-icon-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/sdg-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/sdg-squares.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/sdg-wheel-transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ label {
--accent: #ff0000;
--white: #fbfbfb;
--black: #212121;
--blue: #19486a;
/* Font variables */
--display-font: "Montserrat Alternates", sans-serif;
--title-font: "Montserrat", sans-serif;
Expand Down Expand Up @@ -56,6 +57,7 @@ label {
--font-heading-notice: 700 1.5rem / 2rem var(--title-font);
--font-heading-xs: 700 1rem / normal var(--title-font);
--font-heading-md-regular: 400 1.75rem / normal var(--title-font);
--font-text-targets-table: 900 1.5rem / normal var(--body-font);
}

/* Breakpoints */
Expand Down Expand Up @@ -90,6 +92,7 @@ label {
--font-heading-lg: 700 1.5rem / normal var(--display-font);
--font-heading-md: 700 1.25rem / normal var(--title-font);
--font-heading-md-regular: 400 1.5rem / normal var(--title-font);
--font-table: 900 1.25rem / 1.75rem var(--body-font);
}
}
/* Mobile */
Expand Down
1 change: 1 addition & 0 deletions src/css/bundle.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
{% include "css/servicios/transparencia.css" %}
{% include "css/servicios/sostenibilidad.css" %}
{% include "css/kit-digital.css" %}
{% include "css/ods.css" %}
{% endcapture %}

{{ css | cssmin }}
Loading

0 comments on commit c21e939

Please sign in to comment.