Skip to content

[Content Improvements] Move link to A Swift Tour to the Use Cases section #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions _data/go_further.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
- title: "A Swift Tour"
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."
content_type: book
content_url: https://docs.swift.org/swift-book/documentation/the-swift-programming-language/guidedtour/
thumbnail_url: #TBD
release_date: 2014-08-18
featured: true
external: true
- title: "Value and Reference Types"
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."
content_type: article
Expand Down
9 changes: 9 additions & 0 deletions assets/stylesheets/pages/_getting-started.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
}

.use-case-list {
$grid-breakpoint: 1000px;
list-style: none;
padding-left: 0;
display: grid;
Expand All @@ -53,9 +54,17 @@
display: flex;
flex-direction: column;

@media (min-width: $grid-breakpoint) {
&.featured {
grid-column-start: 1;
grid-column-end: 3;
}
}

h3 {
line-height: 1.4;
font-size: 1.4rem;
padding-top: 0;
}

p {
Expand Down
20 changes: 17 additions & 3 deletions getting-started/_use-cases.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
## Using Swift

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.
<ul class="use-case-list">
<li class="use-case featured">
<h3>✨ New to Swift?</h3>
<p class="description">
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.
</p>

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

<ul class="use-case-list">
---

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.

<ul class="use-case-list">
<li class="use-case">
<h3>Command-line Tool</h3>
<p class="description">
Expand Down Expand Up @@ -46,3 +56,7 @@ Looking for a language reference? [The Swift Programming Language (TSPL)](https:
<a href="/getting-started/swiftui" class="cta-secondary">Start tutorial</a>
</li>
</ul>

---

Looking for a language reference? [The Swift Programming Language (TSPL)](https://docs.swift.org/swift-book/) book is available in [multiple languages](/documentation/#translations).