Added qortal lottery page

This commit is contained in:
AlphaX-Projects
2023-09-03 11:54:11 +02:00
parent 3c0bed0f8f
commit f7f2e28d19
5 changed files with 1097 additions and 10 deletions

View File

@@ -72,6 +72,10 @@ const generateForPlugins = () => {
in: 'plugins/core/overview-page/overview-page.src.js',
out: 'plugins/core/overview-page/overview-page.js',
},
{
in: 'plugins/core/qortal-lottery/qortal-lottery.src.js',
out: 'plugins/core/qortal-lottery/qortal-lottery.js',
},
{
in: 'plugins/core/trade-portal/trade-portal.src.js',
out: 'plugins/core/trade-portal/trade-portal.js',

View File

@@ -183,6 +183,17 @@ parentEpml.ready().then(() => {
menus: [],
parent: false,
},
{
url: 'lottery',
domain: 'core',
page: 'qortal-lottery/index.html',
title: 'Qortal Lottery',
icon: 'vaadin:ticket',
mwcicon: 'token',
pluginNumber: 'plugin-TgHRtXRxit',
menus: [],
parent: false,
},
];
const registerPlugins = (pluginInfo) => {

View File

@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/font/material-icons.css">
<link rel="stylesheet" href="/font/switch-theme.css">
<script>
const checkBack = localStorage.getItem('qortalTheme')
if (checkBack === 'dark') {
newtheme = 'dark';
} else {
newtheme = 'light';
}
document.querySelector('html').setAttribute('theme', newtheme);
</script>
<style>
html {
--scrollbarBG: #a1a1a1;
--thumbBG: #6a6c75;
}
*::-webkit-scrollbar {
width: 11px;
}
* {
scrollbar-width: thin;
scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}
*::-webkit-scrollbar-track {
background: var(--scrollbarBG);
}
*::-webkit-scrollbar-thumb {
background-color: var(--thumbBG);
border-radius: 6px;
border: 3px solid var(--scrollbarBG);
}
html,
body {
margin: 0;
font-family: "Roboto", sans-serif;
background: var(--plugback);
}
</style>
</head>
<body>
<qortal-lottery></qortal-lottery>
<script src="qortal-lottery.js"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff