Skip to content

Commit

Permalink
Add goal section to main page - without design.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueMoein committed Feb 24, 2019
1 parent 3e75338 commit 10d77e0
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
Binary file modified design/UI.bmpr
Binary file not shown.
18 changes: 17 additions & 1 deletion website/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class HomeSplash extends React.Component {
);

const PromoSection = props => (
<div className="section promoSection" id="booklets">
<div className="section promoSection">
<div className="promoRow">
<div className="pluginRowBlock">{props.children}</div>
</div>
Expand Down Expand Up @@ -65,7 +65,23 @@ class Index extends React.Component {
<div>
<HomeSplash config={config}/>
<div className="mainContainer">
<div className="goal-section">
<div className="wrapper">
<div className="row">
<div className="col-md-7 col-xs-12">
<h1>هدف</h1>
<p>این روزها جاوااسکریپت به امپراطور وب تبدیل شده است.
این که این زبان و فریمورک های مربوط به آن را یا د بگیریم، کمک بسیاری
برای تبدیل شدن به یک همه فن حریف در وب به ما خواهد داد.
</p>
</div>
<div className="col-md-5 col-xs-12 booklet-image">
<img width="220" src="/img/booklets/JS-Book.png" />
</div>
</div>
</div>
</div>
<div className="wrapper" id="booklets">
<div className="row">
{booklets.map(b => (
<Booklet key={b.name} booklet={b} />
Expand Down
2 changes: 1 addition & 1 deletion website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const siteConfig = {

colors: {
primaryColor: '#323330',
secondaryColor: '#f7b92a',
secondaryColor: '#f0db4f',
},

docsSideNavCollapsible: true,
Expand Down
17 changes: 16 additions & 1 deletion website/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ table {
}

.homeSplashFade {
background-color: #f7c500;
background: #F7971E; /* fallback for old browsers */
background: -webkit-linear-gradient(to left, #FFD200, #F7971E); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to left, #FFD200, #F7971E); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

direction: rtl;
}

Expand All @@ -191,4 +194,16 @@ table {

.nav-footer .sitemap a {
margin: 0;
}

.goal-section {
background: #20232A;
color: white;
margin-top: -48px;
height: 400px;
}

.booklet-image {
text-align: left;
padding-top: 28px;
}
Binary file added website/static/img/booklets/JS-Book.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 10d77e0

Please sign in to comment.