Skip to content

Commit 91a1c57

Browse files
authored
Merge pull request #36 from AndrewDiMola/add-lang-description
Add Tagline
2 parents ab0b50c + 61f2d51 commit 91a1c57

4 files changed

Lines changed: 40 additions & 10 deletions

File tree

website/i18n/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"localized-strings": {
44
"next": "Next",
55
"previous": "Previous",
6+
"tagline": "Hack is an object-oriented programming language for building reliable websites at epic scale",
67
"docs": {},
78
"links": {
89
"Install": "Install",
910
"Docs": "Docs",
1011
"GitHub": "GitHub",
1112
"Twitter": "Twitter",
1213
"HHVM": "HHVM",
13-
"Blog": "Blog",
14-
"IRC": "IRC"
14+
"Blog": "Blog"
1515
},
1616
"categories": {
1717
"Docusaurus": "Docusaurus",

website/pages/en/index.js

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $user_name = 'Fred';
5656
echo "<tt>Hello <strong>$user_name</tt></strong>";
5757
5858
// XHP: Typechecked, well-formed, and secure
59-
$user_name = 'Andrew';
59+
$user_name = 'Fred';
6060
$xhp = <tt>Hello <strong>{$user_name}</strong></tt>;
6161
echo await $xhp->toStringAsync();
6262
${pre}`;
@@ -89,6 +89,9 @@ class HomeSplash extends React.Component {
8989
<h2 className="projectTitle">
9090
{siteConfig.title}
9191
</h2>
92+
<h4 className="projectTagline">
93+
{siteConfig.tagline}
94+
</h4>
9295
<div className="section promoSection">
9396
<div className="promoRow">
9497
<div className="pluginRowBlock">
@@ -110,10 +113,9 @@ class HomeSplash extends React.Component {
110113

111114
function VideoContainer() {
112115
return (
113-
<div align="center" className="container margin-bottom--xl">
116+
<div align="center" padding="bottom" className="container">
114117
<div className="row">
115118
<div className="col">
116-
<h2>Watch Introductory Video</h2>
117119
<div>
118120
<iframe
119121
width="560"
@@ -154,7 +156,6 @@ class Index extends React.Component {
154156
<SocialBanner />
155157
<HomeSplash language={language} />
156158
<div className="mainContainer">
157-
<VideoContainer />
158159
<Container padding={["bottom"]}>
159160
<GridBlock
160161
align="center"
@@ -182,6 +183,30 @@ class Index extends React.Component {
182183
/>
183184
</Container>
184185
<Container padding={["bottom", "top"]} background="light">
186+
<div className="gridBlock">
187+
<div className="blockElement imageAlignSide twoByGridBlock">
188+
<div className="blockContent">
189+
<h2>
190+
Watch Our Introduction to Hack Video!
191+
</h2>
192+
<div>
193+
<MarkdownBlock>
194+
Hack is a programming language developed by Meta. It lets you write code quickly, while also having safety features built in, like static typechecking.
195+
</MarkdownBlock>
196+
<MarkdownBlock>
197+
**[Hack was open-sourced in March, 2014](https://engineering.fb.com/2014/03/20/developer-tools/hack-a-new-programming-language-for-hhvm/).**
198+
</MarkdownBlock>
199+
</div>
200+
</div>
201+
<div className="blockImage">
202+
<div>
203+
<VideoContainer/>
204+
</div>
205+
</div>
206+
</div>
207+
</div>
208+
</Container>
209+
<Container padding={["bottom", "top"]}>
185210
<div className="gridBlock">
186211
<div className="blockElement imageAlignSide imageAlignLeft twoByGridBlock">
187212
<div className="blockImage">
@@ -204,7 +229,7 @@ class Index extends React.Component {
204229
</div>
205230
</div>
206231
</Container>
207-
<Container padding={["bottom", "top"]}>
232+
<Container padding={["bottom", "top"]} background="light">
208233
<div className="gridBlock">
209234
<div className="blockElement imageAlignSide twoByGridBlock">
210235
<div className="blockContent">
@@ -227,7 +252,7 @@ class Index extends React.Component {
227252
</div>
228253
</div>
229254
</Container>
230-
<Container padding={["bottom", "top"]} background="light">
255+
<Container padding={["bottom", "top"]}>
231256
<div className="gridBlock">
232257
<div className="blockElement imageAlignSide imageAlignLeft twoByGridBlock">
233258
<div className="blockImage">
@@ -253,7 +278,7 @@ class Index extends React.Component {
253278
</div>
254279
</div>
255280
</Container>
256-
<Container padding={["bottom"]}>
281+
<Container padding={["bottom"]} background="light">
257282
<div className="gridBlock">
258283
<div className="blockElement">
259284
<div className="blockContent">

website/siteConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
const siteConfig = {
1212
title: "Hack" /* title for your website */,
13-
/* tagline: "foo" , */
13+
tagline: "Hack is an object-oriented programming language for building reliable websites at epic scale",
1414
disableTitleTagline: true,
1515
url: "https://hacklang.org" /* your website url */,
1616
baseUrl: "/" /* base url for your project */,

website/static/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@
2121
margin: 0 auto;
2222
text-align: center;
2323
}
24+
25+
/* Hack Description */
26+
.projectTagline {
27+
font-style: italic;
28+
}

0 commit comments

Comments
 (0)