Skip to content

Commit b27a3e8

Browse files
jesseabordenJesse Borden
andauthored
Add bg version of code image row. Rename code image row. (#1011)
Co-authored-by: Jesse Borden <jborden@apple.com>
1 parent 68a7147 commit b27a3e8

File tree

7 files changed

+43
-5
lines changed

7 files changed

+43
-5
lines changed

_data/new-data/get-started/storybook/image-text-column.yml renamed to _data/new-data/get-started/storybook/image-text-row-bg.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
headline: Image Text Column
21
image:
32
src: /assets/images/getting-started/embedded/primary-card-vapor-logo.jpg
43
alt: a place holder
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
headline: Image Text Row
2+
image:
3+
src: /assets/images/getting-started/embedded/primary-card-vapor-logo.jpg
4+
alt: a place holder
5+
copy:
6+
headline: Low memory footprint with massive performance.
7+
paragraphs:
8+
- 'Culture of Code migrated the infrasture that supports Things to Swift and saw a massive reduction in both cost and response time.'
9+
- 'Leveraging Swift’s built-in features as well as frameworks to enable rapid development, they were able to improve their customer experience without sacrificing time.'
10+
link:
11+
text: Read more
12+
href: '#'

_includes/new-includes/components/image-text-column.html renamed to _includes/new-includes/components/image-text-row.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
<div class="image-text-column content-wrapper">
1+
<div
2+
class="image-text-row content-wrapper{% if include.background %} background{% endif %}"
3+
>
4+
{% if include.headline %}
25
<h2>{{ include.content.headline }}</h2>
6+
{% endif %}
37
<div class="card-wrapper">
48
<img
59
src="{{ include.content.image.src }}"

assets/stylesheets/new-stylesheets/pages/_get-started.scss

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,30 @@
323323
}
324324
}
325325

326-
.image-text-column {
326+
.image-text-row {
327327
margin: 60px auto 70px;
328328

329+
&.background {
330+
border-radius: 22px;
331+
padding: 28px 50px 25px 50px;
332+
background: var(--get-started-card-primary-bg);
333+
box-sizing: border-box;
334+
335+
.card-wrapper:first-child {
336+
// Maintain vertical space when there is no headline
337+
margin-top: 10px;
338+
}
339+
340+
@media only screen and (max-width: 768px) {
341+
padding-bottom: 8px;
342+
343+
.card-wrapper:first-child {
344+
// Maintain vertical space when there is no headline
345+
margin-top: 0;
346+
}
347+
}
348+
}
349+
329350
h2 {
330351
font-size: 48px;
331352
margin-bottom: 44px;

get-started/cloud-services/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title: Use case
1111

1212
{% include new-includes/components/card-grid.html content = site.data.new-data.get-started.cloud-services.tertiary-content-cloud-native %}
1313

14-
{% include new-includes/components/image-text-column.html content = site.data.new-data.get-started.cloud-services.image-text-column %}
14+
{% include new-includes/components/image-text-row.html content = site.data.new-data.get-started.cloud-services.image-text-row %}
1515

1616
{% include new-includes/components/headline-section.html content = site.data.new-data.get-started.cloud-services.headline-section %}
1717

get-started/storybook/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ title: Storybook
3333
content=site.data.new-data.get-started.storybook.code-text-row
3434
%}
3535

36-
{% include new-includes/components/image-text-column.html content = site.data.new-data.get-started.storybook.image-text-column %}
36+
{% include new-includes/components/image-text-row.html content = site.data.new-data.get-started.storybook.image-text-row %}
37+
38+
{% include new-includes/components/image-text-row.html content = site.data.new-data.get-started.storybook.image-text-row-bg background = true %}
3739

3840
{% include new-includes/components/headline-section.html content = site.data.new-data.get-started.storybook.headline-section %}
3941

0 commit comments

Comments
 (0)