Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End rewards #806

Merged
merged 7 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/rewards-dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<body class="min-h-screen w-screen bg-[#010619] flex flex-col overflow-x-hidden overflow-y-hidden" >
<div id="root" class="
w-screen max-w-[1440px] grow flex flex-col overflow-y-auto h-screen
px-4 md:px-8
"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down
112 changes: 50 additions & 62 deletions apps/rewards-dashboard/package-lock.json

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

3 changes: 2 additions & 1 deletion apps/rewards-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@gfxlabs/oku-chains": "^0.0.19",
"@lingui/macro": "^4.6.0",
"@lingui/react": "^4.6.0",
"@swc/core": "1.3.105",
"@tanstack/react-query": "^5.15.4",
"@uidotdev/usehooks": "^2.4.1",
"@web3modal/wagmi": "^3.5.0",
Expand All @@ -29,7 +30,7 @@
},
"devDependencies": {
"@lingui/cli": "^4.6.0",
"@lingui/swc-plugin": "^4.0.4",
"@lingui/swc-plugin": "^4.0.6",
"@lingui/vite-plugin": "^4.6.0",
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^20.10.5",
Expand Down
45 changes: 40 additions & 5 deletions apps/rewards-dashboard/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,56 @@
import { useState } from "react";
import "./App.css";
import { Background } from "./components/Background";
import { Footer } from "./components/Footer";
import { Header } from "./components/Header";
import { DashboardLayout } from "./layouts/DashboardLayout";
import { AppProvider } from "./providers";
import { Trans } from "@lingui/macro";
import { RxCross1 } from "react-icons/rx";

function App() {
const [hideModal, setHideModal] = useState(false);
return (
<>
<AppProvider>
<Background>
{hideModal ? (
<></>
) : (
<div className="absolute flex flex-col grow h-full w-full scrollbar-hide justify-center items-center ">
<div className="w-96 h-40 bg-[#262b5a] z-10 rounded-3xl border border-1 border-gray-500">
<div className="flex flex-col gap-4">
<div className="flex flex-row justify-between text-gray-300 py-1 justify-center border-b border-gray-500 ">
<div className="flex flex-row items-center grow justify-center text-white pl-5">
<Trans>Program Completed</Trans>
</div>
<div className="flex flex-row items-center justify-center">
<a
className="hover:cursor-pointer pr-3"
onClick={() => {
setHideModal(true);
}}
>
<RxCross1 />
</a>
</div>
</div>
<div className="flex flex-row justify-start text-white text-sm">
<p className="align-start w-full text-center whitespace-pre">
<Trans>Rewards Ended Information</Trans>
</p>
</div>
</div>
</div>
</div>
)}
<div
className="
flex flex-col grow h-full
justify-between
overflow-scroll scrollbar-hide
"
className={`
flex flex-col grow h-full
justify-between
overflow-scroll scrollbar-hide
${!hideModal && "blur-sm"}
`}
>
<Header />
{
Expand Down
2 changes: 1 addition & 1 deletion apps/rewards-dashboard/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const WAC_URL = import.meta.env.VITE_WAC_URL
? import.meta.env.VITE_WAC_URL
: "https://wac.staging.gfx.town";
: "https://wac.gfx.xyz";
Loading
Loading