[LIGO-93] redesign profile pics

This commit is contained in:
Sarah Fowler 2019-09-25 11:45:37 -04:00 committed by keiki
parent bfb2ea6dc4
commit 9455d871a1
5 changed files with 181 additions and 45 deletions

7
.gitignore vendored
View File

@ -5,5 +5,10 @@ dune-project
cache/* cache/*
Version.ml Version.ml
/_opam/ /_opam/
<<<<<<< HEAD
/*.pp.ligo /*.pp.ligo
**/.DS_Store <<<<<<< HEAD
**/.DS_Store
=======
**/.DS_Store
>>>>>>> [LIGO-93] redesign profile pics

View File

@ -1,4 +1,5 @@
**/.DS_Store **/.DS_Store
.DS_Store
node_modules node_modules

View File

@ -106,25 +106,109 @@ class HomeSplash extends React.Component {
const langPart = `${language ? `${language}/` : ""}`; const langPart = `${language ? `${language}/` : ""}`;
const docUrl = doc => `${baseUrl}${docsPart}${langPart}${doc}`; const docUrl = doc => `${baseUrl}${docsPart}${langPart}${doc}`;
const SampleCode = props => ( const SplashContainer = props => (
<div className="sample-code-container"> <div className="homeContainer">
<div className="sample-code"> <div className="homeSplashFade">
<div className="tabs"> <div className="wrapper homeWrapper">
<div className="nav-tabs"> <div className="tabs">
<div <div className="nav-tabs">
id="tab-group-3-tab-4" <div
className="nav-link active" id="tab-group-3-tab-4"
data-group="group_3" className="nav-link active"
data-tab="tab-group-3-content-4" data-group="group_3"
> data-tab="tab-group-3-content-4"
PascaLIGO >
PascaLIGO
</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> */}
</div> </div>
<div <div className="tab-content">
className="nav-link" <div
data-group="group_3" id="tab-group-3-content-4"
data-tab="tab-group-3-content-5" className="tab-pane active"
> data-group="group_3"
CameLIGO tabIndex="-1"
>
<div>
<span>
<pre>
<code className="hljs css language-Pascal">
// variant defining pseudo multi-entrypoint actions
<br />
type action is
<br />| Increment of int
<br />| Decrement of int
<br />
<br />
function add (const a : int ; const b : int) : int is
<br /> block {"{ skip }"} with a + b<br />
<br />
function subtract (const a : int ; const b : int) :
int is
<br /> block {"{ skip }"} with a - b<br />
<br />
// real entrypoint that re-routes the flow based on
the action provided
<br />
function main (const p : action ; const s : int) :
(list(operation) * int) is
<br /> block {"{ skip }"} with ((nil :
list(operation)),
<br /> case p of
<br /> | Increment(n) -&gt; add(s, n)
<br /> | Decrement(n) -&gt; subtract(s, n)
<br /> end)
<br />
</code>
</pre>
</span>
</div>
</div>
<div
id="tab-group-3-content-5"
className="tab-pane"
data-group="group_3"
tabIndex="-1"
>
<div>
<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> </div>
<div className="disabled">ReasonLIGO (coming soon) </div> <div className="disabled">ReasonLIGO (coming soon) </div>
</div> </div>
@ -132,22 +216,32 @@ class HomeSplash extends React.Component {
{PascalLIGOTab()} {PascalLIGOTab()}
{CamelLIGOTab()} {CamelLIGOTab()}
</div> </div>
{props.children}
</div> </div>
</div> </div>
</div> </div>
); );
return ( return (
<div className="home-container"> <SplashContainer>
<div className="home-text"> <div className="inner">
<h4 className="tagline-text">{siteConfig.tagline}</h4> <ProjectTitle siteConfig={siteConfig} />
<p className="body">{siteConfig.taglineSub}</p> <PromoSection>
<LinkButton <Button href={docUrl("setup/installation.html")}>
href={docUrl("setup/installation.html")} Get Started
className="large-primary-button" </Button>
> <Button
Get Started href={docUrl(
</LinkButton> "tutorials/get-started/tezos-taco-shop-smart-contract"
)}
>
Tutorials
</Button>
<Button href={docUrl("contributors/origin.html")}>
Contribute
</Button>
</PromoSection>
</div> </div>
<SampleCode /> <SampleCode />
</div> </div>
@ -246,20 +340,23 @@ class Index extends React.Component {
{[ {[
{ {
content: content:
"Write types, then code, and benefit from the safety coming from type systems.", "Write in PascaLIGO (pascal-like syntax) or CameLIGO (caml-like syntax). If you know OCaml, you can also add your own syntax.",
image: `${baseUrl}img/strong-type-system.svg`, image: `${baseUrl}img/edit.svg`,
title: "Strong Type System" imageAlign: "top",
title: "Syntax Agnostic"
}, },
{ {
content: content:
"Write in PascaLIGO (pascal-like syntax) or CameLIGO (caml-like syntax). If you know OCaml, you can also add your own syntax.", "Write types, then code, and benefit from the safety coming from type systems.",
image: `${baseUrl}img/syntax-agnostic.svg`, image: `${baseUrl}img/lightning.svg`,
title: "Syntax Agnostic" imageAlign: "top",
title: "Strong Type System"
}, },
{ {
content: "With Granary, you can use LIGO as a lib from NodeJS.", content: "With Granary, you can use LIGO as a lib from NodeJS.",
image: `${baseUrl}img/easy-integration.svg`, image: `${baseUrl}img/puzzle.svg`,
imageAlign: "top",
title: "Easy Integration" title: "Easy Integration"
} }
].map(FeatureCard)} ].map(FeatureCard)}
@ -313,6 +410,8 @@ class Index extends React.Component {
</a> </a>
)); ));
const pageUrl = page => baseUrl + (language ? `${language}/` : "") + page;
return ( return (
<div className="partners-container hide-small"> <div className="partners-container hide-small">
{PartnerShowcase} {PartnerShowcase}
@ -344,10 +443,17 @@ class Index extends React.Component {
</a> </a>
)); ));
const pageUrl = page => baseUrl + (language ? `${language}/` : "") + page;
return ( return (
<div className="team"> <div className="productShowcaseSection paddingBottom team">
<h2>Team</h2> <h1 className="sectionTitle">Team</h1>
<div className="flex-inline-container">{showcase}</div> <div className="team-container">{showcase}</div>
{/* <div className="more-users">
<a className="button" href={pageUrl('users.html')}>
More {siteConfig.title} Users
</a>
</div> */}
</div> </div>
); );
}; };

View File

@ -14,7 +14,7 @@ const partners = [
caption: "Nomadic Labs", caption: "Nomadic Labs",
// You will need to prepend the image path with your baseUrl // You will need to prepend the image path with your baseUrl
// if it is not '/', like: '/test-site/img/image.jpg'. // if it is not '/', like: '/test-site/img/image.jpg'.
image: "/img/nomadic-logo.svg", image: "/img/nomadic-logo.jpg",
infoLink: "https://www.nomadic-labs.com/", infoLink: "https://www.nomadic-labs.com/",
pinned: true pinned: true
}, },
@ -22,7 +22,7 @@ const partners = [
caption: "Tocqueville Group", caption: "Tocqueville Group",
// You will need to prepend the image path with your baseUrl // You will need to prepend the image path with your baseUrl
// if it is not '/', like: '/test-site/img/image.jpg'. // if it is not '/', like: '/test-site/img/image.jpg'.
image: "/img/tq-logo-2.svg", image: "/img/tq-logo.svg",
infoLink: "https://tqgroup.io/", infoLink: "https://tqgroup.io/",
pinned: true pinned: true
}, },
@ -30,7 +30,7 @@ const partners = [
caption: "Stove Labs", caption: "Stove Labs",
// You will need to prepend the image path with your baseUrl // You will need to prepend the image path with your baseUrl
// if it is not '/', like: '/test-site/img/image.jpg'. // if it is not '/', like: '/test-site/img/image.jpg'.
image: "/img/stove-logo.svg", image: "/img/stove-logo.png",
infoLink: "https://stove-labs.com", infoLink: "https://stove-labs.com",
pinned: true pinned: true
} }
@ -82,8 +82,7 @@ const team = [
const siteConfig = { const siteConfig = {
title: "LIGO", // Title for your website. title: "LIGO", // Title for your website.
tagline: tagline:
"LIGO is a statically typed high-level smart-contract language that compiles down to Michelson.", "LIGO is a statically typed high-level smart-contract language that compiles down to Michelson. It seeks to be easy to use, extensible and safe.",
taglineSub: "It seeks to be easy to use, extensible and safe.",
url: "https://your-docusaurus-test-site.com", // Your website URL url: "https://your-docusaurus-test-site.com", // Your website URL
baseUrl: "/", // Base URL for your project */ baseUrl: "/", // Base URL for your project */
// For github.io type URLs, you would set the url and baseUrl like: // For github.io type URLs, you would set the url and baseUrl like:

View File

@ -454,10 +454,35 @@ body
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 20%; max-width: fit-content;
color: var(--color-primary-text);
padding: 0 var(--padding-level-1); padding: 0 var(--padding-level-1);
} }
.profileContainer:hover {
color: var(--color-primary-brand);
}
.profileImage {
max-height: 195px;
max-width: 195px;
border: var(--color-gray);
}
.profileImage:hover {
box-shadow: 12px 12px 0px var(--color-primary-brand);
}
.team-container {
display: flex;
flex-direction: row;
justify-content: space-around;
padding: var(--padding-level-1);
flex-wrap: wrap;
}
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
}
.profileContainer p { .profileContainer p {
color: var(--color-primary-text); color: var(--color-primary-text);
} }