diff --git a/.eleventy.js b/.eleventy.js index eaff208..4fab91b 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -71,6 +71,11 @@ module.exports = function(config) { return [...collection.getFilteredByGlob("./src/members/*.md")] .slice(0, site.maxProfilePreview); }); + config.addCollection('customers', collection => { + return [...collection.getFilteredByGlob("./src/customers/*.md")] + .reverse() + .slice(0, site.maxSponsorPerPage); + }); // Plugins config.addPlugin(rssPlugin); diff --git a/src/_data/site.json b/src/_data/site.json index 494347a..47ddd94 100644 --- a/src/_data/site.json +++ b/src/_data/site.json @@ -20,5 +20,6 @@ "maxPostsPerPage": 5, "maxNewsPerPage": 4, "maxProfilePreview": 3, + "maxSponsorPerPage": 4, "faviconPath": "/images/favicon.png" } diff --git a/src/_includes/layouts/home.njk b/src/_includes/layouts/home.njk index d66d47c..14e556d 100644 --- a/src/_includes/layouts/home.njk +++ b/src/_includes/layouts/home.njk @@ -3,6 +3,7 @@ {# Set lists content #} {% set newsListHeading = newsHeading %} {% set newsListItems = collections.newsFeed %} +{% set customersListItems = collections.customers %} {% block content %}
diff --git a/src/_includes/partials/components/sponsor.njk b/src/_includes/partials/components/sponsor.njk index 937b6d4..b406795 100644 --- a/src/_includes/partials/components/sponsor.njk +++ b/src/_includes/partials/components/sponsor.njk @@ -1,3 +1,16 @@ -
-
+ diff --git a/src/customers/lewebenplus.md b/src/customers/lewebenplus.md new file mode 100644 index 0000000..100664f --- /dev/null +++ b/src/customers/lewebenplus.md @@ -0,0 +1,5 @@ +--- +name: 'Le Web en plus' +thumbnail: '/images/customers/logo-lewebenplus.png' +url: 'https://www.lewebenplus.net/' +--- diff --git a/src/customers/naega.md b/src/customers/naega.md new file mode 100644 index 0000000..5b55f54 --- /dev/null +++ b/src/customers/naega.md @@ -0,0 +1,5 @@ +--- +name: 'Naega' +thumbnail: '/images/customers/logo-naega.png' +url: 'https://www.crealead.com/naega' +--- diff --git a/src/customers/technicolor.md b/src/customers/technicolor.md new file mode 100644 index 0000000..0b77a78 --- /dev/null +++ b/src/customers/technicolor.md @@ -0,0 +1,5 @@ +--- +name: 'Technicolor' +thumbnail: '/images/customers/logo-technicolor.png' +url: 'https://www.technicolor.com/' +--- diff --git a/src/images/customers/logo-lewebenplus.png b/src/images/customers/logo-lewebenplus.png new file mode 100644 index 0000000..377f664 Binary files /dev/null and b/src/images/customers/logo-lewebenplus.png differ diff --git a/src/images/customers/logo-naega.png b/src/images/customers/logo-naega.png new file mode 100644 index 0000000..6c69ee9 Binary files /dev/null and b/src/images/customers/logo-naega.png differ diff --git a/src/images/customers/logo-technicolor.png b/src/images/customers/logo-technicolor.png new file mode 100644 index 0000000..5a464a9 Binary files /dev/null and b/src/images/customers/logo-technicolor.png differ diff --git a/src/scss/components/_sponsor.scss b/src/scss/components/_sponsor.scss new file mode 100644 index 0000000..3d67b27 --- /dev/null +++ b/src/scss/components/_sponsor.scss @@ -0,0 +1,36 @@ +.sponsor { + background-color: var(--color-light-gray); + + .wrapper { + display: flex; + flex-direction: column; + } + + &__heading { + align-self: center; + text-transform: uppercase; + font-size: 1.125rem; + font-weight: 300; + margin: 1.5rem 0 3rem; + } + + &__list { + list-style: none; + display: grid; + grid-template-columns: repeat(4, 1fr); + grid-template-rows: 1fr; + grid-column-gap: 1.5rem; + grid-row-gap: 0; + } + + &__list-item { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + + img { + max-width: 8rem; + } + } +} diff --git a/src/scss/global.scss b/src/scss/global.scss index c8efbad..866d1f6 100644 --- a/src/scss/global.scss +++ b/src/scss/global.scss @@ -77,6 +77,7 @@ img { @import 'components/presentation'; @import 'components/site-head'; @import 'components/site-foot'; +@import 'components/sponsor'; @import 'components/skip-link'; @import 'components/syntax-highlighting'; @import 'components/video-player';