Skip to content

Commit dc15920

Browse files
authored
[Content Improvements] Move link to A Swift Tour to the Use Cases section (#329)
1 parent 3df3923 commit dc15920

File tree

3 files changed

+26
-11
lines changed

3 files changed

+26
-11
lines changed

_data/go_further.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
- title: "A Swift Tour"
2-
description: "_The Swift Programming Language_, the authoritative reference for Swift, begins with a tour of the language. The tour gives you an introduction to the fundamental features, concepts, and syntax of Swift. The remainder of the book explains each topic in greater detail."
3-
content_type: book
4-
content_url: https://docs.swift.org/swift-book/documentation/the-swift-programming-language/guidedtour/
5-
thumbnail_url: #TBD
6-
release_date: 2014-08-18
7-
featured: true
8-
external: true
91
- title: "Value and Reference Types"
102
description: "This article describes the differences in behavior between _value types_ and _reference types_—a fundamental part of learning Swift and choosing between structures and classes."
113
content_type: article

assets/stylesheets/pages/_getting-started.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
}
4242

4343
.use-case-list {
44+
$grid-breakpoint: 1000px;
4445
list-style: none;
4546
padding-left: 0;
4647
display: grid;
@@ -53,9 +54,17 @@
5354
display: flex;
5455
flex-direction: column;
5556

57+
@media (min-width: $grid-breakpoint) {
58+
&.featured {
59+
grid-column-start: 1;
60+
grid-column-end: 3;
61+
}
62+
}
63+
5664
h3 {
5765
line-height: 1.4;
5866
font-size: 1.4rem;
67+
padding-top: 0;
5968
}
6069

6170
p {

getting-started/_use-cases.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
## Using Swift
22

3-
Here are some examples of the many use cases of Swift, in case you want to jump in and start writing some code right away.
3+
<ul class="use-case-list">
4+
<li class="use-case featured">
5+
<h3>✨ New to Swift?</h3>
6+
<p class="description">
7+
Swift is a great first language if you are just starting your programming journey. For a brief tour of the language, check out this introductory chapter in The Swift Programming Language book.
8+
</p>
49

5-
Looking for a language reference? [The Swift Programming Language (TSPL)](https://docs.swift.org/swift-book/) book is available in [multiple languages](/documentation/#translations).
10+
<a href="https://docs.swift.org/swift-book/documentation/the-swift-programming-language/guidedtour/" class="cta-secondary">Read A Swift Tour</a>
11+
</li>
12+
</ul>
613

7-
<ul class="use-case-list">
14+
---
15+
16+
Here are some examples of the many use cases of Swift, in case you want to jump in and start writing some code right away.
817

18+
<ul class="use-case-list">
919
<li class="use-case">
1020
<h3>Command-line Tool</h3>
1121
<p class="description">
@@ -46,3 +56,7 @@ Looking for a language reference? [The Swift Programming Language (TSPL)](https:
4656
<a href="/getting-started/swiftui" class="cta-secondary">Start tutorial</a>
4757
</li>
4858
</ul>
59+
60+
---
61+
62+
Looking for a language reference? [The Swift Programming Language (TSPL)](https://docs.swift.org/swift-book/) book is available in [multiple languages](/documentation/#translations).

0 commit comments

Comments
 (0)