Skip to content

Commit 4b24904

Browse files
Fix home page layout for the projects by setting a max width for the row.
1 parent bd6244a commit 4b24904

File tree

9 files changed

+43
-32
lines changed

9 files changed

+43
-32
lines changed

src/components/home/ProjectsOverview/Computing.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import XTensorXSIMDPicture from "@site/static/img/projects/xtensor_xsimd.svg";
44

55
export default function ComputingProjects() {
66
return (
7-
<div className={"container"}>
8-
<div className="row">
7+
<div className={styles.container_projects}>
8+
<div className={styles.row_projects}>
99
<div
10-
className={"col col--5 col--offset-1" + " " + styles.col_project_overview_with_padding}
10+
className={"col col--6" + " " + styles.col_project_overview_with_padding}
1111
>
1212
<h1 className="padding-none">Scientific computing </h1>
1313
<h2 className={styles.h2_custom}>
@@ -17,7 +17,7 @@ export default function ComputingProjects() {
1717

1818
<ComputingMD />
1919
</div>
20-
<div className={"col col--5 flex-full-centered"+ " " + styles.col_project_overview_with_padding}>
20+
<div className={"col col--6 flex-full-centered"+ " " + styles.col_project_overview_with_padding}>
2121
<XTensorXSIMDPicture width={"500px"}/>
2222
</div>
2323
</div>

src/components/home/ProjectsOverview/DataAnalysis.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ import ApacheArrowPicture from "@site/static/img/projects/apache_arrow.svg";
44

55
export default function DataAnalysisProjects() {
66
return (
7-
<div className={"container" + " "+ styles.project_light_yellow} style={{paddingBottom : "0px"}}>
8-
<div className="row">
7+
<div className={styles.container_projects + " "+ styles.project_light_yellow} style={{paddingBottom : "0px"}}>
8+
<div className={styles.row_projects}>
99
<div
10-
className={"col col--5 col--offset-1" + " " + styles.col_project_overview_with_padding}
10+
className={"col col--6" + " " + styles.col_project_overview_with_padding}
1111
>
1212
<h1 className="padding-none">Data Analysis </h1>
1313
<h2 className={styles.h2_custom}>
1414
Supporting the development of key data analysis technologies.
1515
</h2>
1616
<DataAnalysisMD />
1717
</div>
18-
<div className={"col col--5"+ " " + "flex-full-centered" + " " + styles.col_project_overview_with_padding}>
18+
<div className={"col col--6"+ " " + "flex-full-centered" + " " + styles.col_project_overview_with_padding}>
1919
<ApacheArrowPicture width={"500px"}/>
2020
</div>
2121
</div>

src/components/home/ProjectsOverview/Jupyter.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import JupyterPictureUrl from "@site/static/img/projects/jupyterlab_examples.png
55
export default function JupyterProject() {
66
return (
77
<div
8-
className={"container"}
8+
className={styles.container_projects}
99
style={{
1010
marginTop: "var(--ifm-spacing-4xl)",
1111
}}
1212
>
13-
<div className={"row"}>
14-
<div className={"col col--5 col--offset-1" + " " + styles.col_project_overview_with_padding}>
13+
<div className={styles.row_projects}>
14+
<div className={"col col--6" + " " + styles.col_project_overview_with_padding}>
1515
<h1 className="padding-none">Jupyter project </h1>
1616
<h2 className={styles.h2_custom}>We strive to sustain the project in the long term.</h2>
1717
<JupyterMD/>
1818
</div>
1919

2020
<div
21-
className={"col col--5 flex-full-centered"+" " +styles.col_project_overview_with_padding}
21+
className={"col col--6 flex-full-centered"+" " +styles.col_project_overview_with_padding}
2222
>
2323
<img src={JupyterPictureUrl} width={"540px"} alt={"Picture showing two jupyterlab user interfaces"}/>
2424
</div>

src/components/home/ProjectsOverview/Robotics.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import RoboticsPictureUrl from "@site/static/img/projects/robotics.png";
44

55
export default function RoboticsProjects() {
66
return (
7-
<div className={"container" + " "+ styles.project_light_yellow}>
8-
<div className={"row"}>
7+
<div className={styles.container_projects + " "+ styles.project_light_yellow}>
8+
<div className={styles.row_projects}>
99
<div
1010
className={
11-
"col col--5 col--offset-1" + " " + styles.col_project_overview_with_padding
11+
"col col--6" + " " + styles.col_project_overview_with_padding
1212
}
1313
>
1414
<h1 className="padding-none">Robotics </h1>
@@ -19,7 +19,7 @@ export default function RoboticsProjects() {
1919
</div>
2020
<div
2121
className={
22-
"col col--5" +
22+
"col col--6" +
2323
" " +
2424
"flex-full-centered" +
2525
" " +

src/components/home/ProjectsOverview/RoboticsReverse.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ import RoboticsPictureUrl from "@site/static/img/projects/robotics.png";
44

55
export default function RoboticsProjects() {
66
return (
7-
<div className="container">
8-
<div className={"row"}>
7+
<div className={styles.container_projects}>
8+
<div className={styles.row_projects}>
99
<div
1010
className={
11-
"col col--5 col--offset-1 flex-full-centered" +
11+
"col col--6 flex-full-centered" +
1212
" " +
1313
styles.col_project_overview_with_padding
1414
}
1515
>
1616
<img src={RoboticsPictureUrl} width={"640px"} alt={"Picture showing two jupyterlab user interfaces displaying robotics projects."}/>
1717
</div>
18-
<div className={"col col--5" + " " + styles.col_project_overview_with_padding}>
18+
<div className={"col col--6" + " " + styles.col_project_overview_with_padding}>
1919
<h1 className="padding-none">Robotics </h1>
2020
<h2 className={styles.h2_custom}>
2121
We just kicked off a new initiative to Robotics education.

src/components/home/ProjectsOverview/SpecialProjects.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import SpecialProjectsPictureUrl from "@site/static/img/projects/special_project
44

55
export default function SpecialProjects() {
66
return (
7-
<div className={"container" + " " + styles.project_yellow}>
8-
<div className="row">
9-
<div className={"col col--5 col--offset-1" + " " + styles.col_project_overview_with_padding}>
7+
<div className={styles.container_projects + " " + styles.project_yellow}>
8+
<div className={styles.row_projects}>
9+
<div className={"col col--6" + " " + styles.col_project_overview_with_padding}>
1010
<h1 className="padding-none">Special projects</h1>
1111
<h2 className={styles.h2_custom}>
1212
Applications built from the ground up and addressing a complete use
@@ -15,7 +15,7 @@ export default function SpecialProjects() {
1515

1616
<SpecialProjectsMD/>
1717
</div>
18-
<div className={"col col--5 flex-full-centered"+ " "+ styles.col_project_overview_with_padding}>
18+
<div className={"col col--6 flex-full-centered"+ " "+ styles.col_project_overview_with_padding}>
1919
<img src={SpecialProjectsPictureUrl} height={"595px"} alt={"Picture showing examples of Jupyter CAD projects in Jupyterlab."} />
2020
</div>
2121
</div>

src/components/home/ProjectsOverview/SupplyChain.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import MambaPictureUrl from "@site/static/img/projects/mamba_console.png";
44

55
export default function SupplyChainProjects() {
66
return (
7-
<div className={"container" + " " + styles.project_light_yellow}>
8-
<div className={"row"}>
7+
<div className={styles.container_projects + " " + styles.project_light_yellow}>
8+
<div className={styles.row_projects}>
99
<div
1010
className={
11-
"col col--5 col--offset-1" +
11+
"col col--6" +
1212
" " +
1313
styles.col_project_overview_with_padding
1414
}
@@ -22,7 +22,7 @@ export default function SupplyChainProjects() {
2222
</div>
2323
<div
2424
className={
25-
"col col--5 flex-full-centered" +
25+
"col col--6 flex-full-centered" +
2626
" " +
2727
styles.col_project_overview_with_padding
2828
}

src/components/home/ProjectsOverview/SupplyChainReversed.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import MambaPictureUrl from "@site/static/img/projects/mamba_console.png";
44

55
export default function SupplyChainProjects() {
66
return (
7-
<div className="container">
8-
<div className={"row"}>
7+
<div className={styles.container_projects}>
8+
<div className={styles.row_projects}>
99
<div
1010
className={
11-
"col col--5 col--offset-1 flex-full-centered" +
11+
"col col--6 flex-full-centered" +
1212
" " +
1313
styles.col_project_overview_with_padding
1414
}
@@ -17,7 +17,7 @@ export default function SupplyChainProjects() {
1717
</div>
1818
<div
1919
className={
20-
"col col--5" + " " + styles.col_project_overview_with_padding
20+
"col col--6" + " " + styles.col_project_overview_with_padding
2121
}
2222
>
2323
<h1 className="padding-none">Software supply chain </h1>

src/components/home/ProjectsOverview/styles.module.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,14 @@
1919
.project_light_yellow {
2020
background-color: var(--ifm-color-primary-p0);
2121
}
22+
23+
.row_projects {
24+
max-width: 1500px;
25+
display: flex;
26+
}
27+
28+
.container_projects {
29+
padding: 0;
30+
display: flex;
31+
justify-content: center;
32+
}

0 commit comments

Comments
 (0)