Add cameligo sample, minor menu css fixes, added discord link

This commit is contained in:
Matej Sima 2019-06-10 20:15:14 +02:00
parent 50b8413fce
commit 6a85e5d422
4 changed files with 41 additions and 18 deletions

View File

@ -46,6 +46,12 @@ class Footer extends React.Component {
rel="noreferrer noopener">
Tezos Stack Exchange
</a>
<a
href="https://discord.gg/9rhYaEt"
target="_blank"
rel="noreferrer noopener">
Discord
</a>
</div>
<div>
<h5>More</h5>

View File

@ -30,7 +30,8 @@ class HomeSplash extends React.Component {
<div className="nav-tabs">
<div id="tab-group-3-tab-4" className="nav-link active" data-group="group_3"
data-tab="tab-group-3-content-4">Pascaligo</div>
<div className="nav-link">Camligo (coming soon)</div>
<div className="nav-link" data-group="group_3"
data-tab="tab-group-3-content-5">Cameligo</div>
<div className="nav-link">Reasonligo (coming soon) </div>
{/* <div id="tab-group-3-tab-5" className="nav-link" data-group="group_3"
data-tab="tab-group-3-content-5">Camligo</div> */}
@ -45,9 +46,11 @@ class HomeSplash extends React.Component {
</div>
<div id="tab-group-3-content-5" className="tab-pane" data-group="group_3" tabIndex="-1">
<div>
<span>
SOON
</span>
<pre>
<code className="hljs css language-Pascal">
type storage = int <br/><br/>(* variant defining pseudo multi-entrypoint actions *) <br/><br/>type action =<br/>| Increment of int<br/>| Decrement of int<br/><br/>let add (a: int) (b: int) : int = a + b<br/><br/>let subtract (a: int) (b: int) : int = a - b<br/><br/>(* real entrypoint that re-routes the flow based on the action provided *)<br/><br/>let%entry main (p : action) storage =<br/> let storage =<br/> match p with<br/> | Increment n -> add storage n<br/> | Decrement n -> subtract storage n<br/> in (([] : operation list), storage)<br/>
</code>
</pre>
</div>
</div>
</div>

View File

@ -28,7 +28,7 @@ function Versions(props) {
<header className="postHeader">
<h1>{siteConfig.title} Versions</h1>
</header>
<h3 id="latest">Current version (Stable)</h3>
<h3 id="latest">Current version</h3>
<table className="versions">
<tbody>
<tr>

View File

@ -36,22 +36,21 @@
border-bottom: 4px solid #e0e0e0;
}
.homeContainer .tabs .nav-tabs > div.active {
.homeContainer .tabs .nav-tabs > div {
cursor: pointer;
color: #24292e;
border-bottom: none;
}
.homeContainer .tabs .nav-tabs > div {
.homeContainer .tabs .nav-tabs > div.active {
border-bottom: 4px solid #1A1A1A;
}
.homeContainer .tabs .nav-tabs > div:last-of-type {
cursor: default;
color: #24292e64;
}
.homeContainer .tabs .nav-tabs > div:first-of-type {
cursor: pointer;
color: #24292e;
}
.homeContainer .tabs .nav-tabs > div.active:first-of-type {
border-bottom: 4px solid #1A1A1A;
border-bottom: none;
}
.homeContainer .tab-content {
@ -178,12 +177,27 @@ a:hover {
padding-right: 40px;
}
.productShowcaseSection.team .logos p {
padding-top: 0px;
}
.toc .toggleNav {
margin-top: 12px;
}
.mainContainer {
padding-top: 60px;
}
.tocActive .onPageNav > .toc-headings {
padding-top: 24px;
}
.docsSliderActive #tocToggler {
opacity: 0;
visibility: hidden;
}
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
}