Skip to content

Commit 47fa439

Browse files
committed
add workflow links to mat3ra
1 parent 8f686ac commit 47fa439

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed

docs/hands-on/scf.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ lines can be added with lines starting with a `!` like in Fortran. Also,
3636
parameter names are not case-sensitive, i.e., `&control` and `&CONTROL` are the
3737
same.
3838

39+
import Mat3raAdmonition from '../../src/apps/mat3ra';
40+
41+
<Mat3raAdmonition url="https://platform.mat3ra.com/pranab/projects/pranab-default/jobs/NwxTtQEqC2ARJGLXA"/>
42+
3943
import CodeBlock from '@theme/CodeBlock';
4044
import pw_scf_silicon_in from '!!raw-loader!/src/silicon/pw.scf.silicon.in';
4145

src/apps/mat3ra.jsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import React from "react";
2+
import Admonition from "@theme/Admonition";
3+
import styles from "./styles.module.css";
4+
5+
const Mat3raAdmonition = ({ url }) => {
6+
return (
7+
<Admonition type="tip" title="MAT3RA.COM">
8+
<p>
9+
Review, clone, modify, and run below calculation on{" "}
10+
<Mat3raButton url={url} />
11+
</p>
12+
<p style={{ color: "grey", fontSize: "0.9em" }}>
13+
<b>Mat3ra</b> is a cloud platform to organize, run, share and
14+
collaborate on your high performance computing projects.{" "}
15+
<a href="https://mat3ra.com">Learn more</a>.
16+
</p>
17+
</Admonition>
18+
);
19+
};
20+
21+
export const Mat3raButton = ({ url }) => {
22+
return (
23+
<a href={url} target="_blank">
24+
<button className={styles.mat3ra}></button>
25+
</a>
26+
);
27+
};
28+
29+
export default Mat3raAdmonition;

src/apps/styles.module.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.mat3ra {
2+
appearance: none;
3+
border: 1px solid rgba(27, 31, 35, 0.15);
4+
border-radius: 6px;
5+
box-shadow: rgba(27, 31, 35, 0.1) 0 1px 0;
6+
box-sizing: border-box;
7+
color: #fff;
8+
cursor: pointer;
9+
display: inline-block;
10+
font-size: 14px;
11+
font-weight: 600;
12+
line-height: 18px;
13+
padding: 4px 12 px;
14+
position: relative;
15+
text-align: center;
16+
text-decoration: none;
17+
user-select: none;
18+
-webkit-user-select: none;
19+
touch-action: manipulation;
20+
vertical-align: middle;
21+
white-space: nowrap;
22+
background: url('../../static/img/mat3ra-logo.svg') no-repeat;
23+
height: 24px;
24+
width: 94px;
25+
background-color: #3f2a98;
26+
}
27+
28+
.mat3ra:hover {
29+
background-color: purple;
30+
}

static/img/mat3ra-logo.svg

Lines changed: 10 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)