Skip to content

Commit fabf886

Browse files
committed
Title alignment, project card compactness, fundable sidebar fix
- Normalize all page title alignment to left (remove text--center from About, Careers, Contact, and fix spurious full-flex-centered on FourValues) - ProjectCard: col-8/col-4 split (was 6/6), border frame moved from the full column onto an inner wrapper around the logo; logo constrained to max 160x160px via object-fit; implement reverse alternating layout from project data - Project text box: reduce padding from 4xl/3xl to 2xl/2xl; remove text-align:justify - Fundable sidebar: replace Infima col--2/col--10 with plain flexbox (fundable_layout / fundable_sidebar / fundable_main); sidebar is 200px fixed width, sticky top:80px, hidden on mobile via media query — no more overlap
1 parent c574a59 commit fabf886

8 files changed

Lines changed: 125 additions & 135 deletions

File tree

src/components/about/FourValues.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ export default function FourValues() {
77
<div>
88
<div className="row">
99
<div className="col">
10-
<h1 className={"padding-none" + " " + "full-flex-centered"}>
11-
Our values{" "}
12-
</h1>
10+
<h1>Our values</h1>
1311
</div>
1412
</div>
1513
<ul className={"cards-row " + styles.values_row}>

src/components/about/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function About() {
2222
<FourValues />
2323

2424
<div className="row-with-margins">
25-
<h1 className="text--center">Meet the QuantStack team</h1>
25+
<h1>Meet the QuantStack team</h1>
2626
<div className={styles.team_description}>
2727
A team of outliers, leaders in software projects adopted at the
2828
global scale, benefiting millions of people worldwide.

src/components/careers/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function Careers() {
1010
return (
1111
<div>
1212
<div className="page-content upper-container-with-margin-top">
13-
<h1 className="text--center">Join the QuantStack team!</h1>
13+
<h1>Join the QuantStack team!</h1>
1414
<div className={styles.group_photo_container + " flex-full-centered"}>
1515
<img
1616
src={GroupPhotoJupyterConUrl}

src/components/contact/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ContactIllustration from "/img/illustrations/contact.svg";
66
export function Contact() {
77
return (
88
<div className="page-content upper-container-with-margin-top">
9-
<h1 className="padding-none text--center">Contact us</h1>
9+
<h1>Contact us</h1>
1010
<div className="row">
1111
<div className="col col--6 flex-full-centered" style={{ padding: "var(--ifm-spacing-xl)" }}>
1212
<ContactIllustration

src/components/fundable/index.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,11 @@ export default function FundableProjects() {
5656
return (
5757

5858
<div className="page-content upper-container-with-margin-top">
59-
<div className="row">
60-
<div className={"col col--2" + " " + styles.menu_sidebar}>
59+
<div className={styles.fundable_layout}>
60+
<aside className={styles.fundable_sidebar}>
6161
<MenuSidebar />
62-
</div>
63-
<div className={"col col--10" + " " + styles.main_area_desktop}>
64-
<MainAreaFundableProjects />
65-
</div>
66-
<div className={"col col--12" + " " + styles.main_area_mobile}>
62+
</aside>
63+
<div className={styles.fundable_main}>
6764
<MainAreaFundableProjects />
6865
</div>
6966
</div>

src/components/fundable/styles.module.css

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -106,26 +106,44 @@
106106
margin: var(--ifm-spacing-md) 0;
107107
}
108108

109+
.fundable_layout {
110+
display: flex;
111+
gap: var(--ifm-spacing-3xl);
112+
align-items: flex-start;
113+
}
114+
115+
.fundable_sidebar {
116+
width: 200px;
117+
flex-shrink: 0;
118+
}
119+
120+
.fundable_main {
121+
flex: 1;
122+
min-width: 0;
123+
}
124+
109125
.menu_sidebar {
110-
padding: 1rem;
111-
overflow-y: auto;
126+
padding: var(--ifm-spacing-sm) 0;
112127
}
113128

114129
.menu_sidebar_item {
115130
font-family: var(--ifm-font-family-roboto);
116-
font-size: 16px;
131+
font-size: 15px;
117132
font-style: normal;
118133
font-weight: 500;
119-
line-height: 48px;
120-
/* 300% */
134+
line-height: 40px;
121135
letter-spacing: 0.15px;
122136
}
123137

124138
.menu_sidebar_container {
125139
position: sticky;
126140
top: 80px;
127-
display: flex;
128-
height: fit-content;
141+
}
142+
143+
@media (max-width: 996px) {
144+
.fundable_sidebar {
145+
display: none;
146+
}
129147
}
130148

131149
.menu_sidebar_indicator {
@@ -303,14 +321,6 @@
303321
padding: var(--ifm-spacing-md);
304322
}
305323

306-
.main_area_desktop {
307-
display: none
308-
}
309-
310-
.menu_sidebar {
311-
display: none
312-
}
313-
314324
.small_project_card {
315325
width: 90vw;
316326
margin-bottom: var(--ifm-spacing-lg);
@@ -410,10 +420,6 @@
410420
max-height: 95vh;
411421
}
412422

413-
.main_area_desktop {
414-
display: none
415-
}
416-
417423
.small_input {
418424
width: 400px;
419425
height: 56px;
@@ -436,10 +442,6 @@
436442
height: 200px;
437443
}
438444

439-
.menu_sidebar {
440-
display: none
441-
}
442-
443445
.get_a_quote_dialog {
444446
width: 80vw;
445447
padding: 40px;
@@ -487,14 +489,6 @@
487489
max-height: 95vh;
488490
}
489491

490-
.main_area_mobile {
491-
display: none;
492-
}
493-
494-
.main_area_desktop {
495-
padding-left: 80px;
496-
}
497-
498492
.small_input {
499493
width: 400px;
500494
height: 56px;
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
import styles from "./styles.module.css";
22

33
export default function ProjectCard({ project }): JSX.Element {
4-
const prefix = "project_picture_";
5-
const base = `${prefix}${project.name}`
6-
return (
7-
<div className="row row--no-gutters">
8-
<div
9-
className={"col col--6" + " " + styles.project_text}
10-
>
11-
<div className={styles.project_title}>{project.title}</div>
12-
<div className={styles.project_description}>
13-
<project.ProjectMD />
14-
</div>
4+
const picClass = styles[`project_picture_${project.name}`] ?? "";
5+
const isReverse = project.reverse === "true";
6+
7+
const textCol = (
8+
<div className={"col col--8 " + styles.project_text}>
9+
<div className={styles.project_title}>{project.title}</div>
10+
<div className={styles.project_description}>
11+
<project.ProjectMD />
1512
</div>
16-
<div
17-
className={
18-
"col col--6 flex-full-centered padding-none" +
19-
" " +
20-
styles[base]
21-
}
22-
>
23-
<div className={styles.col_project_picture}></div>
24-
<img
25-
src={project.pictureRoute}
26-
width={project.pictureWidth}
27-
height={project.pictureHeight}
28-
alt={project.pictureAltText}
29-
/>
13+
</div>
14+
);
15+
16+
const imageCol = (
17+
<div className="col col--4 flex-full-centered padding-none">
18+
<div className={picClass}>
19+
<img
20+
src={project.pictureRoute}
21+
alt={project.pictureAltText}
22+
className={styles.project_logo}
23+
/>
3024
</div>
3125
</div>
3226
);
27+
28+
return (
29+
<div className="row row--no-gutters">
30+
{isReverse ? <>{imageCol}{textCol}</> : <>{textCol}{imageCol}</>}
31+
</div>
32+
);
3333
}

0 commit comments

Comments
 (0)