Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Game page update. (#1739)
Browse files Browse the repository at this point in the history
* Game page update.

* Fix code style issues with Prettier

Co-authored-by: Lint Action <[email protected]>
  • Loading branch information
fairlighteth and lint-action authored Oct 29, 2021
1 parent 9265d61 commit dc0dc7c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Binary file added src/custom/assets/cow-swap/ninja-cow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 12 additions & 5 deletions src/custom/pages/games/MevSlicer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { ButtonPrimary } from 'components/Button/ButtonMod'
import Page, { Content } from 'components/Page'
import styled from 'styled-components/macro'

import nijaCowImg from './nija-cow.png'
import ninjaCowImg from 'assets/cow-swap/ninja-cow.png'

const GAME_URL = 'https://mevslicer.netlify.app/'

const Wrapper = styled(Page)`
min-height: initial;
padding: 48px 24px 0;
// Override. Should be addressed in the CowGame package instead.
.icon-offline {
Expand All @@ -17,6 +18,12 @@ const Wrapper = styled(Page)`
h1,
p {
text-align: center;
margin: 0;
}
p > img {
width: 100%;
max-width: 200px;
}
${Content} {
Expand All @@ -39,9 +46,9 @@ function openGame() {
export default function MevSlicer() {
return (
<Wrapper>
<p>This Cow doesn&apos;t run any more! Not from MEV!</p>
<p>This Cow doesn&apos;t run away any more! Not from MEV!</p>
<p>
Now is time to take some action! -{' '}
Now is the time to take some action! -{' '}
<strong>
Let&apos;s slice some{' '}
<span role="img" aria-label="sandwich-icon">
Expand All @@ -51,11 +58,11 @@ export default function MevSlicer() {
</strong>
</p>
<p>
<img src={nijaCowImg} alt="Nija Cow" />
<img src={ninjaCowImg} alt="Ninja Cow" />
</p>
<p>
<ButtonPrimary padding="8px" $borderRadius="8px" onClick={openGame}>
MEV Slicer
Play MEV Slicer
</ButtonPrimary>
</p>

Expand Down
Binary file removed src/custom/pages/games/MevSlicer/nija-cow.png
Binary file not shown.

0 comments on commit dc0dc7c

Please sign in to comment.