Skip to content

Commit 4798f0e

Browse files
committed
add why
1 parent 2e60a03 commit 4798f0e

File tree

6 files changed

+147
-82
lines changed

6 files changed

+147
-82
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<!-- Plugins CSS -->
1717
<link rel="stylesheet" type="text/css" href="{{ '/assets/plugins/font-awesome/css/font-awesome.css' | prepend: site.baseurl }}">
1818
<link rel="stylesheet" type="text/css" href="{{ '/assets/plugins/elegant_font/css/style.css' | prepend: site.baseurl }}">
19+
<link rel="stylesheet" type="text/css" href="{{ '/assets/plugins/prism/prism.css' | prepend: site.baseurl }}">
1920

2021
<!-- Theme CSS -->
21-
<link rel="stylesheet" type="text/css" href="{{ '/assets/css/highlight.css' | prepend: site.baseurl }}">
2222
<link rel="stylesheet" type="text/css" href="{{ '/assets/css/styles.css' | prepend: site.baseurl }}"
2323
id="theme-style">
2424
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch.min.css">

_layouts/home.html

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<div class="greeting">
2222
<div>
23-
<div class="name">WurstScript</div>
23+
<h1 class="name">WurstScript</h1>
2424
<div class="tagline">Efficient. Innovative. Delicious.</div>
2525
<a class="btn btn-primary">Get Started</a>
2626
</div>
@@ -32,7 +32,7 @@
3232
</div>
3333

3434
<div class="news">
35-
<div class="title">Latest Updates</div>
35+
<h2 class="title">Latest Updates</h2>
3636
<div class="cards">
3737
{% assign posts = site.news | sort: 'date' | reverse %}
3838
{% for post in posts %}
@@ -47,6 +47,59 @@ <h3>{{ post.title }}</h3>
4747
</div>
4848
</div>
4949

50+
<div class="why-wurst">
51+
<h2 class="title">Why Wurst?</h2>
52+
53+
<p>WurstScript is a programming language and modding toolkit used to create Warcraft III maps wit ease.
54+
It supports Warcraft III reforged and older versions by emitting either Jass or Lua code.</p>
55+
56+
<div class="tabbed">
57+
<input type="radio" id="tab1" name="css-tabs" checked>
58+
<input type="radio" id="tab2" name="css-tabs">
59+
<input type="radio" id="tab3" name="css-tabs">
60+
61+
<ul class="tabs">
62+
<li class="tab"><label for="tab1">Syntax & Features</label></li>
63+
<li class="tab"><label for="tab2">Compiletime</label></li>
64+
<li class="tab"><label for="tab3">Optimizations</label></li>
65+
</ul>
66+
67+
<div class="tab-content">
68+
<h4>WurstScript is a strongly typed language with indentation syntax. </h4>
69+
<pre class="language-wurst">
70+
<code class="language-wurst">init
71+
EventListener.onCast(ABIL_ID) caster ->
72+
forUnitsOfPlayer(caster.getOwner()) u ->
73+
u..addMana(100)
74+
..addHP(100)
75+
..addEffect(Abilities.faerieFireTarget, AttachmentPoints.chest)
76+
</code>
77+
</pre>
78+
</div>
79+
80+
<div class="tab-content">
81+
<h4>WurstScript supports interpreting code at compiletime. This includes the generation of map data objects, such as units, abilities and items.</h4>
82+
<pre class="language-wurst">
83+
<code class="language-wurst">constant UNIT_ID = compiletime(UNIT_ID_GEN.next)
84+
85+
@compiletime
86+
function createUnit()
87+
new ZombieDefinition(UNIT_ID, UnitIds.dalaranmutant)
88+
..setName("Custom Unit")
89+
..setArmorType(ArmorType.Unarmored)
90+
..setAttack1TargetsAllowed(commaList(TargetsAllowed.ground, TargetsAllowed.structure, TargetsAllowed.debris))
91+
</code>
92+
</pre>
93+
94+
<div class="tab-content">
95+
<h4>New age bullshit</h4>
96+
<p>Our conversations with other pilgrims have led to an awakening of pseudo-astral consciousness. Who are we? Where on the great myth will we be re-energized? We are at a crossroads of complexity and stagnation.</p>
97+
<p>Eons from now, we dreamers will exist like never before as we are aligned by the cosmos. We are being called to explore the stratosphere itself as an interface between nature and complexity. We must learn how to lead infinite lives in the face of bondage.</p>
98+
<p>Generated by the <a href="http://sebpearce.com/bullshit/">New Age Bullshit Generator</a></p>
99+
</div>
100+
</div>
101+
</div>
102+
50103
</div>
51104

52105

@@ -93,7 +146,9 @@ <h2 class="title">{{ page.heading }}</h2>
93146
<script type="text/javascript" src="{{ '/assets/plugins/jquery-1.12.3.min.js' | prepend: site.baseurl }}"></script>
94147
<script type="text/javascript" src="{{ '/assets/plugins/bootstrap/js/bootstrap.min.js' | prepend: site.baseurl }}"></script>
95148
<script type="text/javascript" src="{{ '/assets/plugins/jquery-match-height/jquery.matchHeight-min.js' | prepend: site.baseurl }}"></script>
149+
<script type="text/javascript" src="{{ '/assets/plugins/prism/prism.min.js' | prepend: site.baseurl }}"></script>
96150
<script type="text/javascript" src="{{ '/assets/js/instantsearch.min.js' | prepend: site.baseurl }}"></script>
151+
<script type="text/javascript" src="{{ '/assets/js/wurst.js' | prepend: site.baseurl }}"></script>
97152
<script type="text/javascript" src="{{ '/assets/js/main.js' | prepend: site.baseurl }}"></script>
98153
<script type="text/javascript" src="{{ '/assets/js/buttons.js' | prepend: site.baseurl }}"></script>
99154
<script type="application/ld+json">

_sass/base.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ a {
149149
overflow: hidden;
150150
}
151151

152+
pre {
153+
display: flex;
154+
}
155+
152156

153157
code {
154158
// font-weight: bold;

_sass/landing.scss

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,84 @@
124124

125125
}
126126

127+
.why-wurst {
128+
display: flex;
129+
flex-direction: column;
130+
align-items: center;
131+
width: 100%;
132+
133+
.title {
134+
font-size: 32px;
135+
font-weight: 500;
136+
align-self: flex-start;
137+
margin-bottom: 24px;
138+
}
139+
140+
}
141+
142+
.tabbed {
143+
overflow-x: hidden; /* so we could easily hide the radio inputs */
144+
margin: 32px 0;
145+
padding-bottom: 16px;
146+
border-bottom: 1px solid #ccc;
147+
width: 100%;
148+
}
149+
150+
.tabbed [type="radio"] {
151+
/* hiding the inputs */
152+
display: none;
153+
}
154+
155+
.tabs {
156+
display: flex;
157+
align-items: stretch;
158+
list-style: none;
159+
padding: 0;
160+
border-bottom: 1px solid #ccc;
161+
}
162+
.tab > label {
163+
display: block;
164+
margin-bottom: -1px;
165+
padding: 12px 15px;
166+
border: 1px solid #ccc;
167+
background: var(--lt-color-gray-700);
168+
color: var(--text-color);
169+
font-size: 12px;
170+
font-weight: 600;
171+
text-transform: uppercase;
172+
letter-spacing: 1px;
173+
cursor: pointer;
174+
transition: all 0.3s;
175+
}
176+
.tab:hover label {
177+
border-top-color: #333;
178+
color: #333;
179+
}
180+
181+
.tab-content {
182+
display: none;
183+
color: #777;
184+
width: 100%;
185+
}
186+
187+
/* As we cannot replace the numbers with variables or calls to element properties, the number of this selector parts is our tab count limit */
188+
.tabbed [type="radio"]:nth-of-type(1):checked ~ .tabs .tab:nth-of-type(1) label,
189+
.tabbed [type="radio"]:nth-of-type(2):checked ~ .tabs .tab:nth-of-type(2) label,
190+
.tabbed [type="radio"]:nth-of-type(3):checked ~ .tabs .tab:nth-of-type(3) label,
191+
.tabbed [type="radio"]:nth-of-type(4):checked ~ .tabs .tab:nth-of-type(4) label,
192+
.tabbed [type="radio"]:nth-of-type(5):checked ~ .tabs .tab:nth-of-type(5) label {
193+
border-bottom-color: #fff;
194+
background: #fff;
195+
color: #222;
196+
}
197+
198+
.tabbed [type="radio"]:nth-of-type(1):checked ~ .tab-content:nth-of-type(1),
199+
.tabbed [type="radio"]:nth-of-type(2):checked ~ .tab-content:nth-of-type(2),
200+
.tabbed [type="radio"]:nth-of-type(3):checked ~ .tab-content:nth-of-type(3),
201+
.tabbed [type="radio"]:nth-of-type(4):checked ~ .tab-content:nth-of-type(4) {
202+
display: block;
203+
}
204+
127205
.news {
128206
display: flex;
129207
flex-direction: column;

assets/css/highlight.css

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)