Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 0d09907

Browse files
committed
feat: update homepage to fit new design
1 parent 2bdf7ef commit 0d09907

6 files changed

+41
-45
lines changed

src/components/HomePageHighlights.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ const HomePageHighlights = ({ data }) => {
88
const projects = data;
99
return (
1010
<div className={styles.featuredExternalProjects}>
11-
<h4 className={styles.featuredExternalProjectsTitle}>
12-
Projects that we support
13-
</h4>
14-
<p className={styles.featuredExternalProjectsDescription}>
15-
New Relic contributes resources to the development of these projects.
16-
</p>
11+
<div className={styles.featuredExternalProjectsHeader}>
12+
<h4 className={styles.featuredExternalProjectsTitle}>
13+
Projects that we support
14+
</h4>
15+
<p className={styles.featuredExternalProjectsDescription}>
16+
New Relic contributes resources to the development of these projects.
17+
</p>
18+
</div>
1719
<div className={styles.externalProjectsList}>
1820
{projects.map(project => {
1921
return <ProjectModule data={project} key={project.title} row />;

src/components/HomePageHighlights.module.scss

+17-36
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,33 @@
11
.featured-external-projects {
2-
margin: 135px 0 160px;
3-
4-
&:before {
5-
position: absolute;
6-
left: 0;
7-
content: "";
8-
height: 360px;
9-
background-color: var(--color-neutrals-100);
10-
width: 100%;
11-
transform: skewY(-2deg) translateY(-55px);
12-
z-index:-1;
13-
}
2+
margin: 45px 0 160px;
3+
}
144

15-
&:after {
16-
background-image: linear-gradient(0deg, var(--color-neutrals-100) 70%, rgba(255,255,255, 0));
17-
content: '';
18-
position: absolute;
19-
left: 0;
20-
right: 0;
21-
transform: skewY(-2deg) translateY(-250px);
22-
display: block;
23-
height: 200px;
24-
}
5+
.featured-external-projects-header {
6+
display: flex;
7+
align-items: baseline;
8+
justify-content: space-between;
9+
border-bottom: 1px dotted var(--color-neutrals-300);
10+
margin-bottom: 30px;
2511
}
2612

2713
.featured-external-projects-title {
14+
margin-top: 0;
15+
margin-bottom: 9px;
16+
line-height: 40px;
2817
position: relative;
29-
z-index:100;
30-
font-size: 24px;
18+
font-size: 30px;
19+
color: var(--color-neutrals-900);
3120
font-family: var(--secondary-font-family);
32-
text-align: center;
33-
line-height: 25px;
34-
margin-bottom: 6px;
21+
text-align: left;
3522
font-weight: 400;
3623
}
3724

3825
.featured-external-projects-description {
39-
position: relative;
40-
z-index:100;
41-
margin: 0 0 30px 0;
26+
margin-top: 0;
27+
margin-bottom: 10px;
28+
text-align: center;
4229
font-size: 16px;
43-
line-height: 19px;
4430
color: var(--color-neutrals-600);
45-
text-align: center;
46-
47-
a {
48-
display: inline-block;
49-
}
5031
}
5132

5233
.external-projects-list {

src/components/HomePageInternalProjects.module.scss

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
.featured-internal-projects {
23
display: grid;
34
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

src/components/ProjectModule.module.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
text-align: center;
99
background-color: var(--color-background);
1010
position: relative;
11-
border-radius: 4px;
1211
z-index: 100;
13-
box-shadow: 0px 2.76726px 2.21381px rgba(0, 85, 90, 0.0168687), 0px 6.6501px 5.32008px rgba(0, 85, 90, 0.0242336), 0px 12.5216px 10.0172px rgba(0, 85, 90, 0.03), 0px 22.3363px 17.869px rgba(0, 85, 90, 0.0357664), 0px 41.7776px 33.4221px rgba(0, 85, 90, 0.0431313), 0px 100px 80px rgba(0, 85, 90, 0.06);
12+
border: 1px solid var(--color-neutrals-300);
13+
box-shadow: 0px 0.249053px 0.553451px rgba(0, 0, 0, 0.00562291), 0px 0.598509px 1.33002px rgba(0, 0, 0, 0.00807786), 0px 1.12694px 2.50431px rgba(0, 0, 0, 0.01), 0px 2.01027px 4.46726px rgba(0, 0, 0, 0.0119221), 0px 3.75998px 8.35552px rgba(0, 0, 0, 0.0143771), 0px 9px 20px rgba(0, 0, 0, 0.02);
14+
border-radius: 4px;
1415
transition: all .13s var(--ease-out-quad);
1516

1617
&:last-child {

src/components/SimpleProjectModule.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
padding: 16px 20px;
55
box-sizing: border-box;
66
background: var(--color-background);
7-
border: 1px solid var(--color-neutrals-300);
87
box-sizing: border-box;
8+
border: 1px solid var(--color-neutrals-300);
99
box-shadow: 0px 0.249053px 0.553451px rgba(0, 0, 0, 0.00562291), 0px 0.598509px 1.33002px rgba(0, 0, 0, 0.00807786), 0px 1.12694px 2.50431px rgba(0, 0, 0, 0.01), 0px 2.01027px 4.46726px rgba(0, 0, 0, 0.0119221), 0px 3.75998px 8.35552px rgba(0, 0, 0, 0.0143771), 0px 9px 20px rgba(0, 0, 0, 0.02);
1010
border-radius: 4px;
1111
transition: all .1s var(--ease-out-quad);

src/pages/home-page.module.scss

+11
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,17 @@ img.play-button {
343343

344344
.featured-internal-projects-container {
345345
margin-bottom: 40px;
346+
347+
&:before {
348+
position: absolute;
349+
left: 0;
350+
content: "";
351+
height: 500px;
352+
background-color: var(--color-neutrals-100);
353+
width: 100%;
354+
transform: skewY(-2deg) translateY(-80px);
355+
z-index:-1;
356+
}
346357
}
347358

348359
.responsive-video-container {

0 commit comments

Comments
 (0)