Skip to content

Commit

Permalink
Set addresses, logos and colors for SushiSwap
Browse files Browse the repository at this point in the history
  • Loading branch information
zippoxer committed Sep 9, 2020
1 parent 13268e2 commit a541ad8
Show file tree
Hide file tree
Showing 30 changed files with 122 additions and 134 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload uniswap.info
name: Upload sushiswap.vision

on:
push:
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Deploy
uses: jakejarvis/s3-sync-action@be0c4ab89158cac4278689ebedd8407dd5f35a83
with:
args: "--exclude index.html --metadata-directive REPLACE --cache-control max-age=86400,public"
args: '--exclude index.html --metadata-directive REPLACE --cache-control max-age=86400,public'
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -32,10 +32,10 @@ jobs:
- name: Deploy index.html
uses: jakejarvis/s3-sync-action@be0c4ab89158cac4278689ebedd8407dd5f35a83
with:
args: "--include index.html --metadata-directive REPLACE --cache-control max-age=0,must-revalidate"
args: '--include index.html --metadata-directive REPLACE --cache-control max-age=0,must-revalidate'
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: 'build'
SOURCE_DIR: 'build'
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
# Uniswap History
# SushiSwap History

![Tests](https://github.com/Uniswap/uniswap-info/workflows/Tests/badge.svg)
Currently a fork of [uniswap-info](https://github.com/Uniswap/uniswap-info) for until we build our own.

![Tests](https://github.com/sushiswap/sushiswap-vision/workflows/Tests/badge.svg)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Transaction and liquidity pool stats for [Uniswap](https://uniswap.org).
Transaction and liquidity pool stats for [SushiSwap](https://sushiswapclassic.org).

Check it out live: [https://uniswap.info](https://uniswap.info).
Check it out live: [https://sushiswap.vision](https://sushiswap.vision).

### To Start Development

###### Installing dependencies

```bash
yarn
```

###### Running locally

```bash
yarn start
```
10 changes: 5 additions & 5 deletions cloudformation.template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "uniswap.info site",
"Description": "sushiswap.vision site",
"Outputs": {
"DeploymentAccessKeyId": {
"Description": "Access key ID for deploying to the S3 bucket",
Expand Down Expand Up @@ -82,12 +82,12 @@
"Type": "AWS::CertificateManager::Certificate",
"Description": "The certificate used to secure the CloudFront distribution",
"Properties": {
"DomainName": "uniswap.info",
"DomainName": "sushiswap.vision",
"ValidationMethod": "DNS",
"Tags": [
{
"Key": "Name",
"Value": "uniswap.info"
"Value": "sushiswap.vision"
},
{
"Key": "Stack",
Expand Down Expand Up @@ -241,10 +241,10 @@
"ResponsePagePath": "/"
}
],
"Comment": "uniswap.info",
"Comment": "sushiswap.vision",
"Enabled": true,
"Aliases": [
"uniswap.info"
"sushiswap.vision"
],
"DefaultRootObject": "index.html",
"HttpVersion": "http2",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "uniswap-info",
"name": "sushiswap-info",
"version": "0.1.0",
"private": true,
"homepage": "https://uniswap.info",
"homepage": "https://sushiswap.vision",
"dependencies": {
"@popperjs/core": "^2.4.2",
"@reach/portal": "^0.10.3",
Expand Down Expand Up @@ -99,4 +99,4 @@
"devDependencies": {
"prettier": "^1.18.2"
}
}
}
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Uniswap Info</title>
<title>SushiSwap Info</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
6 changes: 3 additions & 3 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "Uniswap Info",
"name": "View statistics for Uniswap exchanges.",
"short_name": "SushiSwap Info",
"name": "View statistics for SushiSwap exchanges.",
"icons": [
{
"src": "favicon.ico",
Expand All @@ -12,4 +12,4 @@
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
}
10 changes: 5 additions & 5 deletions src/Theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const theme = (darkMode, color) => ({
panelColor: darkMode ? 'rgba(255, 255, 255, 0)' : 'rgba(255, 255, 255, 0)',
backgroundColor: darkMode ? '#212429' : '#F7F8FA',

uniswapPink: darkMode ? '#ff007a' : 'black',
uniswapPink: darkMode ? '#705240' : 'black',

concreteGray: darkMode ? '#292C2F' : '#FAFAFA',
inputBackground: darkMode ? '#1F1F1F' : '#FAFAFA',
Expand Down Expand Up @@ -48,17 +48,17 @@ const theme = (darkMode, color) => ({
divider: darkMode ? 'rgba(43, 43, 43, 0.435)' : 'rgba(43, 43, 43, 0.035)',

//primary colors
primary1: darkMode ? '#2172E5' : '#ff007a',
primary1: darkMode ? '#2172E5' : '#705240',
primary2: darkMode ? '#3680E7' : '#FF8CC3',
primary3: darkMode ? '#4D8FEA' : '#FF99C9',
primary4: darkMode ? '#376bad70' : '#F6DDE8',
primary5: darkMode ? '#153d6f70' : '#FDEAF1',

// color text
primaryText1: darkMode ? '#6da8ff' : '#ff007a',
primaryText1: darkMode ? '#6da8ff' : '#705240',

// secondary colors
secondary1: darkMode ? '#2172E5' : '#ff007a',
secondary1: darkMode ? '#2172E5' : '#705240',
secondary2: darkMode ? '#17000b26' : '#F6DDE8',
secondary3: darkMode ? '#17000b26' : '#FDEAF1',

Expand All @@ -72,7 +72,7 @@ const theme = (darkMode, color) => ({
link: '#2172E5',
blue: '2f80ed',

background: darkMode ? 'black' : `radial-gradient(50% 50% at 50% 50%, #ff007a30 0%, #fff 0%)`
background: darkMode ? 'black' : `radial-gradient(50% 50% at 50% 50%, #70524030 0%, #fff 0%)`
})

const TextWrapper = styled(Text)`
Expand Down
2 changes: 1 addition & 1 deletion src/apollo/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { HttpLink } from 'apollo-link-http'

export const client = new ApolloClient({
link: new HttpLink({
uri: 'https://api.thegraph.com/subgraphs/id/QmUNBwiwJbRRYUZRwxcD187uKou5AqKjKqdqnwcW8gP6u3'
uri: 'https://api.thegraph.com/subgraphs/id/QmePtiMXjoFp5YiJeraZhp6YsBQNpLKCKQ4q8DFUjrSk5C'
}),
cache: new InMemoryCache(),
shouldBatch: true
Expand Down
4 changes: 4 additions & 0 deletions src/assets/SushiSwap (1).svg:Zone.Identifier
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=about:client
HostUrl=about:internet
Empty file.
32 changes: 18 additions & 14 deletions src/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a541ad8

Please sign in to comment.