diff --git a/web/e.cash/components/atoms/index.js b/web/e.cash/components/atoms/index.js
new file mode 100644
index 000000000..2005397ff
--- /dev/null
+++ b/web/e.cash/components/atoms/index.js
@@ -0,0 +1,3 @@
+import { Container, ThemeSwitch } from './styles';
+
+export { Container, ThemeSwitch };
diff --git a/web/e.cash/components/atoms/styles.js b/web/e.cash/components/atoms/styles.js
new file mode 100644
index 000000000..5eb9e0709
--- /dev/null
+++ b/web/e.cash/components/atoms/styles.js
@@ -0,0 +1,22 @@
+import styled from 'styled-components';
+
+export const Container = styled.div`
+ width: 100%;
+ margin: auto;
+ max-width: 1500px;
+ padding: 0 50px;
+
+ ${props => props.theme.breakpoint.medium} {
+ padding: 0 20px;
+ }
+`;
+
+export const ThemeSwitch = styled.div`
+ position: fixed;
+ bottom: 30px;
+ width: 40px;
+ height: 40px;
+ z-index: 9999;
+ background: rgba(255, 255, 255, 0.1);
+ right: 30px;
+`;
diff --git a/web/e.cash/components/layout.js b/web/e.cash/components/layout/index.js
similarity index 98%
rename from web/e.cash/components/layout.js
rename to web/e.cash/components/layout/index.js
index 25b3be69c..0f8bdb2c1 100644
--- a/web/e.cash/components/layout.js
+++ b/web/e.cash/components/layout/index.js
@@ -1,40 +1,40 @@
import Head from 'next/head';
-import Nav from './navbar';
+import Nav from '/components/navbar';
const Layout = ({
metaTitle = 'eCash | Wealth Redefined',
metaDescription = 'Introducing eCash: the new battle-tested cryptocurrency forged from centuries of economic theory and over a decade of real-world crypto experience. eCash is the implementation of the tech-secured sound money envisioned by luminaries in monetary philosophy like Milton Friedman. eCash follows through on key promises such as the innovative Avalanche consensus layer while also introducing concepts never before seen in a Bitcoin project such as staking, fork-free network upgrades, and subchains. Look for the ticker symbol XEC on exchanges, wallets, or price charts, and take your first step towards true financial freedom.',
children,
}) => {
return (
<>
{metaTitle}{children}
>
);
};
export default Layout;
diff --git a/web/e.cash/pages/_app.js b/web/e.cash/pages/_app.js
index 4014d8d97..af652e183 100644
--- a/web/e.cash/pages/_app.js
+++ b/web/e.cash/pages/_app.js
@@ -1,29 +1,21 @@
import { useState } from 'react';
-import '../styles/global.css';
-import styled, { ThemeProvider } from 'styled-components';
-import { ecash, stealth } from '../styles/theme';
-
-const ThemeSwitch = styled.div`
- position: fixed;
- bottom: 30px;
- width: 40px;
- height: 40px;
- z-index: 9999;
- background: rgba(255, 255, 255, 0.1);
- right: 30px;
-`;
+import { ThemeProvider } from 'styled-components';
+import { ecash, stealth } from '/styles/theme';
+import GlobalCSS from '/styles/global';
+import { ThemeSwitch } from '/components/atoms';
export default function App({ Component, pageProps }) {
const [theme, setTheme] = useState(ecash);
const HandleThemeChange = () => {
setTheme(theme === ecash ? stealth : ecash);
};
return (
+
);
}
diff --git a/web/e.cash/pages/index.js b/web/e.cash/pages/index.js
index 170c8309c..a35fb7a01 100644
--- a/web/e.cash/pages/index.js
+++ b/web/e.cash/pages/index.js
@@ -1,101 +1,102 @@
import Image from 'next/image';
import Link from 'next/link';
import Layout from '/components/layout';
import VideoBackground from '/components/videobackground';
import GlitchText from '/components/glitch-text';
+import { Container } from '/components/atoms';
import { socials } from '/data/socials';
import {
Hero,
ButtonCtn,
HeroImage,
GradientSpacer,
StoryAndWhySection,
Overlay,
StorySection,
YouTubeVideo,
} from '/styles/pages/homepage';
import Button from '/components/button';
import H2 from '/components/h2';
import Hand from '/public/images/hand.png';
export default function Home() {
return (
-
+
WEALTH
Simple. Instant. Secure.
Experience the revolutionary new money powered by
Avalanche.
{socials.map(social => (
))}
-
+
-
+
Introducing eCash: the new battle-tested
cryptocurrency forged from centuries of economic
theory and over a decade of real-world crypto
experience. eCash is the implementation of the
tech-secured sound money envisioned by
luminaries in monetary philosophy like Milton
Friedman.