Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"localized-strings": {
"next": "Next",
"previous": "Previous",
"tagline": "Hack is an object-oriented programming language for building reliable websites at epic scale",
"docs": {},
"links": {
"Install": "Install",
"Docs": "Docs",
"GitHub": "GitHub",
"Twitter": "Twitter",
"HHVM": "HHVM",
"Blog": "Blog",
"IRC": "IRC"
"Blog": "Blog"
},
"categories": {
"Docusaurus": "Docusaurus",
Expand Down
39 changes: 32 additions & 7 deletions website/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $user_name = 'Fred';
echo "<tt>Hello <strong>$user_name</tt></strong>";

// XHP: Typechecked, well-formed, and secure
$user_name = 'Andrew';
$user_name = 'Fred';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-immortalize Fred

❤️

$xhp = <tt>Hello <strong>{$user_name}</strong></tt>;
echo await $xhp->toStringAsync();
${pre}`;
Expand Down Expand Up @@ -89,6 +89,9 @@ class HomeSplash extends React.Component {
<h2 className="projectTitle">
{siteConfig.title}
</h2>
<h4 className="projectTagline">
{siteConfig.tagline}
</h4>
<div className="section promoSection">
<div className="promoRow">
<div className="pluginRowBlock">
Expand All @@ -110,10 +113,9 @@ class HomeSplash extends React.Component {

function VideoContainer() {
return (
<div align="center" className="container margin-bottom--xl">
<div align="center" padding="bottom" className="container">
<div className="row">
<div className="col">
<h2>Watch Introductory Video</h2>
<div>
<iframe
width="560"
Expand Down Expand Up @@ -154,7 +156,6 @@ class Index extends React.Component {
<SocialBanner />
<HomeSplash language={language} />
<div className="mainContainer">
<VideoContainer />
<Container padding={["bottom"]}>
<GridBlock
align="center"
Expand Down Expand Up @@ -182,6 +183,30 @@ class Index extends React.Component {
/>
</Container>
<Container padding={["bottom", "top"]} background="light">
<div className="gridBlock">
<div className="blockElement imageAlignSide twoByGridBlock">
<div className="blockContent">
<h2>
Watch Our Introduction to Hack Video!
</h2>
<div>
<MarkdownBlock>
Hack is a programming language developed by Meta. It lets you write code quickly, while also having safety features built in, like static typechecking.
</MarkdownBlock>
<MarkdownBlock>
**[Hack was open-sourced in March, 2014](https://engineering.fb.com/2014/03/20/developer-tools/hack-a-new-programming-language-for-hhvm/).**
</MarkdownBlock>
</div>
</div>
<div className="blockImage">
<div>
<VideoContainer/>
</div>
</div>
</div>
</div>
</Container>
<Container padding={["bottom", "top"]}>
<div className="gridBlock">
<div className="blockElement imageAlignSide imageAlignLeft twoByGridBlock">
<div className="blockImage">
Expand All @@ -204,7 +229,7 @@ class Index extends React.Component {
</div>
</div>
</Container>
<Container padding={["bottom", "top"]}>
<Container padding={["bottom", "top"]} background="light">
<div className="gridBlock">
<div className="blockElement imageAlignSide twoByGridBlock">
<div className="blockContent">
Expand All @@ -227,7 +252,7 @@ class Index extends React.Component {
</div>
</div>
</Container>
<Container padding={["bottom", "top"]} background="light">
<Container padding={["bottom", "top"]}>
<div className="gridBlock">
<div className="blockElement imageAlignSide imageAlignLeft twoByGridBlock">
<div className="blockImage">
Expand All @@ -253,7 +278,7 @@ class Index extends React.Component {
</div>
</div>
</Container>
<Container padding={["bottom"]}>
<Container padding={["bottom"]} background="light">
<div className="gridBlock">
<div className="blockElement">
<div className="blockContent">
Expand Down
2 changes: 1 addition & 1 deletion website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

const siteConfig = {
title: "Hack" /* title for your website */,
/* tagline: "foo" , */
tagline: "Hack is an object-oriented programming language for building reliable websites at epic scale",
disableTitleTagline: true,
url: "https://hacklang.org" /* your website url */,
baseUrl: "/" /* base url for your project */,
Expand Down
5 changes: 5 additions & 0 deletions website/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@
margin: 0 auto;
text-align: center;
}

/* Hack Description */
.projectTagline {
font-style: italic;
}