Skip to content

Commit 6bbb22e

Browse files
authored
Home page updates (#1235)
* feat: changes * fix: overlay * feat: update photography tile image * Change name
1 parent 18dd680 commit 6bbb22e

16 files changed

+51
-61
lines changed

gatsby-config.js

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ module.exports = {
2323
'https://github.com/carbon-design-system/design-language-website',
2424
branch: 'master',
2525
},
26+
theme: {
27+
homepage: 'g10',
28+
interior: 'g10',
29+
},
2630
},
2731
},
2832
`gatsby-transformer-yaml`,

src/components/VideoInternal/_video-internal.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717

1818
.#{$prefix}--video-internal-overlay {
19-
background-color: rgba(0, 0, 0, 0.7);
19+
background-color: rgba(0, 0, 0, 0.5);
2020
z-index: 1;
2121
position: absolute;
2222
top: 0;

src/gatsby-theme-carbon/templates/Homepage.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { HomepageCallout } from 'gatsby-theme-carbon';
33
import HomepageTemplate from 'gatsby-theme-carbon/src/templates/Homepage';
44
import HomepageVideo from '../../components/HomepageVideo';
5-
import { gray100 } from '@carbon/colors';
5+
import { gray10 } from '@carbon/colors';
66

77
// Component to be shadowed
88

@@ -31,7 +31,8 @@ const customProps = {
3131
),
3232
FirstCallout: (
3333
<HomepageCallout
34-
backgroundColor={gray100}
34+
backgroundColor={gray10}
35+
color={"#191919"}
3536
leftText={FirstLeftText}
3637
rightText={FirstRightText}
3738
/>
6.72 KB
Loading
9.24 KB
Loading
Loading
Loading
Loading
Loading
-25 KB
Binary file not shown.

src/images/homepage/landing-color-grid.svg

-1
This file was deleted.
-512 KB
Binary file not shown.
-4.84 KB
Binary file not shown.
-239 KB
Binary file not shown.

src/pages/index.mdx

+29-38
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ export default HomepageTemplate;
1515
title="Typeface"
1616
href="/typography/typeface"
1717
actionIcon="arrowRight"
18-
titleColor="light"
19-
iconColor="light"
18+
titleColor="dark"
19+
iconColor="dark"
2020
className="card-background"
2121
>
2222

2323

24-
![presentational animation of plex font](../images/homepage/landing-plex-animation.gif)
24+
![presentational of plex font](../images/homepage/2306_Typface_IDL_home.svg)
2525

2626
</ImageCard>
2727
</Column>
@@ -37,7 +37,7 @@ export default HomepageTemplate;
3737
>
3838

3939

40-
![IBM rebus logo](../images/homepage/philosophy-rebus.png)
40+
![IBM rebus logo](../images/homepage/2306_Philosphy_IDL_home.svg)
4141

4242
</ImageCard>
4343
</Column>
@@ -47,13 +47,13 @@ export default HomepageTemplate;
4747
aspectRatio="1:1"
4848
href="/color"
4949
actionIcon="arrowRight"
50-
iconColor="light"
51-
titleColor="light"
50+
iconColor="dark"
51+
titleColor="dark"
5252
className="card-background"
5353
>
5454

5555

56-
![IBM rebus logo](../images/homepage/landing-color-grid.svg)
56+
![IBM rebus logo](../images/homepage/2306_Color_IDL_home.png)
5757

5858
</ImageCard>
5959
</Column>
@@ -64,12 +64,12 @@ export default HomepageTemplate;
6464
href="/photography/overview"
6565
actionIcon="arrowRight"
6666
iconColor="light"
67-
titleColor="dark"
67+
titleColor="light"
6868
className="card-background"
6969
>
7070

7171

72-
![grid of ibm colors](../images/homepage/photography_divers.jpg)
72+
![grid of ibm colors](../images/homepage/2306_Photography_IDL_home_v2.jpg)
7373

7474
</ImageCard>
7575
</Column>
@@ -79,26 +79,26 @@ export default HomepageTemplate;
7979
aspectRatio="1:1"
8080
href="/illustration/overview"
8181
actionIcon="arrowRight"
82-
iconColor="light"
83-
titleColor="light"
82+
iconColor="dark"
83+
titleColor="dark"
8484
className="card-background"
8585
>
8686

8787

88-
![grid of ibm colors](../images/homepage/illustration_isometric.png)
88+
![isometric illustration](../images/homepage/2306_Illustration_IDL_home.png)
8989

9090
</ImageCard>
9191
<ImageCard
9292
title="2x Grid"
9393
href="/2x-grid"
9494
actionIcon="arrowRight"
95-
titleColor="light"
96-
iconColor="light"
95+
titleColor="dark"
96+
iconColor="dark"
9797
className="card-background"
9898
>
9999

100100

101-
![IBM 2x grid](../images/homepage/grid-temp.png)
101+
![IBM 2x grid](../images/homepage/2306_2x_Grid_IDL_home.png)
102102

103103
</ImageCard>
104104
</Column>
@@ -114,7 +114,7 @@ export default HomepageTemplate;
114114
title="IBM Plex® typeface latest release"
115115
actionIcon="arrowRight"
116116
aspectRatio="2:1"
117-
color="dark"
117+
color="light"
118118
/>
119119
</Column>
120120
<Column colMd={4} colLg={4} noGutterSm>
@@ -123,7 +123,7 @@ export default HomepageTemplate;
123123
title="IBM color specifications"
124124
actionIcon="arrowRight"
125125
aspectRatio="2:1"
126-
color="dark"
126+
color="light"
127127
/>
128128
</Column>
129129
<Column colMd={4} colLg={4} noGutterSm>
@@ -132,25 +132,25 @@ export default HomepageTemplate;
132132
title="2x Grid for video"
133133
actionIcon="arrowRight"
134134
aspectRatio="2:1"
135-
color="dark"
135+
color="light"
136136
/>
137137
</Column>
138-
<Column colMd={4} colLg={4} noGutterSm>
138+
<Column colMd={4} colLg={4} noGutterSm className="no-left-border">
139139
<ResourceCard
140140
href="/iconography/ui-icons/design#resources"
141141
title="UI icon resources"
142142
actionIcon="arrowRight"
143143
aspectRatio="2:1"
144-
color="dark"
144+
color="light"
145145
/>
146146
</Column>
147-
<Column colMd={4} colLg={4} noGutterSm>
147+
<Column colMd={4} colLg={4} noGutterSm className="left-border">
148148
<ResourceCard
149149
href="/iconography/pictograms/design#resources"
150150
title="Pictogram resources"
151151
actionIcon="arrowRight"
152152
aspectRatio="2:1"
153-
color="dark"
153+
color="light"
154154
/>
155155
</Column>
156156
<Column colMd={4} colLg={4} noGutterSm>
@@ -159,25 +159,16 @@ export default HomepageTemplate;
159159
title="Illustration starter kits"
160160
actionIcon="arrowRight"
161161
aspectRatio="2:1"
162-
color="dark"
163-
/>
164-
</Column>
165-
<Column colMd={4} colLg={4} noGutterSm>
166-
<ResourceCard
167-
href="https://www.sketch.com/s/4f1cbe6c-6626-405e-8c46-a9ae41a30cba"
168-
title="IDL Sketch design kit"
169-
actionIcon="launch"
170-
aspectRatio="2:1"
171-
color="dark"
162+
color="light"
172163
/>
173164
</Column>
174165
<Column colMd={4} colLg={4} noGutterSm>
175166
<ResourceCard
176-
href="https://www.carbondesignsystem.com/designing/kits/sketch"
167+
href="https://carbondesignsystem.com/designing/kits/figma"
177168
title="Carbon design kits"
178169
actionIcon="launch"
179170
aspectRatio="2:1"
180-
color="dark"
171+
color="light"
181172
/>
182173
</Column>
183174
<Column colMd={4} colLg={4} noGutterSm>
@@ -186,7 +177,7 @@ export default HomepageTemplate;
186177
title="Questions?"
187178
actionIcon="arrowRight"
188179
aspectRatio="2:1"
189-
color="dark"
180+
color="light"
190181
/>
191182
</Column>
192183
</Row>
@@ -200,7 +191,7 @@ export default HomepageTemplate;
200191
date="June 2022"
201192
href="/whats-new#technical-diagrams"
202193
actionIcon="arrowRight"
203-
color="dark"
194+
color="light"
204195
>
205196

206197
![Technical diagrams illustration](../images/homepage/whatsnew-tech-diagrams.svg)
@@ -213,7 +204,7 @@ export default HomepageTemplate;
213204
date="June 2022"
214205
href="/whats-new#infograms"
215206
actionIcon="arrowRight"
216-
color="dark"
207+
color="light"
217208
>
218209

219210
![Infograms illustration](../images/homepage/whatsnew-infograms.png)
@@ -226,7 +217,7 @@ export default HomepageTemplate;
226217
date="May 2022"
227218
href="/whats-new#people-illustration"
228219
actionIcon="arrowRight"
229-
color="dark"
220+
color="light"
230221
>
231222

232223
![Illustration Person walking right direction](../images/homepage/PeoplePage_Announcement_Final_v1.jpeg)

src/styles/_homepage.scss

+9-19
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,18 @@
3232
margin-right: 0 !important;
3333
}
3434

35-
.bx--resource-card--dark {
36-
border-color: transparent !important;
37-
border-top-width: 0;
38-
}
39-
40-
.bx--col-lg-4:nth-child(2n) .bx--resource-card--dark {
41-
border-left-color: transparent !important;
42-
}
43-
44-
.bx--col-lg-4:nth-child(n + 4) .bx--resource-card--dark {
45-
border-top-width: 1px !important;
46-
}
35+
@include carbon--breakpoint-up('lg') {
36+
.bx--col-lg-4:nth-child(3) .bx--resource-card {
37+
border-top: 0;
38+
border-left: 1px solid var(--cds-ui-03, #e0e0e0);
39+
}
4740

48-
@include carbon--breakpoint-down('lg') {
49-
.bx--col-lg-4:nth-child(n + 3) .bx--resource-card--dark {
50-
border-top-width: 1px !important;
41+
.left-border .bx--resource-card {
42+
border-left: 1px solid var(--cds-ui-03, #e0e0e0);
5143
}
52-
}
5344

54-
@include carbon--breakpoint-down('lg') {
55-
.bx--col-lg-4:nth-child(n + 1) .bx--resource-card--dark {
56-
border-top-width: 1px !important;
45+
.no-left-border .bx--resource-card {
46+
border-left-color: transparent !important;
5747
}
5848
}
5949
}

0 commit comments

Comments
 (0)