+
setTabsActive(0)}
@@ -44,13 +46,13 @@ export default function Leaderboard() {
{/* */}
Referral Leaderboard
Mystery Box Winners
@@ -64,11 +66,11 @@ export default function Leaderboard() {
/>
{/* Content: tab views */}
-
+
{tabsActive === 0 && }
{tabsActive === 1 && }
{tabsActive === 2 && }
-
+
);
diff --git a/src/styles/common.ts b/src/styles/common.ts
index ac44a7d0..a14b4ef4 100644
--- a/src/styles/common.ts
+++ b/src/styles/common.ts
@@ -31,6 +31,14 @@ export const BgBox = styled.div`
rgba(12, 14, 17, 0.23) 100%
);
overflow: auto;
+ .maxWid {
+ max-width: calc(100% - 30rem);
+ }
+ @media (max-width: 768px) {
+ .maxWid {
+ max-width: 100%;
+ }
+ }
`;
export const BgCoverImg = styled.div`
@@ -38,7 +46,7 @@ export const BgCoverImg = styled.div`
top: 7.5rem;
left: 50%;
transform: translate(-50%, 0);
- width: 58.875rem;
+ width: 100vw;
height: calc(100vh - 7.5rem);
border-radius: 58.875rem;
background: rgba(0, 194, 255, 0.32);
@@ -55,7 +63,17 @@ export const CardBox = styled.div`
background: #1d4138 !important;
}
&.bg {
- background-image: url('/img/bg-nova-points.png');
+ background-image: url("/img/bg-nova-points.png");
+ }
+ .maxWid {
+ max-width: calc(100% - 14rem);
+ overflow: auto;
+ }
+ @media (max-width: 768px) {
+ .maxWid {
+ max-width: none;
+ overflow: visible;
+ }
}
`;
@@ -95,6 +113,48 @@ export const TableBox = styled.div`
}
`;
+export const TableBoxs = styled.div`
+ .table {
+ padding: 0 1.5rem;
+ border-radius: 1rem;
+ background: rgba(0, 0, 0, 0.4);
+ backdrop-filter: blur(15.800000190734863px);
+ }
+ .table-header {
+ tr {
+ border-bottom: 0.0625rem solid #546779;
+ }
+ th {
+ padding: 1.5rem 1rem 1.5rem 0;
+ background: none;
+ color: #c6d3dd;
+ font-family: Satoshi;
+ font-size: 1rem;
+ font-style: normal;
+ font-weight: 900;
+ line-height: 1.5rem; /* 150% */
+ }
+ th::last-child {
+ padding-right: 0;
+ }
+ }
+
+ .table-tbody {
+ tr:first-child td {
+ padding: 1.5rem 0 1.5rem;
+ }
+ tr:last-child td {
+ padding: 0.75rem 0 1.5rem;
+ }
+ td {
+ padding: 0.75rem 1rem 0.75rem 0;
+ }
+ td::last-child {
+ padding-right: 0;
+ }
+ }
+`;
+
export const FooterTvlText = styled.p`
color: #fff;
font-family: Satoshi;
@@ -138,5 +198,3 @@ export const GradientBorder = styled.div`
background: linear-gradient(90deg, #48ecae 0%, #3a50ed 52.9%, #49cdd7 100%);
}
`;
-
-
diff --git a/src/styles/global.css b/src/styles/global.css
index acbff45b..0b5f0970 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -24,6 +24,9 @@
text-align: left;
border: none;
}
+.gradient-btn.default {
+ background:rgba(0, 0, 0, 0.40);
+}
.gradient-btn:disabled {
cursor: not-allowed;
opacity: 0.4 !important;
@@ -61,6 +64,25 @@
.not-active-1:first-child .bar {
display: none;
}
-.bg-skeleto-gray {
- background-color: gray !important;
+
+ @media (max-width: 768px) {
+.btn-default{
+ min-width: auto;
+ padding: 0 10px;
+ gap:0;
+ border-radius: 8px;
+ background: linear-gradient(to right, #48ECAE, #3E52FC, #49CED7);
+}
+.padX{
+ padding: 0 20px;
+}
+.bg-mobile{
+ background: rgba(0,0,0,0.9) !important;
+ }
+.navbar-menu{
+ background-color: rgba(0,0,0,0.9);
+
}
+
+ }
+
diff --git a/src/utils/index.ts b/src/utils/index.ts
index 175ef5ad..935789ab 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -143,7 +143,7 @@ export function getBooster(value: number): number {
export function getNextMilestone(value: number): number {
const arr = BOOST_LIST.filter((item) => value < item.value);
- const nextValue = arr[0].value;
+ const nextValue = arr.length > 0 ?arr[0].value : 0
return nextValue;
}
diff --git a/tailwind.config.js b/tailwind.config.js
index 0b82dc42..cdc228e3 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -5,11 +5,21 @@ export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
- "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}"
+ "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
],
theme: {
- extend: {},
+ extend: {
+ colors: {
+ navBackground: "rgba(0, 0, 0, 0.08)",
+ primary: {
+ 100: "#48ECAE",
+ 400: "#3E52FC",
+ 700: "#49CED7",
+ },
+ inputColor: "#313841",
+ },
+ },
},
darkMode: "class",
- plugins: [nextui()]
-}
+ plugins: [nextui()],
+};
diff --git a/vite.config.ts b/vite.config.ts
index eca2e2ee..0f781fdc 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -23,12 +23,14 @@ export default defineConfig({
rewrite: (path) => path.replace(/^\/twitter/, ""),
},
"/api": {
- target: "https://app.zklink.io",
+ target: "https://goerli.app.zklink.io",
+ // target: "https://app.zklink.io",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, "/api"),
},
"/points": {
- target: "https://app.zklink.io",
+ target: "https://goerli.app.zklink.io",
+ // target: "https://app.zklink.io",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/points/, "/points"),
},