Skip to content

Commit 9cb2f70

Browse files
authored
Merge pull request #20 from axmmisaka/slider-gitpod
added gitpod and made some code change
2 parents b6f35c9 + ca1b417 commit 9cb2f70

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

src/components/HomepageSlider/codes.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ export const main: JSX.Element = (<pre
1818
<span style={{ color: "#EEFFFF" }}> {"{"}</span>
1919
</span>
2020
<br />
21+
<span className="line">
22+
<span style={{ color: "#545454", fontStyle: "italic" }}>
23+
{" "}// Instantiate two Player reactors here
24+
</span>
25+
</span>
26+
<br />
2127
<span className="line">
2228
<span style={{ color: "#EEFFFF" }}>{" "}player1 </span>
2329
<span style={{ color: "#89DDFF" }}>=</span>
@@ -42,6 +48,12 @@ export const main: JSX.Element = (<pre
4248
<br />
4349
<span className="line" />
4450
<br />
51+
<span className="line">
52+
<span style={{ color: "#545454", fontStyle: "italic" }}>
53+
{" "}// Make connections between them
54+
</span>
55+
</span>
56+
<br />
4557
<span className="line">
4658
<span style={{ color: "#EEFFFF" }}>{" "}player2</span>
4759
<span style={{ color: "#89DDFF" }}>.</span>
@@ -170,8 +182,8 @@ export const target = (<pre
170182
<span className="line">
171183
<span style={{ color: "#C792EA" }}>{" "}const</span>
172184
<span style={{ color: "#C792EA" }}> char</span>
173-
<span style={{ color: "#89DDFF" }}>*</span>
174-
<span style={{ color: "#EEFFFF" }}> symbol_names[] </span>
185+
<span style={{ color: "#89DDFF" }}>**</span>
186+
<span style={{ color: "#EEFFFF" }}> symbol_names </span>
175187
<span style={{ color: "#89DDFF" }}>=</span>
176188
<span style={{ color: "#89DDFF" }}> {"{"}</span>
177189
<span style={{ color: "#89DDFF" }}>"</span>

src/components/HomepageSlider/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ const titles = [
1616

1717
import RockPaperScissor from '@site/static/img/diagram/rps.svg';
1818
import ElaboratedRPS from '@site/static/img/diagram/elaborate.svg';
19+
import Link from '@docusaurus/Link';
1920

2021
const codes = [
2122
<>
2223
{main}
24+
<div>{"\n\n\n\n\n"}</div>
2325
<div className={clsx(styles.diagramSVGContainer, styles.codeAbove)}>
2426
<RockPaperScissor
2527
title="Lingua Franca Diagram for the RockPaperScissor Program"
@@ -77,6 +79,11 @@ export const CodeContainer = ({
7779
</CSSTransition>
7880
</SwitchTransition>
7981
</div>
82+
<div className={clsx(styles.linkButton)}>
83+
<Link href="https://gitpod.io/new#https://github.com/lf-lang/playground-lingua-franca/tree/main">
84+
<img src="https://raw.githubusercontent.com/gitpod-io/gitpod/30da76375c996109f243491b23e47feefab7217f/components/dashboard/public/button/open-in-gitpod.svg" />
85+
</Link>
86+
</div>
8087
<button
8188
className={clsx(styles.advance, "button", "button--primary")}
8289
onClick={() => {

src/components/HomepageSlider/styles.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
/* Override Infima's button */
3737
}
3838

39+
.linkButton {
40+
position: absolute;
41+
right: 1rem;
42+
top: 3rem;
43+
}
44+
3945
.codeContent {
4046
height: 30rem;
4147
}

0 commit comments

Comments
 (0)