Skip to content

Commit 4980ed3

Browse files
authored
Display team cards in multiple columns (#51)
* Add 404 page * Remove redundant css * Fix build error * Add link to newsletter * Display team cards in multiple columns * fix buggos maybe * try to fix the thing * try to raise specificity of selector * about to give up * gave up
1 parent 144b6fa commit 4980ed3

File tree

3 files changed

+34
-25
lines changed

3 files changed

+34
-25
lines changed

src/components/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const props = Astro.props;
2525

2626
<style>
2727
header {
28-
max-width: var(--body-width);
28+
max-width: var(--header-width);
2929
margin-bottom: 35px;
3030
display: flex;
3131
flex-direction: column;

src/layouts/PageLayout.astro

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const {
3636
}
3737

3838
body {
39-
--body-width: 750px;
39+
--main-width: 750px;
40+
--header-width: 750px;
4041
--fujo-cream: #f7eedf;
4142
--fujo-purple: #c29fc9;
4243
--fujo-red: #ff7976;
@@ -53,10 +54,11 @@ const {
5354
align-items: center;
5455
padding-block: 20px;
5556
padding-inline: 15px;
57+
overflow-x: hidden;
5658
}
5759

5860
main {
59-
max-width: min(100%, var(--body-width));
61+
max-width: min(100%, var(--main-width));
6062
padding-bottom: 30px;
6163
display: flex;
6264
flex-direction: column;
@@ -172,26 +174,25 @@ const {
172174
<slot />
173175
<Socials />
174176
</main>
177+
<style>
178+
.learn-site-banner {
179+
background-color: rgb(70, 66, 88);
180+
color: white;
181+
padding-block: 12px;
182+
padding-inline: 20px;
183+
width: 100vw;
184+
margin-top: -20px;
185+
display: flex;
186+
justify-content: center;
187+
text-align: center;
188+
font-size: 0.9rem;
189+
text-wrap: balance;
190+
}
191+
@media (max-width: 768px) {
192+
.learn-site-banner .longer-text {
193+
display: none;
194+
}
195+
}
196+
</style>
175197
</body>
176198
</html>
177-
178-
<style>
179-
.learn-site-banner {
180-
background-color: rgb(70, 66, 88);
181-
color: white;
182-
padding-block: 12px;
183-
padding-inline: 20px;
184-
width: 100vw;
185-
margin-top: -20px;
186-
display: flex;
187-
justify-content: center;
188-
text-align: center;
189-
font-size: 0.9rem;
190-
text-wrap: balance;
191-
}
192-
@media (max-width: 768px) {
193-
.learn-site-banner .longer-text {
194-
display: none;
195-
}
196-
}
197-
</style>

src/pages/team/index.astro

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ const projectsArray = Object.keys(PROJECTS).map((proj) => ({
8989
:global(h1) {
9090
margin-bottom: 0;
9191
}
92+
93+
body {
94+
--main-width: 1200px !important;
95+
}
96+
9297
.tabs {
9398
display: flex;
9499
flex-wrap: wrap;
@@ -126,7 +131,10 @@ const projectsArray = Object.keys(PROJECTS).map((proj) => ({
126131
}
127132

128133
.tabs input[type="radio"]:checked + label + .tab-content {
129-
display: block;
134+
display: flex;
135+
gap: 0 0.75rem;
136+
flex-wrap: wrap;
137+
justify-content: center;
130138
}
131139

132140
.beta-readers {

0 commit comments

Comments
 (0)