Skip to content

Commit 2b9391e

Browse files
committed
workshopped changes
1 parent 81f3260 commit 2b9391e

File tree

10 files changed

+28
-30
lines changed

10 files changed

+28
-30
lines changed

_data/awesome-scala.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
summaryText: Have another use case? Scaladex indexes awesome Scala libraries. Search in the box below or pick one of the popular categories.
1+
summaryText: Have another use case? Scaladex indexes awesome Scala libraries. Search in the box below.
22
links:
33
- title: Big Data Processing
44
url: https://index.scala-lang.org/awesome#big-data

_layouts/frontpage.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,26 +184,26 @@ <h2><span>{{page.ecosystemTitle}}</span></h2>
184184
<div class="main-browser">
185185
<div class="input-control">
186186
<span><i class="fa fa-search"></i></span>
187-
<input type="text" placeholder="e.g. scala/toolkit" id="scaladex-search">
187+
<input type="text" placeholder="e.g. database" id="scaladex-search">
188188
</div>
189189
</div>
190190
<a class="button awesome" href="{{site.data.common.scaladexUrl}}/awesome">Awesome Scala</a>
191191
</div>
192192
</div>
193-
<div class="awesome-table">
193+
<!-- <div class="awesome-table">
194194
<div class="wrap">
195195
<div class="awesome-items">
196196
{% for awesomeLink in site.data.awesome-scala.links %}
197-
<a href="{{awesomeLink.url}}" class="content-card">
197+
<a href="{{awesomeLink.url}}" class="button button_call-to-action content-card">
198198
<h3><i class="fa fa-search"></i>{{awesomeLink.title}}</h3>
199199
</a>
200200
{% endfor %}
201-
</div>
201+
</div> -->
202202
<!-- <div class="awesome-summary">
203203
<p class="awesome-summary-text">{{site.data.awesome-scala.summaryText}}</p>
204204
</div> -->
205-
</div>
206-
</div>
205+
<!-- </div>
206+
</div> -->
207207
</div>
208208
</section>
209209

_sass/components/buttons.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88
text-transform: uppercase;
99
color: #fff;
1010
background: $brand-secondary;
11-
border-radius: $border-radius-base;
11+
border-radius: $border-radius-bold;
1212
display: inline-block;
1313

14+
box-shadow: 0 4px 7px 0 rgba(0, 0, 0, 0.2);
15+
16+
1417
&:active,
1518
&:focus,
1619
&:hover {

_sass/layout/nutshell.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
top: -10px;
5757
background: none;
5858

59+
box-shadow: none;
60+
5961
&:active,
6062
&:focus,
6163
&:hover {
@@ -179,6 +181,10 @@
179181
&.scala-row_align-start {
180182
@include align-items(start);
181183
}
184+
185+
&:has(+ .scala-row) {
186+
margin-bottom: 20px;
187+
}
182188
}
183189

184190
h3 {

_sass/layout/scala-ecosystem.scss

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,8 @@
4545

4646
.content-card {
4747
float: left;
48-
// border: 2px solid $gray-dark;
49-
// padding: 2px;
50-
background: $brand-secondary;
51-
margin: 5px 3px;
48+
margin: 3px;
5249
display: block;
53-
border-radius: $border-radius-base;
54-
55-
&:active,
56-
&:focus,
57-
&:hover {
58-
background: $brand-primary;
59-
}
60-
6150
}
6251

6352
a {
@@ -66,7 +55,6 @@
6655

6756
font-size: $font-size-small;
6857
transition: $base-transition;
69-
padding: 10px;
7058
i {
7159
margin-right: 6px;
7260
}

_sass/utils/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ $padding-medium: 30px;
9393
$padding-small: 20px;
9494
$padding-xsmall: 10px;
9595
//------------------------------------------------
96+
$border-radius-bold: 5px;
9697
$border-radius-base: 3px;
9798
$border-radius-small: 2px;
9899
$border-radius-medium: 10px;

_scala_use_case_items/2-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ icon: "icon11.svg"
2020
<div class="code-element dark">
2121
<div class="bar-code"><span>Analyse data across a cluster with Spark</span></div>
2222
<pre><code class="language-scala">// Count the number of words in a text source
23-
val textFile = sc.textFile("hdfs://...")
23+
val textFile = spark.textFile("hdfs://...")
2424
val counts = textFile
2525
.flatMap(line => line.split(" "))
2626
.map(word => (word, 1))

_scala_use_case_items/3-cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
shortTitle: "Command Line"
33
shortDescription: "Superpower your scripts with the Scala command. Get hands-on with the Scala Toolkit. Easily add libraries. Build CLI apps with instant startup."
4-
expandText: "Building Utilities"
4+
expandText: "Scripting Utilities"
55
anchorTarget: "build-scala-tools"
66
icon: "icon4.svg"
77
---
@@ -36,7 +36,7 @@ os.list(os.pwd).sortBy(os.size).foreach(println)</code></pre>
3636
<div class="scala-text scala-text-large">
3737
<h3>Get productive with the Scala Toolkit</h3>
3838
<p class="emph">The Scala Toolkit is a good fit for writing a script, prototyping, or bootstrapping a new application.</p>
39-
<p>Including a selection of approachable libraries to perform everyday tasks, Toolkit helps you work with files and processes, parse JSON, send HTTP requests and unit test code.</p>
39+
<p>Including a selection of approachable libraries to perform everyday tasks, the Scala Toolkit helps you work with files and processes, parse JSON, send HTTP requests and unit test code.</p>
4040
<p>Toolkit libraries work great on the JVM, JS and Native platforms, all while leveraging a simple code style.</p>
4141
<a class="button button_call-to-action" href="https://docs.scala-lang.org/toolkit/introduction.html" target="_blank" rel="none">find useful snippets in the Toolkit Tutorials</a>
4242
</div>
@@ -64,7 +64,7 @@ os.write(os.pwd / "response.json", response.body)</code></pre>
6464
<div class="scala-row">
6565
<div class="scala-code">
6666
<div class="scala-text scala-text-large">
67-
<h3>Compile to native, then deploy easily</h3>
67+
<h3>Package to native, deploy easily</h3>
6868
<p class="emph">Package your apps to native binaries for instant startup time.</p>
6969
<p>Deploy to Docker images, JS scripts, Spark or Hadoop jobs, and more.</p>
7070
<a class="button button_call-to-action" href="https://scala-cli.virtuslab.org/docs/commands/package" target="_blank" rel="none">other ways to package applications</a>

_scala_use_case_items/4-frontend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
shortTitle: "Frontend Web"
33
shortDescription: "Reactive UI's backed by types. Use the same Scala libraries across the stack. Integrate with the JavaScript library and tooling ecosystem."
4-
expandText: "build for frontend"
4+
expandText: "building frontend"
55
anchorTarget: "explore-scalajs"
66
icon: "icon8.svg"
77
---

index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ headerButtonUrl: "/what-is-scala/"
1313
gettingStarted:
1414
mainTitle: "Get Started"
1515
mainUrl: "https://docs.scala-lang.org/getting-started.html"
16-
subtitle: "Scala Book"
17-
subtitleLink: "https://docs.scala-lang.org/scala3/book/introduction.html"
16+
subtitle: "Overview"
17+
subtitleLink: "https://docs.scala-lang.org/tour/tour-of-scala.html"
1818
links:
19-
- title: "Tour"
20-
url: "https://docs.scala-lang.org/tour/tour-of-scala.html"
19+
- title: "Guide"
20+
url: "https://docs.scala-lang.org/scala3/book/introduction.html"
2121
- title: "Courses"
2222
url: "https://docs.scala-lang.org/online-courses.html"
2323
apiDocs:

0 commit comments

Comments
 (0)