Skip to content

Commit 36c0ffa

Browse files
committed
Website: Add new section "Contribute"
This replaces the previous "Research" page.
1 parent 6ec9cc4 commit 36c0ffa

File tree

8 files changed

+199
-113
lines changed

8 files changed

+199
-113
lines changed

website/pages/en/contribute.js

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
const React = require("react");
2+
3+
const CompLibrary = require("../../core/CompLibrary.js");
4+
5+
const Container = CompLibrary.Container;
6+
const GridBlock = CompLibrary.GridBlock;
7+
8+
const publications = [
9+
{
10+
title: "Celerity: High-level C++ for Accelerator Clusters",
11+
authors: "Peter Thoman, Philip Salzmann, Biagio Cosenza, Thomas Fahringer",
12+
publishedAt: "Euro-Par 2019",
13+
},
14+
{
15+
title:
16+
"CELERITY: Towards an Effective Programming Interface for GPU Clusters",
17+
authors:
18+
"Peter Thoman, Biagio Cosenza, Herbert Jordan, Philipp Gschwandtner, Thomas Fahringer, Ben Juurlink",
19+
publishedAt: "PDP 2018",
20+
},
21+
];
22+
23+
const events = [
24+
{
25+
title: "Celerity: High-productivity Programming for Accelerator Clusters",
26+
authors: "Peter Thoman",
27+
info: "Talk at ScalPerf 2019",
28+
},
29+
{
30+
title: "Introducing Celerity: High-level C++ for Accelerator Clusters",
31+
authors: "Philip Salzmann",
32+
info: "Demo session at HPCS 2019",
33+
},
34+
];
35+
36+
const ResearchPage = ({ config }) => {
37+
const { baseUrl } = config;
38+
39+
const Block = (props) => (
40+
<GridBlock contents={props.children} layout={props.layout} />
41+
);
42+
43+
const Highlights = () => (
44+
<Block layout="twoColumn">
45+
{[
46+
{
47+
title: "Publications",
48+
content: publications
49+
.map(
50+
({ title, authors, publishedAt }) =>
51+
`### ${title}\n${authors}\n**${publishedAt}**`
52+
)
53+
.join("\n"),
54+
},
55+
{
56+
title: "Selected Talks & Demos",
57+
content: events
58+
.map(
59+
({ title, authors, info }) =>
60+
`### ${title}\n${authors}\n**${info}**`
61+
)
62+
.join("\n"),
63+
},
64+
]}
65+
</Block>
66+
);
67+
68+
const ProjectDescription = () => (
69+
<div>
70+
<p>
71+
Celerity is a research project that is being developed openly on{" "}
72+
<a href="https://github.com/celerity" target="_blank">
73+
GitHub
74+
</a>
75+
.
76+
</p>
77+
<p>
78+
If you want to contribute to Celerity's development, feel free to file a{" "}
79+
<a
80+
href="https://github.com/celerity/celerity-runtime/blob/master/CONTRIBUTING.md"
81+
target="_blank"
82+
>
83+
pull request
84+
</a>
85+
!<br /> Run into problems or limitations? Don't hesitate to{" "}
86+
<a
87+
href="https://github.com/celerity/celerity-runtime/issues/new"
88+
target="_blank"
89+
>
90+
open an issue
91+
</a>
92+
.<br /> For general questions and support, join us on our{" "}
93+
<a href="https://discord.gg/k8vWTPB">Discord server</a>!
94+
</p>
95+
</div>
96+
);
97+
98+
const Research = () => (
99+
<div>
100+
<h2>Celerity Research</h2>
101+
For inquiries regarding research opportunities and collaboration, please
102+
contact either{" "}
103+
<a href="https://dps.uibk.ac.at/~petert/" target="_blank">
104+
Peter Thoman
105+
</a>{" "}
106+
at UIBK or{" "}
107+
<a href="https://www.cosenza.eu/" target="_blank">
108+
Biagio Cosenza
109+
</a>{" "}
110+
at UNISA.
111+
</div>
112+
);
113+
114+
const Acknowledgements = () => (
115+
<div>
116+
<h2>Acknowledgements</h2>
117+
This research has been partially funded by the{" "}
118+
<strong>FWF (I 3388)</strong> and{" "}
119+
<strong>DFG (CO 1544/1-1, project number 360291326)</strong> as part of
120+
the <strong>CELERITY</strong> project.
121+
</div>
122+
);
123+
124+
return (
125+
<Container padding={["bottom"]} className="contribute-page">
126+
<div className="homeContainer">
127+
<div className="wrapper">
128+
<img
129+
className="celerity-loves-github"
130+
src={`${baseUrl}img/celerity_loves_github.png`}
131+
srcSet={`${baseUrl}img/celerity_loves_github.png, ${baseUrl}img/celerity_loves_github@2x.png 2x`}
132+
alt=""
133+
/>
134+
<ProjectDescription />
135+
</div>
136+
</div>
137+
<hr className="separator" />
138+
<div className="uni-logos">
139+
<a href="https://www.uibk.ac.at" target="_blank">
140+
<img
141+
src={`${baseUrl}img/uibk_logo.svg`}
142+
alt="University of Innsbruck"
143+
/>
144+
</a>
145+
<a href="https://web.unisa.it" target="_blank">
146+
<img
147+
src={`${baseUrl}img/unisa_logo.svg`}
148+
alt="University of Salerno"
149+
/>
150+
</a>
151+
<a href="https://www.tu-berlin.de" target="_blank">
152+
<img
153+
src={`${baseUrl}img/tub_logo.svg`}
154+
alt="Technical University of Berlin"
155+
/>
156+
</a>
157+
</div>
158+
<div className="homeContainer">
159+
<div className="wrapper">
160+
<Research />
161+
</div>
162+
</div>
163+
<Highlights />
164+
<div className="homeContainer">
165+
<div className="wrapper">
166+
<Acknowledgements />
167+
</div>
168+
</div>
169+
</Container>
170+
);
171+
};
172+
173+
module.exports = ResearchPage;

website/pages/en/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Index extends React.Component {
114114
);
115115

116116
return (
117-
<div>
117+
<div className="home-page">
118118
<HomeSplash siteConfig={siteConfig} language={language} />
119119
<div className="mainContainer">
120120
<Features />

website/pages/en/research.js

Lines changed: 4 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -3,115 +3,13 @@ const React = require("react");
33
const CompLibrary = require("../../core/CompLibrary.js");
44

55
const Container = CompLibrary.Container;
6-
const GridBlock = CompLibrary.GridBlock;
7-
8-
const publications = [
9-
{
10-
title: "Celerity: High-level C++ for Accelerator Clusters",
11-
authors: "Peter Thoman, Philip Salzmann, Biagio Cosenza, Thomas Fahringer",
12-
publishedAt: "Euro-Par 2019"
13-
},
14-
{
15-
title:
16-
"CELERITY: Towards an Effective Programming Interface for GPU Clusters",
17-
authors:
18-
"Peter Thoman, Biagio Cosenza, Herbert Jordan, Philipp Gschwandtner, Thomas Fahringer, Ben Juurlink",
19-
publishedAt: "PDP 2018"
20-
}
21-
];
22-
23-
const events = [
24-
{
25-
title: "Celerity: High-productivity Programming for Accelerator Clusters",
26-
authors: "Peter Thoman",
27-
info: "Talk at ScalPerf 2019"
28-
},
29-
{
30-
title: "Introducing Celerity: High-level C++ for Accelerator Clusters",
31-
authors: "Philip Salzmann",
32-
info: "Demo session at HPCS 2019"
33-
}
34-
];
35-
36-
const ResearchPage = ({ config }) => {
37-
const { baseUrl } = config;
38-
39-
const Block = props => (
40-
<GridBlock contents={props.children} layout={props.layout} />
41-
);
42-
43-
const Highlights = () => (
44-
<Block layout="twoColumn">
45-
{[
46-
{
47-
title: "Publications",
48-
content: publications
49-
.map(
50-
({ title, authors, publishedAt }) =>
51-
`### ${title}\n${authors}\n**${publishedAt}**`
52-
)
53-
.join("\n")
54-
},
55-
{
56-
title: "Selected Talks & Demos",
57-
content: events
58-
.map(
59-
({ title, authors, info }) =>
60-
`### ${title}\n${authors}\n**${info}**`
61-
)
62-
.join("\n")
63-
}
64-
]}
65-
</Block>
66-
);
67-
68-
const ProjectDescription = () => (
69-
<div>
70-
Celerity is a joint research project by the{" "}
71-
<a href="https://www.uibk.ac.at" target="_blank">
72-
University of Innsbruck
73-
</a>{" "}
74-
and the{" "}
75-
<a href="https://www.tu-berlin.de" target="_blank">
76-
Technical University of Berlin
77-
</a>
78-
.
79-
</div>
80-
);
81-
82-
const Acknowledgements = () => (
83-
<div>
84-
<h2>Acknowledgements</h2>
85-
This research has been partially funded by the{" "}
86-
<strong>FWF (I 3388)</strong> and{" "}
87-
<strong>DFG (CO 1544/1-1, project number 360291326)</strong> as part of
88-
the <strong>CELERITY</strong> project.
89-
</div>
90-
);
916

7+
// The former /research page is now called /contribute.
8+
// FIXME: Once we are on Docusaurus v2, do a proper redirect.
9+
const ResearchPage = () => {
9210
return (
9311
<Container padding={["bottom", "top"]}>
94-
<div className="uni-logos">
95-
<img
96-
src={`${baseUrl}img/uibk_logo.svg`}
97-
alt="University of Innsbruck"
98-
/>
99-
<img
100-
src={`${baseUrl}img/tub_logo.svg`}
101-
alt="Technical University of Berlin"
102-
/>
103-
</div>
104-
<div className="homeContainer">
105-
<div className="wrapper homeWrapper">
106-
<ProjectDescription />
107-
</div>
108-
</div>
109-
<Highlights />
110-
<div className="homeContainer">
111-
<div className="wrapper">
112-
<Acknowledgements />
113-
</div>
114-
</div>
12+
<div>This page has moved to <a href="/contribute">Contribute</a>.</div>
11513
</Container>
11614
);
11715
};

website/siteConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const siteConfig = {
99

1010
headerLinks: [
1111
{ doc: "getting-started", label: "Docs" },
12-
{ href: "https://github.com/celerity/celerity-runtime", label: "GitHub" },
1312
// { blog: true, label: "Blog" },
14-
{ page: "research", label: "Research" }
13+
{ page: "contribute", label: "Contribute" },
14+
{ href: "https://github.com/celerity/celerity-runtime", label: "GitHub" },
1515
],
1616

1717
headerIcon: "img/celerity_icon.png",

website/static/css/custom.css

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
margin-right: auto;
1616
}
1717

18-
.blockElement {
19-
margin-bottom: 6em;
20-
}
21-
2218
.imageAlignTop .blockImage {
2319
max-width: 10em;
2420
}
@@ -31,6 +27,10 @@ blockquote {
3127

3228
/* Custom classes */
3329

30+
hr.separator {
31+
margin: 3em 0;
32+
}
33+
3434
.celerity-logo {
3535
display: flex;
3636
justify-content: center;
@@ -47,6 +47,15 @@ blockquote {
4747
border-radius: 2px;
4848
}
4949

50+
.home-page .blockElement {
51+
margin-bottom: 6em;
52+
}
53+
54+
.celerity-loves-github {
55+
margin-top: 2em;
56+
margin-bottom: 1em;
57+
}
58+
5059
.uni-logos {
5160
display: flex;
5261
justify-content: space-evenly;
@@ -56,10 +65,15 @@ blockquote {
5665

5766
.uni-logos img {
5867
height: 100px;
68+
margin: 0 30px;
5969
}
6070

6171
@media (max-width: 768px) {
72+
.uni-logos {
73+
margin-top: -20px;
74+
}
6275
.uni-logos img {
6376
height: 60px;
77+
margin-top: 20px;
6478
}
6579
}
24.6 KB
Loading
53.7 KB
Loading

website/static/img/unisa_logo.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)