-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Fran Fernandez <[email protected]>
- Loading branch information
1 parent
ec657c2
commit 70848f7
Showing
14 changed files
with
1,244 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>dApp</title> | ||
<link rel="stylesheet" href="/main.css" /> | ||
</head> | ||
|
||
<body> | ||
<main> | ||
<h1>dApp</h1> | ||
<p> | ||
This demo dApp requires a project id from WalletConnect. Please see | ||
<a target="_blank" href="https://cloud.walletconnect.com"> | ||
https://cloud.walletconnect.com | ||
</a> | ||
</p> | ||
<div id="root"></div> | ||
</main> | ||
<script src="main.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
* { | ||
box-sizing: border-box; | ||
border-radius: 1rem; | ||
appearance: none; | ||
} | ||
body { | ||
margin: 0; | ||
font-family: sans-serif; | ||
color: white; | ||
background: black; | ||
} | ||
main { | ||
padding: 1rem; | ||
margin: 0 auto; | ||
max-width: 1400px; | ||
} | ||
|
||
section { | ||
color: black; | ||
background-color: white; | ||
margin: 3rem 0; | ||
padding: 1rem; | ||
background: | ||
linear-gradient(white, white) padding-box, | ||
linear-gradient(to right, #5281e7, #765aea) border-box; | ||
border: 6px solid transparent; | ||
/* border-radius: 0 10rem 10rem; */ | ||
padding: 4vw 6vw; | ||
box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.1); | ||
/* nesting natively supported by some browsers */ | ||
& form fieldset { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
& label { | ||
padding: 1rem 0; | ||
font-weight: bold; | ||
} | ||
} | ||
} | ||
|
||
a { | ||
color: #5381e7; | ||
text-decoration: none; | ||
&:hover { | ||
filter: brightness(1.4); | ||
} | ||
} | ||
|
||
button { | ||
max-width: fit-content; | ||
color: white; | ||
background: linear-gradient(160deg, #3ec878, #21a056); | ||
position: relative; | ||
z-index: 1; | ||
cursor: pointer; | ||
margin: 1rem 0; | ||
appearance: none; | ||
padding: 0.5rem 1rem; | ||
border: 1px solid transparent; | ||
border-radius: 1rem; | ||
transition: opacity 0.3s; | ||
|
||
&::before { | ||
content: ''; | ||
background: linear-gradient(160deg, #21a056, #3ec878); | ||
position: absolute; | ||
border-radius: 15px; | ||
top: -1px; | ||
left: -1px; | ||
width: calc(100% + 2px); | ||
height: calc(100% + 2px); | ||
opacity: 0; | ||
transition: opacity 0.3s; | ||
z-index: -1; | ||
} | ||
|
||
&:hover::before { | ||
opacity: 1; | ||
} | ||
&:disabled { | ||
opacity: 0.5; | ||
cursor: not-allowed; | ||
} | ||
} | ||
|
||
input, | ||
select { | ||
width: 100%; | ||
height: 2rem; | ||
border: 1px solid black; | ||
margin: 0.5rem 0; | ||
padding: 0.5rem; | ||
&:disabled { | ||
color: transparent; | ||
border: 1px solid lightgrey; | ||
background-color: #fafafa; | ||
} | ||
} | ||
#init input, | ||
#init select { | ||
&:disabled { | ||
color: black; | ||
border: 1px solid black; | ||
} | ||
} | ||
|
||
hr { | ||
width: 100%; | ||
} | ||
|
||
dialog { | ||
max-width: 60rem; | ||
position: relative; | ||
padding: 1rem; | ||
background: | ||
linear-gradient(white, white) padding-box, | ||
linear-gradient(to right, #5281e7, #765aea) border-box; | ||
border: 6px solid transparent; | ||
box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
dialog::backdrop { | ||
background: hsl(0 0% 0% / 50%); | ||
} | ||
|
||
dialog > div:first-child > button { | ||
color: white; | ||
background: linear-gradient(160deg, #5d5f5f, #2d2d2d); | ||
font-size: 0.75em; | ||
|
||
&::before { | ||
content: ''; | ||
background: linear-gradient(160deg, #2d2d2d, #5d5f5f); | ||
} | ||
} | ||
|
||
dialog > div:first-child { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
dialog > div:nth-child(2) { | ||
padding: 2rem; | ||
} | ||
|
||
.loading { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.loader { | ||
width: 48px; | ||
height: 48px; | ||
border: 3px solid #765aea; | ||
border-radius: 50%; | ||
display: inline-block; | ||
position: relative; | ||
box-sizing: border-box; | ||
animation: rotation 1s linear infinite; | ||
} | ||
.loader::after { | ||
content: ''; | ||
box-sizing: border-box; | ||
position: absolute; | ||
left: 50%; | ||
top: 50%; | ||
transform: translate(-50%, -50%); | ||
width: 56px; | ||
height: 56px; | ||
border-radius: 50%; | ||
border: 3px solid transparent; | ||
border-bottom-color: #2d2d2d; | ||
} | ||
|
||
@keyframes rotation { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react' | ||
import { createRoot } from 'react-dom/client' | ||
import App from './src/App' | ||
|
||
document.body.innerHTML = '<div id="app"></div>' | ||
|
||
const appElement = document.getElementById('app') | ||
if (appElement) { | ||
const root = createRoot(appElement) | ||
root.render(<App />) | ||
} |
Oops, something went wrong.