@salesforcedevs/dw-components 0.57.0 → 0.57.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dw-components",
3
- "version": "0.57.0",
3
+ "version": "0.57.1-alpha.2+ba23c283",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -23,5 +23,5 @@
23
23
  "@types/lodash.orderby": "^4.6.7",
24
24
  "@types/lodash.uniqby": "^4.7.7"
25
25
  },
26
- "gitHead": "ec519d645639c13fab52eb62663930901f66b2fe"
26
+ "gitHead": "ba23c2834f6fdb8d222e308013b3f0cd92440f77"
27
27
  }
@@ -25,7 +25,6 @@ dx-section.section-reduced-padding {
25
25
  }
26
26
 
27
27
  .box {
28
- width: 548px;
29
28
  height: 162px;
30
29
  }
31
30
  }
@@ -40,8 +39,8 @@ dx-section.section-reduced-padding {
40
39
  }
41
40
 
42
41
  .box {
43
- width: 354px;
44
42
  height: 162px;
43
+ background-position: 0% 25%, 90% 75%;
45
44
  }
46
45
  }
47
46
 
@@ -50,7 +49,7 @@ dx-section.section-reduced-padding {
50
49
  font-weight: 500;
51
50
  letter-spacing: 0;
52
51
  height: 48px;
53
- width: 123px;
52
+ padding: 10px;
54
53
  }
55
54
 
56
55
  .subscription-box {
@@ -63,11 +62,21 @@ dx-section.section-reduced-padding {
63
62
  align-items: center;
64
63
  display: flex;
65
64
  flex-direction: column;
66
- padding: 12px 20px 0 0;
65
+ }
66
+
67
+ .cta-container {
68
+ width: 100%;
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
67
72
  }
68
73
 
69
74
  .box {
70
- background-image: url("/assets/images/background.svg");
75
+ background-image: url("/assets/svg/subscribe-background-left.svg"),
76
+ url("/assets/svg/subscribe-background-right.svg");
77
+ background-position: 4% 25%, 90% 60%;
78
+ background-repeat: no-repeat;
79
+ width: 100%;
71
80
  }
72
81
 
73
82
  .icon {
@@ -1,22 +1,37 @@
1
1
  <template>
2
- <dx-hr spacing="3xl"></dx-hr>
2
+ <dx-hr spacing="2xl"></dx-hr>
3
3
 
4
4
  <dx-section class="section-padding-lg section-reduced-padding">
5
5
  <div class="subscription-box">
6
6
  <div class="box">
7
7
  <div class="content">
8
8
  <h2 class="title">
9
- Stay up to date with the latest news from the Salesforce Developers Blog
9
+ Get the latest Salesforce Developer posts exactly how you want.
10
10
  </h2>
11
- <dx-button
12
- size="small"
13
- icon-symbol="rss"
14
- icon-sprite="general"
15
- class="button"
16
- onclick={rssOnClick}
17
- >
18
- Subscribe
19
- </dx-button>
11
+ <div class="cta-container">
12
+ <dx-button
13
+ size="small"
14
+ variant="secondary"
15
+ icon-symbol="slack"
16
+ icon-sprite="salesforcebrand"
17
+ icon-position="left"
18
+ href="https://slack.com/oauth/v2/authorize?scope=chat%3Awrite%2Ccommands&amp;user_scope=&amp;redirect_uri=https%3A%2F%2Fdsc-slack-app.herokuapp.com%2Fslack%2Foauth_redirect&amp;client_id=1814240140212.2864842743411"
19
+ class="button"
20
+ >
21
+ Send posts to Slack
22
+ </dx-button>
23
+ <dx-button
24
+ size="small"
25
+ variant="secondary"
26
+ icon-symbol="rss"
27
+ icon-position="left"
28
+ icon-sprite="general"
29
+ href="https://developer.salesforce.com/blogs/feed"
30
+ class="button"
31
+ >
32
+ Subscribe to RSS
33
+ </dx-button>
34
+ </div>
20
35
  </div>
21
36
  </div>
22
37
  </div>
@@ -41,7 +56,7 @@
41
56
  </template>
42
57
  </dx-grid>
43
58
  <dx-hr
44
- if:true={hasMorePosts}
59
+ if:true={showLoadMore}
45
60
  onclick={onClick}
46
61
  variant="load-more"
47
62
  text="SHOW MORE"
@@ -7,6 +7,10 @@
7
7
  z-index: 49;
8
8
  }
9
9
 
10
+ .buffer {
11
+ margin-bottom: 100px;
12
+ }
13
+
10
14
  dx-section::part(container) {
11
15
  margin: 0 auto;
12
16
  max-width: 880px;
@@ -66,6 +66,15 @@
66
66
  featured="true"
67
67
  ></dx-card-event>
68
68
  </dx-section>
69
+
70
+ <dx-hr spacing="2xl"></dx-hr>
71
+
72
+ <dx-slack-cta class="slack-cta">
73
+ Get notified of new events with the new Salesforce Developers Slack app
74
+ </dx-slack-cta>
75
+
76
+ <div class="buffer"></div>
77
+
69
78
  <dx-section class="events-list past-events" title="Past Events" if:true={pastEvents.length}>
70
79
  <dx-card-event
71
80
  for:each={pastEvents}
@@ -13,7 +13,7 @@
13
13
  </template>
14
14
  </dx-grid>
15
15
  <dx-hr
16
- if:true={hasMorePosts}
16
+ if:true={showLoadMore}
17
17
  onclick={onClick}
18
18
  variant="load-more"
19
19
  text="LOAD MORE"
@@ -64,6 +64,10 @@ export abstract class PostsGrid extends LightningElement {
64
64
  return this._morePostsViewed;
65
65
  }
66
66
 
67
+ get showLoadMore(): boolean {
68
+ return this.archives && this.hasMorePosts;
69
+ }
70
+
67
71
  get showArchives(): boolean {
68
72
  return this._morePostsViewed && this.archives;
69
73
  }