Skip to content

Commit

Permalink
⚰️ shutdown website
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-manning committed Jul 3, 2024
1 parent fa48317 commit 1c8b7e4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 213 deletions.
71 changes: 0 additions & 71 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,10 @@ import { BrowserRouter as Router, Route, Routes } from "react-router-dom";

import LandingPage from "./pages/landing/LandingPage";
import PoolsPage from "./pages/pools/PoolsPage";
import StakePage from "./pages/stake/StakePage";
import LitepaperPage from "./pages/litepaper/LitepaperPage";
import ClaimPage from "./pages/claim/ClaimPage";
import PoolPage from "./pages/pool/PoolPage";
import NotFoundPage from "./pages/not-found/NotFoundPage";
import ActionsPage from "./pages/actions/ActionsPage";
import ActionRegister from "./pages/actions/register/ActionRegister";
import ActionsIndex from "./pages/actions/ActionsIndex";
import ActionRegisterIndex from "./pages/actions/register/ActionRegisterIndex";
import RegisterTopup from "./pages/actions/register/topup/RegisterTopup";
import TopupPoolDeposit from "./pages/actions/register/topup/TopupPoolDeposit";
import TopupConditions from "./pages/actions/register/topup/TopupConditions";
import TopupPool from "./pages/actions/register/topup/TopupPool";
import TopupLoan from "./pages/actions/register/topup/TopupLoan";
import Layout from "./Layout";
import MeroPage from "./pages/mero/MeroPage";
import { DEBT_REPAYMENT_ACTION_ROUTE, STAKING_LIVE, TOPUP_ACTION_ROUTE } from "./lib/constants";
import CareersPage from "./pages/careers/CareersPage";
import CareerPage from "./pages/careers/CareerPage";
import PoolMigrationPage from "./pages/pool-migration/PoolMigrationPage";
import DebtRepaymentPool from "./pages/actions/register/topup/DebtRepaymentPool";
import PrivacyPolicyPage from "./pages/privacy-policy/PrivacyPolicyPage";
import TermsOfServicePage from "./pages/terms-of-service/TermsOfService";

Expand All @@ -36,63 +19,9 @@ const App = (): JSX.Element => {
<Route index element={<LandingPage />} />
<Route path="pool/:poolName" element={<PoolPage />} />
<Route path="pools" element={<PoolsPage />} />
<Route path="actions" element={<ActionsPage />}>
<Route path="register" element={<ActionRegister />}>
<Route index element={<ActionRegisterIndex />} />
<Route path="topup" element={<RegisterTopup />}>
<Route
index
element={<TopupLoan actionType="topup" nextRouteBase={TOPUP_ACTION_ROUTE} />}
/>
<Route
path="deposit/:poolName/:address/:protocol"
element={
<TopupPoolDeposit actionType="topup" nextRouteBase={TOPUP_ACTION_ROUTE} />
}
/>
<Route
path=":address/:protocol/:poolName"
element={<TopupConditions actionType="topup" />}
/>
<Route path=":address/:protocol" element={<TopupPool />} />
</Route>
<Route path="debt-repayment" element={<RegisterTopup />}>
<Route
index
element={
<TopupLoan
actionType="debtRepayment"
nextRouteBase={DEBT_REPAYMENT_ACTION_ROUTE}
/>
}
/>
<Route
path="deposit/:poolName/:address/:protocol"
element={
<TopupPoolDeposit
actionType="debtRepayment"
nextRouteBase={DEBT_REPAYMENT_ACTION_ROUTE}
/>
}
/>
<Route
path=":address/:protocol/:poolName"
element={<TopupConditions actionType="debtRepayment" />}
/>
<Route path=":address/:protocol" element={<DebtRepaymentPool />} />
</Route>
</Route>
<Route index element={<ActionsIndex />} />
</Route>
{STAKING_LIVE && <Route path="claim" element={<ClaimPage />} />}
{STAKING_LIVE && <Route path="stake" element={<StakePage />} />}
{STAKING_LIVE && <Route path="mero" element={<MeroPage />} />}
<Route path="litepaper" element={<LitepaperPage />} />
<Route path="privacy-policy" element={<PrivacyPolicyPage />} />
<Route path="tos" element={<TermsOfServicePage />} />
<Route path="pool-migration" element={<PoolMigrationPage />} />
<Route path="careers" element={<CareersPage />} />
<Route path="career/:careerId" element={<CareerPage />} />
<Route path="*" element={<NotFoundPage />} />
</Route>
</Routes>
Expand Down
2 changes: 0 additions & 2 deletions src/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import MockSigner from "./lib/mock/signer";
import Footer from "./components/Footer";
import ErrorAlert from "./components/ErrorAlert";
import { MeroError } from "./app/errors";
import RegionPopup from "./components/RegionPopup";

const Background = styled.div`
background: radial-gradient(rgba(11, 3, 60, 0.2), rgba(10, 5, 38, 0.3));
Expand Down Expand Up @@ -91,7 +90,6 @@ const Layout = (): JSX.Element => {
</Content>
<Footer />
<ErrorAlert />
<RegionPopup />
</StyledApp>
</Background>
</Web3ReactProvider>
Expand Down
10 changes: 0 additions & 10 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ const linkLists: LinkListType[] = [
{
header: "footer.community.header",
links: [
{
internal: false,
label: "footer.community.links.careers",
link: "/careers",
},
{
internal: false,
label: "footer.community.links.discord",
Expand All @@ -57,11 +52,6 @@ const linkLists: LinkListType[] = [
{
header: "footer.resources.header",
links: [
{
internal: true,
label: "footer.resources.links.litepaper",
link: "/litepaper",
},
{
internal: false,
label: "footer.resources.links.docs",
Expand Down
1 change: 0 additions & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ const Header = (): JSX.Element => {
<Link to="/">
<Logo src={logo} alt="Mero logo" />
</Link>
<NavItems />
<Connector />
</Content>
</StyledHeader>
Expand Down
99 changes: 0 additions & 99 deletions src/components/RegionPopup.tsx

This file was deleted.

21 changes: 9 additions & 12 deletions src/pages/landing/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ const StyledHero = styled.div`
display: flex;
flex-direction: column;
align-items: center;
margin: var(--section-margin);
@media (max-width: 600px) {
margin: var(--mobile-section-margin);
}
flex: 1;
`;

const TvlHeader = styled.div`
Expand Down Expand Up @@ -66,19 +66,16 @@ const Hero = (): JSX.Element => {

return (
<StyledHero>
<Header1>{t("landingPage.header")}</Header1>
<Header3>{t("landingPage.subHeader")}</Header3>
<TvlHeader>{t("landingPage.stats.tvl")}</TvlHeader>
{tvl ? (
<TvlValue id="hero-statistics-tvl">{tvl.toCompactUsdValue(1)}</TvlValue>
) : (
<LoaderContainer>
<Loader button />
</LoaderContainer>
)}
<Header1>Mero Protocol Shutdown</Header1>
<Header3>
Mero is no longer operational. Users can no longer deposit funds into Mero pools. For users
who still hold funds in Mero pools, you can withdraw your funds below. The Mero website will
be shutdown on 01/01/2025. It has been a pleasure working on Mero, and we thank all of those
who supported us during this time.
</Header3>
<ButtonContainer>
<Button primary large click={() => navigate("/pools")}>
{t("landingPage.viewPools")}
Withdraw
</Button>
</ButtonContainer>
</StyledHero>
Expand Down
16 changes: 0 additions & 16 deletions src/pages/landing/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@ import { useTranslation } from "react-i18next";
import styled from "styled-components";

import Seo from "../../components/Seo";
import Background from "./Background";
import Benefits from "./Benefits";
import FutureActions from "./FutureActions";
import GetStarted from "./GetStarted";
import Hero from "./Hero";
import HowItWorks from "./HowItWorks";
import JoinCommunity from "./JoinCommunity";
import Preview from "./Preview";
import SupportedBy from "./SupportedBy";

const StyledLanding = styled.div`
width: 100%;
Expand All @@ -30,16 +22,8 @@ const LandingPage = (): JSX.Element => {
return (
<StyledLanding>
<Seo title={t("metadata.landing.title")} description={t("metadata.landing.description")} />
<Background />
<Content>
<Hero />
<Benefits />
<Preview />
<HowItWorks />
<FutureActions />
<SupportedBy />
<JoinCommunity />
<GetStarted />
</Content>
</StyledLanding>
);
Expand Down
3 changes: 1 addition & 2 deletions src/styles/Headers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export const Header3 = styled.h3`
max-width: 84rem;
letter-spacing: 0.25px;
font-size: 2.8rem;
line-height: 4.2rem;
font-size: 1.8rem;
@media (max-width: 600px) {
font-size: 1.4rem;
line-height: 1.9rem;
Expand Down

0 comments on commit 1c8b7e4

Please sign in to comment.