Skip to content

Commit 1676028

Browse files
authored
Tweak sublanding page design (#17977)
1 parent b473cbe commit 1676028

5 files changed

Lines changed: 32 additions & 14 deletions

File tree

data/ui.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,12 @@ product_landing:
143143
product_sublanding:
144144
start: Start
145145
start_path: Start path
146-
learning_paths: Learning paths
146+
learning_paths: '{{ allProducts[currentProduct].name }} learning paths'
147147
learning_paths_desc: Learning paths are a collection of guides that help you master a particular subject.
148+
guides: '{{ allProducts[currentProduct].name }} guides'
148149
more_guides: more guides
149150
load_more: Load more guides
150-
all_guides: All Guides
151+
all_guides: 'All {{ allProducts[currentProduct].name }} guides'
151152
no_result: Sorry, there is no guide that match your filter.
152153
filters:
153154
type: Type

includes/liquid-tags/link-as-article-card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h4 class="h4 text-gray-dark mb-1">{{ title }}</h4>
66
{% if topics.length %}
77
<div>
88
{% for topic in topics %}
9-
<span class="IssueLabel bg-gradient--purple-pink text-white mr-1">{{ topic }}</span>
9+
<span class="IssueLabel bg-gradient--pink-blue text-white mr-1">{{ topic }}</span>
1010
{% endfor %}
1111
</div>
1212
{% endif %}

layouts/product-sublanding.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<div class="container-xl px-3 px-md-6 pt-3 pb-2">
1616
<header class="d-flex gutter mb-6">
1717
<div class="col-12">
18-
<span class="text-mono text-gray">{% include breadcrumbs %}</span>
19-
<h1 class="my-3 font-mktg">{{ page.shortTitle }}</h1>
20-
<div class="lead-mktg text-gray">{{ page.intro }}</div>
18+
<span class="text-mono text-gray text-uppercase">{% include breadcrumbs %}</span>
19+
<h1 class="my-3 font-mktg">{% data ui.product_sublanding.guides %}</h1>
20+
<div class="lead-mktg text-gray f4 description-text">{{ page.intro }}</div>
2121
</div>
2222
</header>
2323

@@ -26,7 +26,7 @@ <h1 class="my-3 font-mktg">{{ page.shortTitle }}</h1>
2626
{% assign featuredTrack = page.learningTracks[0] %}
2727
<ul class="list-style-none d-flex flex-nowrap overflow-x-scroll px-2 feature-track">
2828
<li class="px-2 d-flex flex-shrink-0">
29-
<div class="d-inline-block Box p-5 bg-gradient--blue-purple text-white">
29+
<div class="d-inline-block Box p-5 bg-gradient--blue-pink text-white">
3030
<div class="circle text-white d-inline-flex" style="border: 2px white solid;">{% octicon "star-fill" height="24" class="v-align-middle m-2"%}</div>
3131
<h3 class="font-mktg h3-mktg my-4">{{ featuredTrack.title }}</h3>
3232
<div class="lead-mktg text-white f5 my-4">{{ featuredTrack.description }}</div>
@@ -40,8 +40,8 @@ <h3 class="font-mktg h3-mktg my-4">{{ featuredTrack.title }}</h3>
4040
<li class="px-2 d-flex flex-shrink-0">
4141
<a href="{{ guide.href }}?learn={{ featuredTrack.trackName }}" class="d-inline-block Box p-5 bg-white border-gray no-underline">
4242
<div class="d-flex flex-justify-between flex-items-center">
43-
<div class="circle bg-white text-blue border-gradient--purple-pink d-inline-flex">
44-
<span class="m-2 f2 lh-condensed-ultra text-center text-bold text-gradient--blue-purple" style="width: 24px; height: 24px;">{{ forloop.index }}</span>
43+
<div class="circle bg-white text-blue border-gradient--pink-blue-dark d-inline-flex">
44+
<span class="m-2 f2 lh-condensed-ultra text-center text-bold step-circle-text" style="width: 24px; height: 24px;">{{ forloop.index }}</span>
4545
</div>
4646
<div class="text-gray-light h6 text-uppercase">{{ guideTypes[guide.page.type] }}</div>
4747
</div>
@@ -57,14 +57,14 @@ <h3 class="font-mktg h3-mktg my-4 text-gray-dark">{{ guide.title }}</h3>
5757

5858
<div class="border-top py-6">
5959
<h2 class="mb-3 font-mktg">{% data ui.product_sublanding.learning_paths %}</h2>
60-
<div class="lead-mktg text-gray f4">{% data ui.product_sublanding.learning_paths_desc %}</div>
60+
<div class="lead-mktg text-gray f4 description-text">{% data ui.product_sublanding.learning_paths_desc %}</div>
6161

6262
<!-- Learning tracks -->
6363
<div class="d-flex flex-wrap flex-items-start my-5 gutter">
6464
{% for track in page.learningTracks offset:1 %}
6565
<div class="my-3 px-4 col-12 col-md-6 learning-track">
6666
<div class="Box js-show-more-container d-flex flex-column">
67-
<div class="Box-header bg-gradient--purple-pink p-4 d-flex flex-1 flex-items-start flex-wrap">
67+
<div class="Box-header bg-gradient--blue-pink p-4 d-flex flex-1 flex-items-start flex-wrap">
6868
<div class="d-flex flex-auto flex-items-start col-8 col-md-12 col-xl-8">
6969
<div class="my-xl-0 mr-xl-3">
7070
<h5 class="mb-3 text-white font-mktg h3-mktg ">
@@ -82,7 +82,7 @@ <h5 class="mb-3 text-white font-mktg h3-mktg ">
8282
{% for guide in track.guides %}
8383
<a class="Box-row d-flex flex-items-center text-gray-dark no-underline js-show-more-item {% if forloop.index > 4 %}d-none{% endif %}" href="{{ guide.href }}?learn={{ track.trackName }}">
8484
<div class="circle bg-gray d-inline-flex mr-4">
85-
<span class="m-2 f3 lh-condensed-ultra text-center text-bold text-gradient--purple-pink" style="min-width: 20px; height: 20px;">{{ forloop.index }}</span>
85+
<span class="m-2 f3 lh-condensed-ultra text-center text-bold step-circle-text" style="min-width: 20px; height: 20px;">{{ forloop.index }}</span>
8686
</div>
8787
<h5 class="flex-auto pr-2">{{ guide.title }}</h5>
8888
<div class="text-gray-light h6 text-uppercase">{{ guideTypes[guide.page.type] }}</div>

stylesheets/gradient.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ $gradients: (
1212
"-blue-green": linear-gradient(-70deg, #2188ff 0%, #01a49e 100%),
1313
"-red-orange": linear-gradient(-70deg, #ed4e50 0%, #f06f00 100%),
1414
"-blue-purple": linear-gradient(-70deg, #2188ff 0%, #804eda 100%),
15-
"-pink-blue": linear-gradient(-70deg, #db469f 0%, #2188ff 100%),
16-
"-pink-blue-dark": linear-gradient(-70deg, #e577b4 0%, #64acff 100%)
15+
"-pink-blue": linear-gradient(90deg, #D047A5 -50%, #0C69F9 150%),
16+
"-pink-blue-dark": linear-gradient(-70deg, #e577b4 0%, #64acff 100%),
17+
"-blue-pink": linear-gradient(-70deg, #0C69F9 0%, #D047A5 100%)
1718
) !default;
1819

1920
@mixin bg-gradient($parent, $gradient) {

stylesheets/product-sublanding.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@
1010
}
1111
}
1212

13+
.learning-track-container {
14+
width: 440px;
15+
}
16+
17+
.step-circle-text {
18+
color: #7952AF;
19+
}
20+
.description-text {
21+
opacity: 0.7;
22+
line-height: 1.8em;
23+
}
24+
.uppercase-category-text {
25+
letter-spacing: 0.08em;
26+
font-size: 0.8em;
27+
}
28+
1329
@mixin truncate($maxLine) {
1430
.truncate-overflow-#{$maxLine} {
1531
display: -webkit-box;

0 commit comments

Comments
 (0)