Skip to content

Commit 7a8d0f8

Browse files
committed
site fixes
1 parent 74f93ee commit 7a8d0f8

File tree

6 files changed

+89
-267
lines changed

6 files changed

+89
-267
lines changed

packages/editor/src/app/App.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { SessionStore } from "../store/local/SessionStore";
1010

1111
import { navigateRef, setNavigateRef } from "./GlobalNavigateRef";
1212
import Main from "./main/Main";
13-
import { AILanding } from "./main/components/startscreen/AILanding";
1413
import { StartScreen } from "./main/components/startscreen/StartScreen";
1514
import { DocumentRoute } from "./routes/document";
1615
import { SupabaseSessionStore } from "./supabase-auth/SupabaseSessionStore";
@@ -54,10 +53,7 @@ export const App = observer(
5453
element={
5554
<StartScreen sessionStore={sessionStore}></StartScreen>
5655
}></Route>
57-
<Route
58-
path="/ai"
59-
element={<AILanding sessionStore={sessionStore} />}
60-
/>
56+
6157
<Route
6258
path="*"
6359
element={<DocumentRoute sessionStore={sessionStore} />}
@@ -66,24 +62,24 @@ export const App = observer(
6662
<Route
6763
path="/register"
6864
element={props.authProvider.routes.register(
69-
sessionStore as SupabaseSessionStore
65+
sessionStore as SupabaseSessionStore,
7066
)}
7167
/>
7268
<Route path="/recover" element={<div>Not implemented yet</div>} />
7369
<Route
7470
path="/login"
7571
element={props.authProvider.routes.login(
76-
sessionStore as SupabaseSessionStore
72+
sessionStore as SupabaseSessionStore,
7773
)}
7874
/>
7975
{props.authProvider.routes.additionalRoutes(
80-
sessionStore as SupabaseSessionStore
76+
sessionStore as SupabaseSessionStore,
8177
)}
8278
{/* todo: notfound? */}
8379
</Route>
8480
</Routes>
8581
</BrowserRouter>
8682
);
87-
}
83+
},
8884
);
8985
export default App;

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ const Main = observer((props: { sessionStore: SessionStore }) => {
4242
className={classNames(
4343
styles.main,
4444
top && styles.top,
45-
(location.pathname === "/" || location.pathname === "/ai") &&
46-
styles.homepage,
47-
location.pathname === "/ai" && styles.ai
45+
location.pathname === "/" && styles.homepage,
4846
)}>
4947
<Navigation sessionStore={props.sessionStore} />
5048
<Outlet />

packages/editor/src/app/main/components/startscreen/AILanding.tsx

Lines changed: 0 additions & 167 deletions
This file was deleted.

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

Lines changed: 57 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.page {
2-
padding: 0 1em;
32
font-size: 18px;
43
}
54

@@ -75,8 +74,6 @@
7574

7675
.perks {
7776
font-size: 16px;
78-
max-width: calc(var(--content-max-width) - 104px);
79-
margin: 0 auto;
8077
/* padding: 4em 0; */
8178
/* position: relative; */
8279
/* top: -8em; */
@@ -86,7 +83,7 @@
8683
flex: 0 0 auto;
8784
gap: 20px;
8885
grid-auto-rows: min-content;
89-
grid-template-columns: repeat(4, minmax(200px, 1fr));
86+
grid-template-columns: repeat(3, minmax(200px, 1fr));
9087
grid-template-rows: repeat(2, min-content);
9188
justify-content: center;
9289
}
@@ -190,7 +187,7 @@
190187

191188
.build {
192189
padding: 4em 0;
193-
justify-content: center;
190+
/* justify-content: center; */
194191
}
195192

196193
form {
@@ -267,7 +264,61 @@ button {
267264
padding: 0 0 0.5em 0;
268265
}
269266

270-
@media only screen and (max-width: 768px) {
267+
:root {
268+
--vp-layout-max-width: 1440px;
269+
--content-max-width: 1480px;
270+
}
271+
272+
.header {
273+
position: relative;
274+
display: flex;
275+
gap: 84px;
276+
width: var(--content-max-width);
277+
max-width: 100%;
278+
margin: 0 auto 52px;
279+
padding-top: 226px;
280+
}
281+
282+
.content {
283+
max-width: var(--content-max-width);
284+
margin: 0 auto;
285+
}
286+
.header,
287+
.content {
288+
padding-left: 52px;
289+
padding-right: 52px;
290+
}
291+
292+
@media (max-width: 1280px) {
293+
.header {
294+
gap: 64px;
295+
}
296+
297+
.header,
298+
.content {
299+
padding-right: 32px;
300+
}
301+
}
302+
@media (max-width: 1024px) {
303+
.header {
304+
flex-direction: column;
305+
align-items: center;
306+
padding-top: 150px;
307+
}
308+
309+
.perks {
310+
grid-template-columns: repeat(1, minmax(200px, 1fr));
311+
}
312+
}
313+
@media (max-width: 500px) {
314+
.header,
315+
.content {
316+
padding-left: 0;
317+
padding-right: 12px;
318+
}
319+
}
320+
321+
@media (max-width: 768px) {
271322
.introduction {
272323
padding-left: 1em;
273324
padding-right: 1em;
@@ -286,10 +337,6 @@ button {
286337
width: 100%;
287338
}
288339

289-
.perks {
290-
grid-template-columns: repeat(1, minmax(200px, 1fr));
291-
}
292-
293340
.notebooks {
294341
padding: 2em 0 0 0;
295342
}
@@ -327,41 +374,6 @@ button {
327374
}
328375
}
329376

330-
:root {
331-
--vp-layout-max-width: 1440px;
332-
--content-max-width: 1480px;
333-
}
334-
335-
.header {
336-
position: relative;
337-
display: flex;
338-
gap: 84px;
339-
width: var(--content-max-width);
340-
max-width: 100%;
341-
margin: 0 auto 52px;
342-
padding: 0 52px;
343-
padding-top: 226px;
344-
}
345-
346-
@media (max-width: 1280px) {
347-
.header {
348-
gap: 64px;
349-
padding-right: 32px;
350-
}
351-
}
352-
@media (max-width: 1024px) {
353-
.header {
354-
flex-direction: column;
355-
align-items: center;
356-
padding-top: 150px;
357-
}
358-
}
359-
@media (max-width: 500px) {
360-
.header {
361-
padding: 0 12px;
362-
}
363-
}
364-
365377
.headerContent {
366378
flex: 1.2;
367379
position: relative;

0 commit comments

Comments
 (0)