@@ -4,7 +4,7 @@ import { Image } from "astro:assets";
44import { getCollection } from " astro:content" ;
55
66const locale = currentLocale .get ();
7- const companies = await getCollection (" referenceCompanies" );
7+ const companies = await getCollection (" referenceCompanies" , ( entry ) => ! entry . data . archived );
88const projects = await getCollection (" referenceProjects" , (entry ) => entry .data .locale === locale );
99---
1010
@@ -39,25 +39,47 @@ const projects = await getCollection("referenceProjects", (entry) => entry.data.
3939 z-index: 1;
4040 }
4141
42+ img {
43+ height: 4rem;
44+ width: auto;
45+ max-width: 100%;
46+ object-fit: contain;
47+ }
48+
4249 :where(.references-projects) {
43- display: flex;
50+ display: grid;
51+ grid-template-columns: repeat(2, 1fr);
4452 gap: var(--size-gutter-big);
4553 margin-block-end: var(--size-gutter-big);
4654
55+ img {
56+ height: 8rem;
57+ }
58+
59+ div:first-child {
60+ grid-column: span 2;
61+
62+ h3 {
63+ min-height: 3rem;
64+ }
65+ }
66+
67+ h3 {
68+ min-height: 5rem;
69+ }
70+
4771 div {
4872 background-color: var(--color-background);
4973 padding: var(--size-gutter-big);
5074 display: flex;
5175 flex-direction: column;
5276 align-items: center;
53- flex-grow: 1;
54- width: 100%;
5577 }
5678 }
5779
5880 :where(.references-companies) {
5981 display: grid;
60- grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr) );
82+ grid-template-columns: repeat(4, 1fr);
6183 gap: var(--size-gutter-big);
6284
6385 a {
@@ -69,17 +91,28 @@ const projects = await getCollection("referenceProjects", (entry) => entry.data.
6991 padding: var(--size-gutter-big);
7092 gap: var(--size-gutter);
7193 color: inherit;
72- text-decoration: none;
73- font-size: 0.875rem;
7494 font-weight: 600;
7595 background-color: var(--color-background);
7696 }
97+ }
7798
78- img {
79- height: 4rem;
80- width: auto;
81- max-width: 100%;
82- object-fit: contain;
99+ @media screen and (max-width: 1600px) {
100+ .references-companies {
101+ grid-template-columns: repeat(2, 1fr);
102+ }
103+ }
104+
105+ @media screen and (max-width: 800px) {
106+ .references-companies {
107+ grid-template-columns: 1fr;
108+ }
109+
110+ .references-projects {
111+ grid-template-columns: 1fr;
112+
113+ div:first-child {
114+ grid-column: span 1;
115+ }
83116 }
84117 }
85118</style >
0 commit comments