Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@

.code_block {
display: block;
margin: 5em 0;
}

.code_block img {
.code_block video {
box-shadow: rgb(0 0 0 / 25%) 0px 10px 30px -20px;
border-radius: 20px;
border: 1px solid rgba(0, 0, 0, 0.08);
Expand Down Expand Up @@ -71,6 +70,17 @@
margin-bottom: 100px;
}

.story > div {
flex: 1 1 0px;
}

.story video {
max-width: 100%;
box-shadow: rgb(0 0 0 / 25%) 0px 10px 30px -20px;
border-radius: 20px;
border: 1px solid rgba(0, 0, 0, 0.08);
}

.story img {
max-width: 100%;
}
Expand Down Expand Up @@ -105,9 +115,9 @@
place-self: start;
text-align: left;
padding: 30px;
box-shadow: rgb(0 0 0 / 25%) 0px 1px 3px -2px;

border-radius: 20px;
box-shadow: rgb(0 0 0 / 25%) 0px 1px 3px -2px;
border: 1px solid rgba(0, 0, 0, 0.08);
width: 100%;
height: 100%;
Expand Down Expand Up @@ -257,6 +267,14 @@ form {
.perks {
grid-template-columns: repeat(1, minmax(200px, 1fr));
}

.story {
flex-direction: column;
}

.uneven .story {
flex-direction: column-reverse;
}
}
@media (max-width: 500px) {
.header,
Expand Down
88 changes: 56 additions & 32 deletions packages/editor/src/app/main/components/startscreen/StartScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ import { useEffect } from "react";
import { Link, useLocation, useNavigate } from "react-router-dom";
import { SessionStore } from "../../../../store/local/SessionStore";
// import { NotebookOverviewItem } from "../../../matrix-auth/routes/overview/NotebookOverviewItem";
import { toDocs, toRegisterScreen, toTutorial } from "../../../routes/routes";
import {
toDocs,
toLoginScreen,
toRegisterScreen,
toTutorial,
} from "../../../routes/routes";
import styles from "./StartScreen.module.css";
import intro from "./assets/intro.gif";
import confettiVideo from "./assets/video/confetti.mp4";
import savingsVideo from "./assets/video/savings.mp4";
import welcomeVideo from "./assets/video/welcome.mp4";

export const StartScreen = observer((props: { sessionStore: SessionStore }) => {
const { sessionStore } = props;
Expand Down Expand Up @@ -49,15 +56,25 @@ export const StartScreen = observer((props: { sessionStore: SessionStore }) => {
</div>
<div className={styles.headerMedia}>
<div className={styles.code_block}>
<img src={intro} alt="TypeCell Demo" />
<video autoPlay={true} loop={true} muted={true}>
<source src={welcomeVideo} type="video/mp4" />
Your browser does not support the video tag.
</video>
</div>
</div>
</header>
<div className={styles.page + " centered"}>
<section className={styles.storySection + " " + styles.uneven}>
<div className={styles.content + " " + styles.story}>
<div className={""}>
<img src={intro} alt="TypeCell Demo" />
<video
autoPlay={true}
loop={true}
muted={true}
style={{ maxWidth: "85%" }}>
<source src={savingsVideo} type="video/mp4" />
Your browser does not support the video tag.
</video>
</div>
<div className={""}>
<h4>Break-free from your tools with hackable software</h4>
Expand Down Expand Up @@ -128,7 +145,7 @@ export const StartScreen = observer((props: { sessionStore: SessionStore }) => {
</section>

<div className={styles.section_separator} role="separator"></div>
<section className={styles.storySection + " " + styles.sdf}>
<section className={styles.storySection}>
<div className={styles.content + " " + styles.story}>
<div className={""}>
<h4>Simplify the programming experience</h4>
Expand All @@ -142,7 +159,10 @@ export const StartScreen = observer((props: { sessionStore: SessionStore }) => {
</p>
</div>
<div className={""}>
<img src={intro} alt="TypeCell Demo" />
<video autoPlay={true} loop={true} muted={true}>
<source src={confettiVideo} type="video/mp4" />
Your browser does not support the video tag.
</video>
</div>
</div>

Expand Down Expand Up @@ -174,29 +194,33 @@ export const StartScreen = observer((props: { sessionStore: SessionStore }) => {
</section>

<div className={styles.section_separator} role="separator"></div>
<section className={styles.storySection + " " + styles.sdf}>
<section className={styles.storySection + " " + styles.uneven}>
<div className={styles.content + " " + styles.story}>
<div className={""}>
<a
href="https://discord.gg/TcJ9TRC3SV"
target="_blank"
rel="noreferrer">
<img
style={{ borderRadius: "5px" }}
alt="Discord"
src="https://img.shields.io/badge/Join us on discord%20-%237289DA.svg?style=for-the-badge&logo=discord&logoColor=white"
/>
</a>
<a
href="https://github.com/typecellOS/typecell"
target="_blank"
rel="noreferrer">
<img
style={{ borderRadius: "5px" }}
alt="GitHub"
src="https://img.shields.io/badge/Star on GitHub%20-%23eeeeee.svg?style=for-the-badge&logo=github&logoColor=black"
/>
</a>
<div className={""} style={{ textAlign: "center" }}>
<p>
<a
href="https://discord.gg/TcJ9TRC3SV"
target="_blank"
rel="noreferrer">
<img
style={{ borderRadius: "5px" }}
alt="Discord"
src="https://img.shields.io/badge/Join us on discord%20-%237289DA.svg?style=for-the-badge&logo=discord&logoColor=white"
/>
</a>
</p>
<p>
<a
href="https://github.com/typecellOS/typecell"
target="_blank"
rel="noreferrer">
<img
style={{ borderRadius: "5px" }}
alt="GitHub"
src="https://img.shields.io/badge/Star on GitHub%20-%23eeeeee.svg?style=for-the-badge&logo=github&logoColor=black"
/>
</a>
</p>
</div>
<div className={""}>
<h4>Join the TypeCell community</h4>
Expand Down Expand Up @@ -320,7 +344,7 @@ export const StartScreen = observer((props: { sessionStore: SessionStore }) => {
<span>Tutorial</span>
</Link>
</li>
<li>
{/* <li>
<Link to={toTutorial()}>
<span>Manual</span>
</Link>
Expand All @@ -329,19 +353,19 @@ export const StartScreen = observer((props: { sessionStore: SessionStore }) => {
<Link to={toTutorial()}>
<span>Demos</span>
</Link>
</li>
</li> */}
</ul>
</div>
<div className={styles.links}>
<h4>Get started</h4>
<ul>
<li>
<Link to={toTutorial()}>
<Link to={toRegisterScreen()}>
<span>Create account</span>
</Link>
</li>
<li>
<Link to={toDocs()}>
<Link to={toLoginScreen()}>
<span>Login</span>
</Link>
</li>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.