Skip to content

Commit

Permalink
Add icons to 'Why D'
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Jun 17, 2016
1 parent d4f3d0d commit 0ea1dd7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions index.dd
Expand Up @@ -156,7 +156,7 @@ $(DIVC boxes,
$(DIVC whyd, $(SECTION2 Why D?,

$(DIVC section,
$(DIV, $(SECTION3 Convenience,
$(DIV, $(SECTION3 $(WHY_D_ICON magic) Convenience,

$(P D allows writing large code fragments without redundantly specifying types,
like dynamic languages do. On the other hand, static inference deduces types and other
Expand Down Expand Up @@ -239,7 +239,7 @@ void main()

)))

$(DIVC section, $(DIV, $(SECTION3 Power,
$(DIVC section, $(DIV, $(SECTION3 $(WHY_D_ICON rocket) Power,

$(P The best paradigm is to not impose something at the expense of others.
D offers classic polymorphism, value semantics, functional
Expand Down Expand Up @@ -309,7 +309,7 @@ Read more).)

)))

$(DIVC section, $(DIV, $(SECTION3 Efficiency,
$(DIVC section, $(DIV, $(SECTION3 $(WHY_D_ICON bolt) Efficiency,

$(P D compiles naturally to efficient native code.)

Expand Down Expand Up @@ -375,7 +375,7 @@ consistency. $(LINK2 spec/memory-safe-d.html, Read more).)

)))

$(DIVC section, $(DIV, $(SECTION3 Industry-proven,
$(DIVC section, $(DIV, $(SECTION3 $(WHY_D_ICON industry) Industry-proven,
$(DIVC frontpage-orgs center,
$(FRONTPAGE_ORG Facebook, https://www.facebook.com, facebook.svg,
Online social networking service
Expand Down Expand Up @@ -420,12 +420,16 @@ Macros:
LAYOUT_TITLE=
TOUR=$(DIVC item, $(SECTION4 $(LINK2 $1, $(TC i, fa fa-$2 big-icon)$3), $4))
TOUR=$(DIVC item, $(SECTION4 $(TC i, fa fa-$1 big-icon)$2, $3))
WHY_D_ICON=$(TC i, fa fa-$1 why-d-icon)
_=
FRONTPAGE_ORG_IMG=$(DIVC frontpage-orgs-img-wrapper vcontainer-box, <img class="vcontainer-element" src="$(ROOT_DIR)images/orgs-using-d/$0" />)
FRONTPAGE_ORG=$(DIVC frontpage-orgs-cell dont-highlight-link, $(LINK2 $2, $(FRONTPAGE_ORG_IMG $3)) $(H3 $1) $(P $(I $4 )))
_= Single word inline CSS needs to be escaped _=
C_A=$1:$2;
EXTRA_HEADERS=$(T style,
.why-d-icon {
padding-right: 0.2em;
}
.frontpage-orgs h3 {
$(C_A margin, 0.4em)
margin-left: 0;
Expand Down

0 comments on commit 0ea1dd7

Please sign in to comment.