Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replaced styled components w/ Chakra components in studio.tsx #9518

Merged
merged 3 commits into from
Mar 7, 2023
Merged
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
156 changes: 83 additions & 73 deletions src/pages/studio.tsx
Original file line number Diff line number Diff line change
@@ -1,81 +1,91 @@
import React from "react"
import styled from "@emotion/styled"
import { Box, Container, Divider, Heading, useToken } from "@chakra-ui/react"

import Link from "../components/Link"
import Emoji from "../components/OldEmoji"
import Emoji from "../components/Emoji"
import ButtonLink from "../components/ButtonLink"
import { Page, Content, Divider } from "../components/SharedStyledComponents"

const StyledPage = styled(Page)`
margin-top: 4rem;
margin-bottom: 4rem;
max-width: ${(props) => props.theme.breakpoints.l};
align-self: flex-start;
`
const StudioRedirectPage = () => {
const largeBp = useToken("breakpoints", "lg")

const H1 = styled.h1`
font-size: 64px;
font-style: normal;
font-weight: 700;
letter-spacing: 0px;
text-align: left;
@media (max-width: ${(props) => props.theme.breakpoints.l}) {
font-size: 3rem;
}
`

const H2 = styled.h2`
font-size: 2rem;
font-style: normal;
font-weight: 700;
letter-spacing: 0px;
text-align: left;
`

const StudioRedirectPage = () => (
<StyledPage>
<Content>
<Emoji size={6} mb={"2rem"} text=":sunset_over_buildings:" />
<H1>We've sunset Studio</H1>
<p>
Ethereum Studio is no longer actively maintained. We'd like to thank the{" "}
<Link to="https://superblocks.com/">Superblocks</Link>
team and the many open source contributors who generously helped support
this project.
</p>
<p>
You can find the source code for this project here:
<ul>
<li>
<Link to="https://github.com/SuperblocksHQ/ethereum-studio">
Web IDE
</Link>
</li>
<li>
<Link to="https://github.com/SuperblocksHQ/studio-api-services-project">
API server
</Link>
</li>
</ul>
</p>
<Divider />
<H2>What to use instead</H2>
<p>
We recommend using Remix as an alternative web IDE for your Solidity
development. Additionally, we encourage you to consider{" "}
<Link to="/developers/local-environment/">
setting up a local development environment
</Link>
. Check out our developer portal for tools, documentation, and more.
</p>
<ButtonLink mr={1} variant="outline" to="https://remix.ethereum.org">
Use Remix
</ButtonLink>
<ButtonLink variant="outline" to="/developers/">
Developer portal
</ButtonLink>
</Content>
</StyledPage>
)
return (
<Container
w="full"
display="flex"
maxW={largeBp}
flexDirection="column"
alignItems="center"
alignSelf="flex-start"
my={16}
p={0}
>
<Box px={8} py={4} w="full">
<Emoji fontSize="8xl" mb={10} text=":sunset_over_buildings:" />
<Heading
fontSize={{ base: "5xl", lg: "6xl" }}
fontStyle="normal"
fontWeight="bold"
letterSpacing="normal"
as="h1"
textAlign="left"
>
We've sunset Studio
</Heading>
<p>
Ethereum Studio is no longer actively maintained. We'd like to thank
the <Link to="https://superblocks.com/">Superblocks</Link>
team and the many open source contributors who generously helped
support this project.
</p>
<p>
You can find the source code for this project here:
<ul>
<li>
<Link to="https://github.com/SuperblocksHQ/ethereum-studio">
Web IDE
</Link>
</li>
<li>
<Link to="https://github.com/SuperblocksHQ/studio-api-services-project">
API server
</Link>
</li>
</ul>
</p>
<Divider
my={16}
w="10%"
h="1"
opacity="1"
backgroundColor="homeDivider"
/>
<Heading
fontSize="3xl"
fontStyle="normal"
fontWeight="bold"
letterSpacing="normal"
textAlign="left"
as="h2"
>
What to use instead
</Heading>
<p>
We recommend using Remix as an alternative web IDE for your Solidity
development. Additionally, we encourage you to consider{" "}
<Link to="/developers/local-environment/">
setting up a local development environment
</Link>
. Check out our developer portal for tools, documentation, and more.
</p>
<ButtonLink mr={1} variant="outline" to="https://remix.ethereum.org">
Use Remix
</ButtonLink>
<ButtonLink variant="outline" to="/developers/">
Developer portal
</ButtonLink>
</Box>
</Container>
)
}

export default StudioRedirectPage