From e70c9b844d914ef158d3e962e73f4c6078a576a3 Mon Sep 17 00:00:00 2001 From: Reda Lemeden Date: Mon, 19 Jun 2023 16:05:22 +0200 Subject: [PATCH 1/2] Update Use Cases and Go Further sections --- _data/go_further.yml | 8 -------- .../stylesheets/pages/_getting-started.scss | 9 +++++++++ getting-started/_use-cases.md | 20 ++++++++++++++++--- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/_data/go_further.yml b/_data/go_further.yml index cce32732b..f7b9d4a17 100644 --- a/_data/go_further.yml +++ b/_data/go_further.yml @@ -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 diff --git a/assets/stylesheets/pages/_getting-started.scss b/assets/stylesheets/pages/_getting-started.scss index 7177ff513..e2cdcbc1a 100644 --- a/assets/stylesheets/pages/_getting-started.scss +++ b/assets/stylesheets/pages/_getting-started.scss @@ -41,6 +41,7 @@ } .use-case-list { + $grid-breakpoint: 1000px; list-style: none; padding-left: 0; display: grid; @@ -52,10 +53,18 @@ border-radius: 4px; 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 { diff --git a/getting-started/_use-cases.md b/getting-started/_use-cases.md index 7cfe719de..cfd7dfeea 100644 --- a/getting-started/_use-cases.md +++ b/getting-started/_use-cases.md @@ -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. + -