Skip to content

Commit

Permalink
fix: background should show up while loading the js
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed Jun 1, 2021
1 parent 65e5e9c commit abcf1f5
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 63 deletions.
61 changes: 61 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,67 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->

<style>
* {
font-family: 'Inter', sans-serif;
box-sizing: border-box;
}

@supports (font-variation-settings: normal) {
* {
font-family: 'Inter var', sans-serif;
}
}

html,
body {
margin: 0;
padding: 0;
}

button {
user-select: none;
}

html {
font-size: 16px;
font-variant: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
font-feature-settings: 'ss01' on, 'ss02' on, 'cv01' on, 'cv03' on;
}

#background-radial-gradient {
position: fixed;
top: 0;
left: 0;
right: 0;
pointer-events: none;
width: 200vw;
height: 200vh;
mix-blend-mode: color;
background: radial-gradient(50% 50% at 50% 50%, #fc077d10 0%, rgba(255, 255, 255, 0) 100%);
transform: translate(-50vw, -100vh);
z-index: -1;
}

html {
min-height: 100%;
}

@media (prefers-color-scheme: dark) {
html {
background-color: #212429;
}
}
@media (prefers-color-scheme: light) {
html {
background-color: #F7F8FA;
}
}
</style>

<title>Uniswap Interface</title>
</head>
<body>
Expand Down
62 changes: 0 additions & 62 deletions src/index.css

This file was deleted.

3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './index.css'
import 'inter-ui'
import '@reach/dialog/styles.css'
import { createWeb3ReactRoot, Web3ReactProvider } from '@web3-react/core'
import React, { StrictMode } from 'react'
import { isMobile } from 'react-device-detect'
Expand Down

1 comment on commit abcf1f5

@vercel
Copy link

@vercel vercel bot commented on abcf1f5 Jun 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.