Skip to content

Commit af6af25

Browse files
improve description of use cases and getting started guides (#304)
motivation: address feedback from core-team changes: * improve description of landing page use cases * improve description of getting started guides * add "cross platform command-line tool" as a landing page use case, link to getting started guides (TODO: come up with better) Co-authored-by: Alexander Sandberg <[email protected]>
1 parent c3f6c72 commit af6af25

File tree

4 files changed

+38
-18
lines changed

4 files changed

+38
-18
lines changed

assets/stylesheets/pages/_getting-started.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
padding-left: 0;
55
display: grid;
66
gap: 1rem;
7-
7+
88
.resource {
99
border: 1px solid var(--color-fill-tertiary);
1010
padding: 1rem;
@@ -18,7 +18,7 @@
1818
grid-column-end: 3;
1919
}
2020
}
21-
21+
2222
h3 {
2323
padding-top: 0;
2424
}
@@ -34,7 +34,7 @@
3434
margin-bottom: 1rem;
3535
}
3636
}
37-
37+
3838
@media (min-width: $grid-breakpoint) {
3939
grid-template-columns: repeat(2, 1fr);
4040
}
@@ -52,18 +52,18 @@
5252
border-radius: 4px;
5353
display: flex;
5454
flex-direction: column;
55-
55+
5656
h3 {
5757
line-height: 1.4;
5858
font-size: 1.4rem;
5959
}
60-
60+
6161
p {
6262
flex-grow: 1;
6363
color: var(--color-secondary-label);
6464
}
6565
}
66-
66+
6767
@media (min-width: 1000px) {
6868
grid-template-columns: repeat(2, 1fr);
6969
}
@@ -76,13 +76,13 @@ a.cta-secondary {
7676
display: block;
7777
padding: .5rem 0;
7878
text-align: center;
79-
79+
8080
&:hover {
8181
background-color: var(--color-text);
8282
color: var(--color-fill);
8383
text-decoration: none;
8484
}
85-
85+
8686
&.external:after {
8787
content: ""
8888
}

assets/stylesheets/pages/_landing.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@
143143
@media (min-width: 1000px) {
144144
grid-template-columns: repeat(2, 1fr);
145145
}
146+
147+
li:nth-child(2n-1):nth-last-of-type(1) {
148+
grid-column: span 2;
149+
}
146150
}
147151

148152
.getting-involved,

getting-started/_use-cases.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Looking for a language reference? [The Swift Programming Language (TSPL)](https:
99
<li class="use-case">
1010
<h3>Command-line Tool</h3>
1111
<p class="description">
12-
Build a cross-platform command-line tool.
12+
Learn how to create cross-platform command-line tool such as short-lived interactive programs, or long-lived daemon that runs in the background.
1313
</p>
1414

1515
<a href="/getting-started/cli-swiftpm" class="cta-secondary">Start tutorial</a>
@@ -18,7 +18,7 @@ Looking for a language reference? [The Swift Programming Language (TSPL)](https:
1818
<li class="use-case">
1919
<h3>Library</h3>
2020
<p class="description">
21-
Build a cross-platform library.
21+
Learn how to create cross-platform library for sharing reusable code, or modularize large code-base.
2222
</p>
2323

2424
<a href="/getting-started/library-swiftpm" class="cta-secondary">Start tutorial</a>
@@ -27,8 +27,9 @@ Looking for a language reference? [The Swift Programming Language (TSPL)](https:
2727
<li class="use-case">
2828
<h3>Web Service</h3>
2929
<p class="description">
30-
Use a web framework to build a web service.
31-
Requires macOS or Linux.
30+
Learn how to create a web-service using a web framework.
31+
<br><br>
32+
This guide requires macOS or Linux.
3233
</p>
3334

3435
<a href="/getting-started/vapor-web-server" class="cta-secondary">Start tutorial</a>
@@ -37,8 +38,9 @@ Looking for a language reference? [The Swift Programming Language (TSPL)](https:
3738
<li class="use-case">
3839
<h3>iOS and macOS Application</h3>
3940
<p class="description">
40-
Use Swift and SwiftUI to build an app that works on iOS and macOS.
41-
Requires macOS 12 and Xcode 14.
41+
Learn how to create an iOS or macOS application using SwiftUI.
42+
<br><br>
43+
This guide requires macOS and Xcode.
4244
</p>
4345

4446
<a href="/getting-started/swiftui" class="cta-secondary">Start tutorial</a>

index.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,29 @@ Swift is a general-purpose programming language built using a modern approach to
7272
<li>
7373
<h3>Apple platforms</h3>
7474
<p>
75-
Swift is a powerful and intuitive programming language on macOS, iOS, watchOS, tvOS and beyond. Swift code is safe by design, yet also produces software that is optimized to run lightning-fast.
75+
Swift is a powerful and intuitive programming language optimized when running on iOS, macOS, and other Apple platforms.
76+
<br><br>
77+
Apple offers a wide variety of frameworks and APIs that make applications developed for these platforms unique and fun.
78+
</p>
79+
<a href="https://developer.apple.com/swift/resources/" class="cta-secondary">Learn more</a>
80+
</li>
81+
<li>
82+
<h3>Cross-platform Command-line</h3>
83+
<p>
84+
Writing Swift is interactive and fun, the syntax is concise yet expressive.
85+
Swift code is safe by design and produces software that runs lightning-fast.
86+
<br><br>
87+
SwiftArgumentParser and Swift's growing package ecosystem make developing cross-platform command-line tools a breeze.
7688
</p>
7789

78-
<a href="https://developer.apple.com/swift/resources/" class="cta-secondary">Learn more</a>
90+
<a href="/getting-started/cli-swiftpm" class="cta-secondary">Learn more</a>
7991
</li>
8092
<li>
81-
<h3>Server</h3>
93+
<h3>Server and Networking</h3>
8294
<p>
83-
Ever dreamed of using the same programming language on both your mobile applications and their server back-ends? Swift's small footprint, quick startup time, and deterministic performance make it specifically suitable for Server applications.
95+
Swift's small memory footprint, quick startup time, and deterministic performance make it a great choice for server and other networked applications.
96+
<br><br>
97+
SwiftNIO and Swift's dynamic server ecosystem bring joy to developing networked applications.
8498
</p>
8599

86100
<a href="/server" class="cta-secondary">Learn more</a>

0 commit comments

Comments
 (0)