@@ -8,8 +8,10 @@ const companies = await getCollection("referenceCompanies", (entry) => !entry.da
8
8
const projects = await getCollection (" referenceProjects" , (entry ) => entry .data .locale === locale );
9
9
---
10
10
11
- <section >
12
- <slot name =" title" />
11
+ <section class =" page-padding" >
12
+ <header >
13
+ <slot name =" title" />
14
+ </header >
13
15
<div class =" references-projects" >
14
16
{
15
17
projects .map ((p ) => (
@@ -35,7 +37,6 @@ const projects = await getCollection("referenceProjects", (entry) => entry.data.
35
37
<style >
36
38
section {
37
39
background-color: var(--color-white);
38
- padding: 8rem var(--size-page-padding);
39
40
z-index: 1;
40
41
}
41
42
@@ -48,7 +49,8 @@ const projects = await getCollection("referenceProjects", (entry) => entry.data.
48
49
49
50
:where(.references-projects) {
50
51
display: grid;
51
- grid-template-columns: repeat(2, 1fr);
52
+ grid-template-columns: repeat(2, minmax(0, 1fr));
53
+ grid-template-rows: auto auto 1fr;
52
54
gap: var(--size-gutter-big);
53
55
margin-block-end: var(--size-gutter-big);
54
56
@@ -58,28 +60,26 @@ const projects = await getCollection("referenceProjects", (entry) => entry.data.
58
60
59
61
div:first-child {
60
62
grid-column: span 2;
61
-
62
- h3 {
63
- min-height: 3rem;
64
- }
65
63
}
66
64
67
65
h3 {
68
- min-height: 5rem ;
66
+ margin: 0 ;
69
67
}
70
68
71
- div {
69
+ > div {
70
+ display: grid;
71
+ grid-row: span 3;
72
+ grid-template-rows: subgrid;
72
73
background-color: var(--color-background);
73
74
padding: var(--size-gutter-big);
74
- display: flex;
75
- flex-direction: column;
76
- align-items: center;
75
+ justify-items: center;
76
+ align-items: start;
77
77
}
78
78
}
79
79
80
80
:where(.references-companies) {
81
81
display: grid;
82
- grid-template-columns: repeat(4, 1fr);
82
+ grid-template-columns: repeat(4, minmax(0, 1fr) );
83
83
gap: var(--size-gutter-big);
84
84
85
85
a {
@@ -98,7 +98,7 @@ const projects = await getCollection("referenceProjects", (entry) => entry.data.
98
98
99
99
@media screen and (max-width: 1600px) {
100
100
.references-companies {
101
- grid-template-columns: repeat(2, 1fr);
101
+ grid-template-columns: repeat(2, minmax(0, 1fr) );
102
102
}
103
103
}
104
104
0 commit comments