From 01ee21dd35cfddb5f0da990e34c1b23bfa331e47 Mon Sep 17 00:00:00 2001 From: Reda Lemeden Date: Wed, 22 Mar 2023 11:10:02 +0100 Subject: [PATCH 1/3] Update landing page layout --- assets/stylesheets/pages/_landing.scss | 74 +++++++++++++++++++++++++ index.md | 77 +++++++++++++------------- 2 files changed, 114 insertions(+), 37 deletions(-) diff --git a/assets/stylesheets/pages/_landing.scss b/assets/stylesheets/pages/_landing.scss index 1822d77fd..b669712ea 100644 --- a/assets/stylesheets/pages/_landing.scss +++ b/assets/stylesheets/pages/_landing.scss @@ -1,3 +1,4 @@ + .why-swift-list { list-style: none; padding-left: 0; @@ -23,7 +24,80 @@ margin-bottom: 0; } } +} + +.link-grid { + ul { + display: grid; + gap: 1rem; + padding: 0; + grid-template-columns: repeat(1, 1fr); + + @media (min-width: 1000px) { + grid-template-columns: repeat(3, 1fr); + } + } + + li { + list-style: none; + padding-left: 0; + + a { + border-radius: var(--border-radius); + border: 1px solid var(--color-text); + color: var(--color-text); + display: block; + padding: .5rem 0; + text-align: center; + + &:hover { + background-color: var(--color-text); + color: var(--color-fill); + text-decoration: none; + } + } + } +} + +.use-cases, .getting-involved { + list-style: none; + display: grid; + gap: 1rem; + padding: 0; + + li { + border: 1px solid var(--color-fill-tertiary); + border-radius: var(--border-radius); + padding: 1rem; + display: flex; + flex-direction: column; + + h3 { + line-height: 1.4; + font-size: 1.4rem; + padding-top: 0; + } + + p { + flex-grow: 1; + color: var(--color-secondary-label); + margin-bottom: 0; + } + } + + .cta-secondary { + margin-top: 1rem; + } +} + +.use-cases { + @media (min-width: 1000px) { + grid-template-columns: repeat(2, 1fr); + } +} +.getting-involved, +.why-swift-list { @media (min-width: 1000px) { grid-template-columns: repeat(3, 1fr); } diff --git a/index.md b/index.md index 46dab7744..3a5b9397d 100644 --- a/index.md +++ b/index.md @@ -8,7 +8,7 @@ atom: true Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns. -