Skip to content

Commit ac2d359

Browse files
committed
Change section backgrounds
1 parent a1f2664 commit ac2d359

File tree

4 files changed

+55
-20
lines changed

4 files changed

+55
-20
lines changed

site/src/landing-new.js

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,26 @@ function LandingPage({ sponsors }) {
1414
return (
1515
<div className={s.main}>
1616
<CodeHikeHead title="Marvellous code walkthroughs - Code Hike" />
17-
<Header className={s.header} />
18-
<Description />
19-
<SectionTitle>Showcase</SectionTitle>
20-
<Showcase />
17+
<section>
18+
<Header className={s.header} />
19+
<Description />
20+
</section>
21+
<section className={s.dark}>
22+
<SectionTitle>Showcase</SectionTitle>
23+
<Showcase />
24+
</section>
2125
{/* <ShowcaseX /> */}
22-
<SectionTitle>Sponsors</SectionTitle>
23-
<Sponsors sponsors={sponsors} />
24-
<SectionTitle id="building-blocks">
25-
Building Blocks
26-
</SectionTitle>
27-
<Tools />
28-
<Footer />
26+
<section className={s.blue}>
27+
<SectionTitle>Sponsors</SectionTitle>
28+
<Sponsors sponsors={sponsors} />
29+
</section>
30+
<section>
31+
<SectionTitle id="building-blocks">
32+
Building Blocks
33+
</SectionTitle>
34+
<Tools />
35+
<Footer />
36+
</section>
2937
</div>
3038
)
3139
}
@@ -115,11 +123,11 @@ function Tool({ title, img, href }) {
115123
function SectionTitle({ children, id }) {
116124
return (
117125
<div className={s.titleContainer}>
118-
<div className={s.line} />
126+
{/* <div className={s.line} /> */}
119127
<h2 className={s.title} id={id}>
120128
{children}
121129
</h2>
122-
<div className={s.line} />
130+
{/* <div className={s.line} /> */}
123131
</div>
124132
)
125133
}

site/src/landing.module.css

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,28 @@
44
margin: 0 auto;
55
}
66

7+
.main > section {
8+
padding: 48px 0;
9+
}
10+
11+
.main > .dark {
12+
background-image: radial-gradient(
13+
circle at 50% 20%,
14+
#161d34,
15+
#0c101c
16+
);
17+
color: var(--white);
18+
}
19+
.main > .blue {
20+
background-color: #eaedf6;
21+
22+
background-image: radial-gradient(
23+
circle at 50% 20%,
24+
var(--white),
25+
#eaedf6
26+
);
27+
}
28+
729
.header {
830
margin-top: 96px;
931
padding: 32px;
@@ -14,12 +36,14 @@
1436
display: flex;
1537
width: 100%;
1638
align-items: center;
17-
margin-top: 64px;
1839
}
1940

2041
.title {
21-
font-size: 1.8em;
42+
font-size: 2em;
2243
margin: 0;
44+
height: 3em;
45+
flex: 1;
46+
text-align: center;
2347
}
2448

2549
.titleContainer .line {

site/src/landing/description.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
margin-bottom: 0;
6262
}
6363
.buttons {
64-
margin: 0 auto;
64+
margin: 32px auto;
6565
width: max-content;
6666
}
6767

site/src/landing/showcase.module.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,32 @@
2222
opacity: var(--opacity);
2323
transform: translateZ(40px);
2424
text-align: center;
25-
color: var(--accent-500);
2625
}
2726

2827
.browser {
28+
box-shadow: 0px 0px 16px 0px #ccc5;
2929
opacity: var(--opacity);
3030
transform: translateZ(-40px);
3131
box-sizing: border-box;
32-
border: calc(var(--h) * 0.5) solid var(--accent-100);
32+
border: calc(var(--h) * 0.5) solid var(--accent-700);
3333
border-radius: calc(var(--w) * 1.3);
3434
width: calc(var(--w) * 100);
3535
overflow: hidden;
36+
background-color: var(--white);
3637
}
3738

3839
.browser .menuBar {
3940
height: calc(5 * var(--h));
4041
border-bottom: calc(var(--h) * 0.5) solid
41-
var(--accent-100);
42+
var(--accent-700);
4243
display: flex;
4344
align-items: center;
4445
}
4546

4647
.browser .circle {
4748
height: calc(2.3 * var(--h));
4849
width: calc(2.3 * var(--h));
49-
background: var(--accent-100);
50+
background: var(--accent-700);
5051
border-radius: 50%;
5152
margin-left: calc(1 * var(--h));
5253
}
@@ -66,6 +67,8 @@
6667
}
6768

6869
.phone {
70+
/* box-shadow: 0px 0px 30px var(--accent-400); */
71+
background-color: var(--white);
6972
opacity: var(--opacity);
7073
height: 100%;
7174
/* transform: translateZ(-40px); */

0 commit comments

Comments
 (0)