From d3defd5c810e50c19971b8fe9a53e4999b6bd291 Mon Sep 17 00:00:00 2001 From: Tim Sneath Date: Tue, 10 Dec 2024 15:55:15 -0800 Subject: [PATCH 1/9] Update the "Use Cases" section of the home page --- assets/images/landing-page/ai.svg | 13 ++ assets/images/landing-page/chip.svg | 11 ++ assets/images/landing-page/cloud.svg | 11 ++ assets/images/landing-page/controller.svg | 12 ++ assets/images/landing-page/desktop.svg | 11 ++ assets/images/landing-page/package.svg | 11 ++ assets/images/landing-page/phone.svg | 12 ++ assets/images/landing-page/server.svg | 11 ++ assets/images/landing-page/terminal.svg | 12 ++ assets/stylesheets/pages/_landing.scss | 25 ++- index.md | 179 ++++++++++++++++------ 11 files changed, 252 insertions(+), 56 deletions(-) create mode 100644 assets/images/landing-page/ai.svg create mode 100644 assets/images/landing-page/chip.svg create mode 100644 assets/images/landing-page/cloud.svg create mode 100644 assets/images/landing-page/controller.svg create mode 100644 assets/images/landing-page/desktop.svg create mode 100644 assets/images/landing-page/package.svg create mode 100644 assets/images/landing-page/phone.svg create mode 100644 assets/images/landing-page/server.svg create mode 100644 assets/images/landing-page/terminal.svg diff --git a/assets/images/landing-page/ai.svg b/assets/images/landing-page/ai.svg new file mode 100644 index 000000000..51618af04 --- /dev/null +++ b/assets/images/landing-page/ai.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/assets/images/landing-page/chip.svg b/assets/images/landing-page/chip.svg new file mode 100644 index 000000000..46b999eb0 --- /dev/null +++ b/assets/images/landing-page/chip.svg @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/assets/images/landing-page/cloud.svg b/assets/images/landing-page/cloud.svg new file mode 100644 index 000000000..5a094e371 --- /dev/null +++ b/assets/images/landing-page/cloud.svg @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/assets/images/landing-page/controller.svg b/assets/images/landing-page/controller.svg new file mode 100644 index 000000000..cd6b087dc --- /dev/null +++ b/assets/images/landing-page/controller.svg @@ -0,0 +1,12 @@ + + + + + + + + + + diff --git a/assets/images/landing-page/desktop.svg b/assets/images/landing-page/desktop.svg new file mode 100644 index 000000000..b08282665 --- /dev/null +++ b/assets/images/landing-page/desktop.svg @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/assets/images/landing-page/package.svg b/assets/images/landing-page/package.svg new file mode 100644 index 000000000..ab1487a70 --- /dev/null +++ b/assets/images/landing-page/package.svg @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/assets/images/landing-page/phone.svg b/assets/images/landing-page/phone.svg new file mode 100644 index 000000000..85e9dff92 --- /dev/null +++ b/assets/images/landing-page/phone.svg @@ -0,0 +1,12 @@ + + + + + + + + + + diff --git a/assets/images/landing-page/server.svg b/assets/images/landing-page/server.svg new file mode 100644 index 000000000..bca4437c4 --- /dev/null +++ b/assets/images/landing-page/server.svg @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/assets/images/landing-page/terminal.svg b/assets/images/landing-page/terminal.svg new file mode 100644 index 000000000..ea78640e3 --- /dev/null +++ b/assets/images/landing-page/terminal.svg @@ -0,0 +1,12 @@ + + + + + + + + + + diff --git a/assets/stylesheets/pages/_landing.scss b/assets/stylesheets/pages/_landing.scss index 4a30963bb..8c5f523bb 100644 --- a/assets/stylesheets/pages/_landing.scss +++ b/assets/stylesheets/pages/_landing.scss @@ -1,11 +1,26 @@ .grid-layout-use-cases { @media (min-width: 1000px) { - grid-template-columns: repeat(2, 1fr); + grid-template-columns: repeat(3, 1fr); + } - li:nth-child(2n-1):nth-last-of-type(1) { - grid-column: span 2; - } + .heading { + display: flex; + align-items: center; + gap: 16px; + margin-bottom: 12px; + } + + img { + height: 48px; + width: 48px; + object-fit: contain; } + + h3 { + margin: 0; + font-size: 1.2em; + } + } .preamble { @@ -147,4 +162,4 @@ font-weight: bold; border-radius: 4px; } -} +} \ No newline at end of file diff --git a/index.md b/index.md index f773d707f..9e709e6b9 100644 --- a/index.md +++ b/index.md @@ -36,16 +36,16 @@ atom: true
  • - + - Get started + Language tour
  • - Read the docs + Documentation
  • @@ -60,79 +60,156 @@ atom: true ## Use Cases +

    + Swift runs on most modern operating systems, including macOS, Windows, Linux, + iOS, Android and embedded devices. It's a versatile language for many + different scenarios: +

    + -## Getting Involved +Regardless of how you're using Swift, you'll find [lots of resources for learning Swift](https://developer.apple.com/swift/pathway/), whether you're taking your first steps into code or are a seasoned developer switching from another language. We also have comprehensive [Swift resources for educators](https://education.apple.com/learning-center/T021340A-en_US). -Everyone is welcome to contribute to Swift. Contributing doesn’t just mean writing code or submitting pull request — there are many different ways for you to get involved, including answering questions on the forums, reporting or triaging bugs, and participating in the Swift evolution process. +## Getting Involved -No matter how you want to get involved, we ask that you first learn what’s expected of anyone who participates in the project by reading the [Community Overview](/community/). If you’re contributing code, you should also know how to build and run Swift from the repository, as described in [Source Code](/documentation/source-code/). +Everyone is welcome to contribute to Swift. There are many different ways for you to get involved: hosting or attending Swift meet-ups, posting or answering questions on the forums, or participating in Swift's development. -## What's New - -Stay up-to-date with the latest in the Swift community. - - -