@@ -4,7 +4,7 @@ import { Image } from "astro:assets";
4
4
import { getCollection } from " astro:content" ;
5
5
6
6
const locale = currentLocale .get ();
7
- const companies = await getCollection (" referenceCompanies" );
7
+ const companies = await getCollection (" referenceCompanies" , ( entry ) => ! entry . data . archived );
8
8
const projects = await getCollection (" referenceProjects" , (entry ) => entry .data .locale === locale );
9
9
---
10
10
@@ -39,25 +39,47 @@ const projects = await getCollection("referenceProjects", (entry) => entry.data.
39
39
z-index: 1;
40
40
}
41
41
42
+ img {
43
+ height: 4rem;
44
+ width: auto;
45
+ max-width: 100%;
46
+ object-fit: contain;
47
+ }
48
+
42
49
:where(.references-projects) {
43
- display: flex;
50
+ display: grid;
51
+ grid-template-columns: repeat(2, 1fr);
44
52
gap: var(--size-gutter-big);
45
53
margin-block-end: var(--size-gutter-big);
46
54
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
+
47
71
div {
48
72
background-color: var(--color-background);
49
73
padding: var(--size-gutter-big);
50
74
display: flex;
51
75
flex-direction: column;
52
76
align-items: center;
53
- flex-grow: 1;
54
- width: 100%;
55
77
}
56
78
}
57
79
58
80
:where(.references-companies) {
59
81
display: grid;
60
- grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr) );
82
+ grid-template-columns: repeat(4, 1fr);
61
83
gap: var(--size-gutter-big);
62
84
63
85
a {
@@ -69,17 +91,28 @@ const projects = await getCollection("referenceProjects", (entry) => entry.data.
69
91
padding: var(--size-gutter-big);
70
92
gap: var(--size-gutter);
71
93
color: inherit;
72
- text-decoration: none;
73
- font-size: 0.875rem;
74
94
font-weight: 600;
75
95
background-color: var(--color-background);
76
96
}
97
+ }
77
98
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
+ }
83
116
}
84
117
}
85
118
</style >
0 commit comments