Skip to content

Commit 87f4b3a

Browse files
authored
Website update (#326)
* homepage design changes * fix css * text changes * mantine colors
1 parent bc9eecb commit 87f4b3a

File tree

10 files changed

+164
-142
lines changed

10 files changed

+164
-142
lines changed

packages/editor/src/app/main/Main.module.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,26 @@
1010
height: 5px;
1111
}
1212

13+
.main.homepage > header::after {
14+
background: none !important;
15+
height: 5px;
16+
}
17+
18+
.main.homepage {
19+
background: radial-gradient(
20+
circle at 15% 35%,
21+
#dbe4ff,
22+
rgba(255, 255, 255, 0) 25%
23+
),
24+
radial-gradient(circle at 85% 20%, #e3fafc, rgba(255, 255, 255, 0) 25%),
25+
white;
26+
background-repeat: no-repeat;
27+
}
28+
29+
.main.homepage > header {
30+
background: none !important;
31+
}
32+
1333
.main {
1434
display: flex;
1535
min-height: 100%;
@@ -31,4 +51,4 @@
3151
.page {
3252
overflow: auto;
3353
padding: 8px;
34-
}
54+
}

packages/editor/src/app/main/Main.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ const Main = observer((props: {}) => {
1414

1515
let location = useLocation();
1616
let navigate = useNavigate();
17+
1718
return (
1819
<DndProvider backend={HTML5Backend}>
19-
<div className={styles.main}>
20+
<div
21+
className={
22+
styles.main + " " + (location.pathname === "/" ? styles.homepage : "")
23+
}>
2024
<Navigation />
2125
<Outlet />
2226
{sessionStore.loggedInUserId && (

packages/editor/src/app/main/components/NotebookOverviewItem.module.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
}
99

1010
.item p {
11-
border-left: 3px solid #efefef;
11+
/* border-left: 3px solid #efefef; */
1212
display: block;
13-
padding: 0.5em 0 0.5em 1em;
13+
/* padding: 0.5em 0 0.5em 1em; */
14+
font-size: 1em;
1415
}
1516

1617
.previewImage {

packages/editor/src/app/main/components/NotebookOverviewItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const NotebookOverviewItem = observer(
3838
<span className={styles.username}>{props.author.username}</span>
3939
</Link>
4040

41-
<Link className="button inverted" to={props.to}>
41+
<Link className="button button-small inverted" to={props.to}>
4242
View
4343
</Link>
4444
</div>

packages/editor/src/app/main/components/startscreen/StartScreen.module.css

Lines changed: 72 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.page {
2+
font-size: 18px;
3+
}
4+
15
* img {
26
user-drag: none;
37
-webkit-user-drag: none;
@@ -8,11 +12,19 @@
812
}
913

1014
.introduction {
15+
display: flex;
16+
align-items: center;
1117
padding: 3em 0 11em 0;
1218
position: relative;
13-
background: url(./assets/background_pattern.png),
14-
linear-gradient(0deg, #eff7fc, #eff7fc);
19+
/* background: url(./assets/background_pattern.png),
20+
linear-gradient(0deg, #eff7fc, #eff7fc); */
1521
/* background: linear-gradient(0deg, #eff7fc, #eff7fc); */
22+
/* background: radial-gradient(
23+
106.9% 91.8% at 110% 110%,
24+
#7cee6f 0%,
25+
white 100%
26+
); */
27+
min-height: 50vh;
1628
}
1729

1830
.introduction .github {
@@ -36,21 +48,18 @@
3648
.introduction .buttons {
3749
margin-top: 3em;
3850
display: flex;
39-
}
40-
41-
.introduction .buttons a:first-child {
42-
margin-right: 2em;
51+
gap: 2em;
4352
}
4453

4554
.introduction h1 {
4655
color: #2b4869;
47-
font-size: 1.9em;
56+
font-size: 2.9em;
4857
line-height: 1.5em;
4958
font-weight: bold;
5059
}
5160

5261
.demo {
53-
background-color: #fcfcfc;
62+
background-color: white;
5463
position: relative;
5564
display: flex;
5665
justify-content: center;
@@ -70,45 +79,59 @@
7079
}
7180

7281
.perks {
73-
background-color: #fcfcfc;
74-
padding: 4em 0;
75-
position: relative;
76-
top: -8em;
77-
margin-bottom: -8em;
78-
box-shadow: 0 8px 5px -5px rgba(0, 0, 0, 0.055);
82+
max-width: 1200px;
83+
margin: 0 auto;
84+
/* padding: 4em 0; */
85+
/* position: relative; */
86+
/* top: -8em; */
87+
/* margin-bottom: -8em; */
88+
/* box-shadow: 0 8px 5px -5px rgba(0, 0, 0, 0.055); */
89+
display: grid;
90+
flex: 0 0 auto;
91+
gap: 20px;
92+
grid-auto-rows: min-content;
93+
grid-template-columns: repeat(3, minmax(200px, 1fr));
94+
grid-template-rows: repeat(2, min-content);
95+
justify-content: center;
7996
}
8097

81-
.perks .perk_row {
82-
justify-content: center;
83-
padding: 0 3em;
98+
.perksSection {
99+
background: white;
84100
}
85101

86102
.perks .perk {
87-
display: flex;
103+
/* display: flex;
88104
flex-direction: column;
89105
flex: 1 1;
90-
align-items: center;
91-
text-align: center;
92-
padding: 0 3em;
93-
}
94-
95-
.perks .perk:first-child {
96-
padding-left: 2em;
106+
align-items: center; */
107+
flex: 0 0 auto;
108+
place-self: start;
109+
text-align: left;
110+
padding: 40px;
111+
box-shadow: rgb(0 0 0 / 25%) 0px 10px 30px -20px;
112+
border-radius: 20px;
113+
border: 1px solid rgba(0, 0, 0, 0.08);
114+
width: 100%;
115+
height: 100%;
116+
position: relative;
97117
}
98118

99-
.perks .perk:last-child {
100-
padding-right: 2em;
119+
.perk h3 {
120+
font-weight: 600;
121+
margin: 0.5em 0;
122+
font-size: 1.8em;
101123
}
102124

103125
.perks .perk .icon {
104126
display: flex;
105-
height: 80px;
127+
height: 30px;
128+
margin-bottom: 1.2em;
106129
}
107130

108131
.perks .perk span {
109-
color: #919191;
132+
color: rgb(91 94 118);
110133
line-height: 1.9em;
111-
font-weight: 600;
134+
font-weight: 500;
112135
}
113136

114137
.perks .separator {
@@ -118,18 +141,22 @@
118141
}
119142

120143
.notebooks {
144+
background: white;
121145
padding: 6em 0;
122146
text-align: center;
123147
}
124148

125-
.notebooks h2 {
149+
.page h2 {
150+
font-size: 1.8em;
151+
font-weight: 600;
126152
margin: 0 auto 1em auto;
127153
}
128154

129155
.notebooks .text {
130156
text-align: center;
131157
width: 100%;
132158
padding: 0 6em;
159+
margin-bottom: 2em;
133160
}
134161

135162
.notebooks .overview {
@@ -139,8 +166,9 @@
139166
justify-content: space-evenly;
140167
}
141168

142-
.notebooks .discord {
143-
margin: 2em auto 0 auto;
169+
.social img {
170+
height: 40px;
171+
border-radius: 10px;
144172
}
145173

146174
.notebooks .notebook {
@@ -162,29 +190,14 @@
162190
justify-content: center;
163191
}
164192

165-
.build * {
166-
justify-content: center;
167-
}
168-
169-
.build iframe {
170-
border: none;
171-
}
172-
173193
.build p {
174-
text-align: center;
175-
width: 100%;
176-
}
177-
178-
.build .buttons {
179-
margin-top: 4em;
180-
}
181-
182-
.build .buttons > div:first-child {
183-
margin-bottom: 1em;
194+
margin-bottom: 2em;
184195
}
185-
186-
.build h2 {
187-
margin: 0 auto 1em auto;
196+
.buttons {
197+
width: 100%;
198+
display: flex;
199+
gap: 2em;
200+
justify-content: center;
188201
}
189202

190203
.build .link {
@@ -261,24 +274,14 @@
261274
margin-right: 0;
262275
}
263276

264-
.demo {
265-
display: none;
277+
.demo .code_block img {
278+
border: 1px solid #ececec;
279+
border-radius: 0px;
280+
width: 100%;
266281
}
267282

268283
.perks {
269-
padding: 2em 1em;
270-
}
271-
272-
.perks .perk_row {
273-
flex-direction: column;
274-
padding: 0 1em;
275-
}
276-
277-
.perks .perk {
278-
width: 100%;
279-
padding: 0 !important;
280-
flex-grow: 1 1;
281-
margin-bottom: 1em;
284+
grid-template-columns: repeat(1, minmax(200px, 1fr));
282285
}
283286

284287
.notebooks {
@@ -316,9 +319,4 @@
316319
.build {
317320
padding: 3em 1em;
318321
}
319-
320-
.build .buttons a {
321-
width: 100%;
322-
text-align: center;
323-
}
324322
}

0 commit comments

Comments
 (0)