Skip to content

Commit

Permalink
feat: add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
RasenGUY committed Sep 13, 2023
1 parent 2d35cee commit 69aa9bb
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
30 changes: 30 additions & 0 deletions src/containers/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { BrandContainer, Brand } from '../Navigation/types';
import { Link } from 'react-router-dom';
import { NormalText } from '../../common/CreateGameCard/types';
import { LogoDarkWo } from '../../assets/images';
import 'twin.macro';


const Footer = () => {
return (
<footer tw="fixed w-full bottom-0">
<div tw="container dark:text-blanc flex w-full py-[56px] font-primary items-end gap-x-[10px] justify-between">
<BrandContainer tw="mb-[4px]">
<div tw="mr-[15px]">
<LogoDarkWo tw="w-[25px]" />
</div>
<Brand>Wega</Brand>
</BrandContainer>
<div>
<span tw="text-[21px] font-[400] leading-[19px]">
Play together, Own together
</span>
</div>
<div>
<Link to="https://wega.gitbook.io/wega-litepaper/" target="_blank"><NormalText>Documentation</NormalText></Link>
</div>
</div>
</footer>
)
}
export default Footer;
5 changes: 3 additions & 2 deletions src/containers/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import {
type useMatches,
ScrollRestoration
} from 'react-router-dom';
import 'twin.macro';
import Navigation from '../Navigation'
import Footer from '../Footer';
import { Toaster } from 'react-hot-toast';
import { GlobalModal } from '../../common/modals';
import 'twin.macro';

const Layout = () => {
const navigation = useNavigation();
Expand Down Expand Up @@ -38,7 +39,7 @@ const Layout = () => {
<GlobalModal>
<Outlet />
</GlobalModal>
<footer tw="container flex justify-center">This is the footer</footer>
<Footer />
<ScrollRestoration getKey={getKey} />
<Toaster />
</>
Expand Down
1 change: 0 additions & 1 deletion src/containers/PlayPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const PlayPage = () => {
<MainContainer>
<Section
direction='col'
tw="h-[300vh]"
hdr={ <WordCarousel
pre="Play, wager and win"
className='dark:text-oranjo'
Expand Down

0 comments on commit 69aa9bb

Please sign in to comment.