-
Notifications
You must be signed in to change notification settings - Fork 253
Add TSPL Go Further section and resource thumbnails #227
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
kaishin
merged 3 commits into
swiftlang:content-improvements
from
kaishin:content-improvements
Feb 28, 2023
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,36 @@ | ||
| - 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/GuidedTour/GuidedTour.html | ||
| thumbnail_url: #TBD | ||
| release_date: 2014-08-18 | ||
| featured: true | ||
| external: true | ||
| - title: "Concurrency" | ||
| description: "Swift has concurrency features built into the language making it easier to write concurrent code with the assistance of the compiler. This video introduces the async/await mechanism, a key part of Swift Concurrency." | ||
| content_type: video | ||
| content_url: https://developer.apple.com/videos/play/wwdc2021/10132/ | ||
| thumbnail_url: #TBD | ||
| thumbnail_url: /assets/images/getting-started/meet-async-await-thumbnail.jpg | ||
| release_date: 2021-06-08 | ||
| external: true | ||
| - title: "Generics" | ||
| description: "In Swift, generics are a fundamental way to write abstract code. This video walks through the basics of Swift Generics and introducing generics into your code." | ||
| content_type: video | ||
| content_url: https://developer.apple.com/videos/play/wwdc2021/10132/ | ||
| thumbnail_url: #TBD | ||
| content_url: https://developer.apple.com/videos/play/wwdc2022/110352/ | ||
| thumbnail_url: /assets/images/getting-started/swift-generics-thumbnail.jpg | ||
| release_date: 2021-06-09 | ||
| external: true | ||
| - title: "Regular Expressions" | ||
| description: "Swift provides first-class regular expression support, commonly known as regex, for effective string processing. This video gives an overview of the power and flexibility of Swift Regex." | ||
| content_type: video | ||
| content_url: https://developer.apple.com/videos/play/wwdc2022/110357/ | ||
| thumbnail_url: #TBD | ||
| thumbnail_url: /assets/images/getting-started/regular-expression-thumbnail.jpg | ||
| release_date: 2022-06-07 | ||
| external: true | ||
| - title: "Strings Under The Hood" | ||
| description: "Swift strings provide a fast, Unicode-compliant way to work with text. This article provides more detail on how strings are implemented in Swift using UTF-8 and the reasons behind that choice." | ||
| content_type: article | ||
| content_url: /blog/utf8-string/ | ||
| thumbnail_url: #TBD | ||
| release_date: 2019-03-20 | ||
| external: false | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,42 @@ | ||
|
|
||
| .go-further-list{ | ||
| .go-further-list { | ||
| $grid-breakpoint: 1000px; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using Sass variable here since CSS-native variables don't seem to be supported in media queries. |
||
| list-style: none; | ||
| padding-left: 0; | ||
| display: grid; | ||
| gap: 1rem; | ||
|
|
||
| .resource { | ||
| border: 1px solid var(--color-fill-gray); | ||
| padding: 0 1rem; | ||
| border: 1px solid var(--color-fill-tertiary); | ||
| padding: 1rem; | ||
| border-radius: 4px; | ||
| display: flex; | ||
| flex-direction: column; | ||
|
|
||
| @media (min-width: $grid-breakpoint) { | ||
| &.featured { | ||
| grid-column-start: 1; | ||
| grid-column-end: 3; | ||
| } | ||
| } | ||
|
|
||
| h3 { | ||
| padding-top: 0; | ||
| } | ||
|
|
||
| p { | ||
| flex-grow: 1; | ||
| color: var(--color-secondary-label); | ||
| } | ||
|
|
||
| .thumbnail { | ||
| border-radius: 8px; | ||
| border: 1px solid var(--color-fill-gray); | ||
| margin-bottom: 1rem; | ||
| } | ||
| } | ||
|
|
||
| @media (min-width: 1000px) { | ||
| @media (min-width: $grid-breakpoint) { | ||
| grid-template-columns: repeat(2, 1fr); | ||
| } | ||
| } | ||
|
|
@@ -30,8 +48,8 @@ | |
| gap: 1rem; | ||
|
|
||
| .use-case { | ||
| border: 1px solid var(--color-fill-gray); | ||
| padding: 0 1rem; | ||
| border: 1px solid var(--color-fill-tertiary); | ||
| padding: 1rem; | ||
| border-radius: 4px; | ||
| display: flex; | ||
| flex-direction: column; | ||
|
|
@@ -57,7 +75,6 @@ a.cta-secondary { | |
| border: 1px solid var(--color-text); | ||
| color: var(--color-text); | ||
| display: block; | ||
| margin: 1rem 0; | ||
| padding: .5rem 0; | ||
| text-align: center; | ||
|
|
||
|
|
@@ -70,4 +87,4 @@ a.cta-secondary { | |
| &.external:after { | ||
| content: " ↗" | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dempseyatgithub I updated the URL here in what I assume was a typo, but I am not sure if this is the right video. Please let me know.