diff --git a/app.vue b/app.vue index 5375c3a..e971a69 100644 --- a/app.vue +++ b/app.vue @@ -1,22 +1,33 @@ \ No newline at end of file + diff --git a/components/BaseCard.vue b/components/BaseCard.vue index 1dac3dd..d98d3c8 100644 --- a/components/BaseCard.vue +++ b/components/BaseCard.vue @@ -2,4 +2,4 @@
- \ No newline at end of file + diff --git a/components/LeaderBoard.vue b/components/LeaderBoard.vue index b28c77f..7af78f4 100644 --- a/components/LeaderBoard.vue +++ b/components/LeaderBoard.vue @@ -1,73 +1,70 @@ \ No newline at end of file + diff --git a/components/StakeVolume.vue b/components/StakeVolume.vue index bb79a51..897800d 100644 --- a/components/StakeVolume.vue +++ b/components/StakeVolume.vue @@ -1,56 +1,42 @@ @@ -61,4 +47,4 @@ const totalStaked = computed(() => { .data { @apply font-title text-white-50 text-3xl font-bold; } - \ No newline at end of file + diff --git a/components/SvgIcon.vue b/components/SvgIcon.vue index bbc52bc..fb33e6a 100644 --- a/components/SvgIcon.vue +++ b/components/SvgIcon.vue @@ -1,5 +1,5 @@ \ No newline at end of file + () => import(`@/assets/svg/${url.value}.svg`), +) + diff --git a/nuxt.config.ts b/nuxt.config.ts index 4dbb864..de9e7e4 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,4 +1,4 @@ -import svgLoader from 'vite-svg-loader' +import svgLoader from "vite-svg-loader" // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ @@ -6,104 +6,104 @@ export default defineNuxtConfig({ app: { head: { htmlAttrs: { - lang: 'en-US', + lang: "en-US", }, - title: 'Wit/Stake: Secure the network, earn rewards.', + title: "Wit/Stake: Secure the network, earn rewards.", meta: [ - { charset: 'utf-8' }, + { charset: "utf-8" }, { - name: 'viewport', - content: 'viewport-fit=cover, width=device-width, initial-scale=1', + name: "viewport", + content: "viewport-fit=cover, width=device-width, initial-scale=1", }, { - hid: 'title', - name: 'title', - content: 'Wit/Stake: Secure the network, earn rewards.', + hid: "title", + name: "title", + content: "Wit/Stake: Secure the network, earn rewards.", }, { - hid: 'description', - name: 'description', + hid: "description", + name: "description", content: - 'Track live Stake Volume and Leaderboard rankings in real time. See total wagered amounts and top $WIT stakers at a glance with accurate, up-to-date data. Stay ahead of the game!', + "Track live Stake Volume and Leaderboard rankings in real time. See total wagered amounts and top $WIT stakers at a glance with accurate, up-to-date data. Stay ahead of the game!", }, { - hid: 'twitter:title', - name: 'twitter:title', - content: 'Wit/Stake: Secure the network, earn rewards.', + hid: "twitter:title", + name: "twitter:title", + content: "Wit/Stake: Secure the network, earn rewards.", }, { - hid: 'twitter:description', - name: 'twitter:description', + hid: "twitter:description", + name: "twitter:description", content: - 'Track live Stake Volume and Leaderboard rankings in real time. See total wagered amounts and top $WIT stakers at a glance with accurate, up-to-date data. Stay ahead of the game!', + "Track live Stake Volume and Leaderboard rankings in real time. See total wagered amounts and top $WIT stakers at a glance with accurate, up-to-date data. Stay ahead of the game!", }, { - hid: 'twitter:image', - name: 'twitter:image', - content: '/meta-image.png', + hid: "twitter:image", + name: "twitter:image", + content: "/meta-image.png", }, { - hid: 'twitter:image:alt', - name: 'twitter:image:alt', - content: 'Wit/Oracle', + hid: "twitter:image:alt", + name: "twitter:image:alt", + content: "Wit/Oracle", }, { - hid: 'og:title', - property: 'og:title', - content: 'Wit/Stake: Secure the network, earn rewards.', + hid: "og:title", + property: "og:title", + content: "Wit/Stake: Secure the network, earn rewards.", }, { - hid: 'og:description', - property: 'og:description', + hid: "og:description", + property: "og:description", content: - 'Track live Stake Volume and Leaderboard rankings in real time. See total wagered amounts and top $WIT stakers at a glance with accurate, up-to-date data. Stay ahead of the game!', + "Track live Stake Volume and Leaderboard rankings in real time. See total wagered amounts and top $WIT stakers at a glance with accurate, up-to-date data. Stay ahead of the game!", }, { - hid: 'og:image', - property: 'og:image', - content: '/meta-image.png', + hid: "og:image", + property: "og:image", + content: "/meta-image.png", }, { - hid: 'og:image:secure_url', - property: 'og:image:secure_url', - content: '/meta-image.png', + hid: "og:image:secure_url", + property: "og:image:secure_url", + content: "/meta-image.png", }, { - hid: 'og:image:alt', - property: 'og:image:alt', - content: 'Wit/Oracle', + hid: "og:image:alt", + property: "og:image:alt", + content: "Wit/Oracle", }, ], link: [ { - rel: 'preload stylesheet', - href: 'https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap', - as: 'style', - type: 'text/css', + rel: "preload stylesheet", + href: "https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap", + as: "style", + type: "text/css", }, - { rel: 'apple-touch-icon', type: 'image/x-icon', href: '/favicon.ico' }, + { rel: "apple-touch-icon", type: "image/x-icon", href: "/favicon.ico" }, { - rel: 'icon', - sizes: '180x180', - href: '/apple-touch-icon.png', - type: 'image/png', + rel: "icon", + sizes: "180x180", + href: "/apple-touch-icon.png", + type: "image/png", }, { - rel: 'icon', - sizes: '32x32', - href: '/favicon-32x32.png', - type: 'image/png', + rel: "icon", + sizes: "32x32", + href: "/favicon-32x32.png", + type: "image/png", }, { - rel: 'icon', - sizes: '16x16', - href: '/favicon-16x16.png', - type: 'image/png', + rel: "icon", + sizes: "16x16", + href: "/favicon-16x16.png", + type: "image/png", }, - { rel: 'icon', href: '/favicon.ico', type: 'image/x-icon' }, - { rel: 'manifest', href: '/site.webmanifest' }, - { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '2D2C39' }, - { rel: 'shortcut icon', href: '/favicon.ico' }, + { rel: "icon", href: "/favicon.ico", type: "image/x-icon" }, + { rel: "manifest", href: "/site.webmanifest" }, + { rel: "mask-icon", href: "/safari-pinned-tab.svg", color: "2D2C39" }, + { rel: "shortcut icon", href: "/favicon.ico" }, ], script: [ { @@ -116,7 +116,7 @@ export default defineNuxtConfig({ twq('config','ovifm'); `, - type: 'text/javascript', + type: "text/javascript", }, ], }, @@ -124,16 +124,14 @@ export default defineNuxtConfig({ devtools: { enabled: true }, modules: ["@nuxtjs/tailwindcss"], components: true, - css: [ - '~/assets/styles/tailwind.css', - ], + css: ["~/assets/styles/tailwind.css"], vite: { plugins: [ svgLoader({ svgoConfig: { plugins: [ { - name: 'preset-default', + name: "preset-default", params: { overrides: { removeViewBox: false, @@ -145,5 +143,5 @@ export default defineNuxtConfig({ }, }), ], - } + }, }) diff --git a/package.json b/package.json index 73a7962..e9f1eb7 100644 --- a/package.json +++ b/package.json @@ -26,5 +26,6 @@ }, "devDependencies": { "vite-svg-loader": "^5.1.0" - } + }, + "packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c" } diff --git a/public/site.webmanifest b/public/site.webmanifest index ccf313a..981d97f 100644 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -18,4 +18,4 @@ "theme_color": "#ffffff", "background_color": "#ffffff", "display": "standalone" -} \ No newline at end of file +} diff --git a/tailwind.config.js b/tailwind.config.js index 8e5d8fb..2d51206 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,96 +1,96 @@ /** @type {import('tailwindcss').Config} */ export default { - content: ['./src/components/**/*.{js,vue,ts}'], + content: ["./src/components/**/*.{js,vue,ts}"], theme: { colors: { white: { - 50: '#ffffff', - 100: '#efefef', - 200: '#dcdcdc', - 300: '#bdbdbd', - 400: '#989898', - 500: '#7c7c7c', - 600: '#656565', - 700: '#525252', - 800: '#464646', - 900: '#3d3d3d', - 950: '#292929' + 50: "#ffffff", + 100: "#efefef", + 200: "#dcdcdc", + 300: "#bdbdbd", + 400: "#989898", + 500: "#7c7c7c", + 600: "#656565", + 700: "#525252", + 800: "#464646", + 900: "#3d3d3d", + 950: "#292929", }, gray: { - 50: '#f6f6f6', - 100: '#e7e7e7', - 200: '#d1d1d1', - 300: '#b0b0b0', - 400: '#888888', - 500: '#707070', - 600: '#5d5d5d', - 700: '#4f4f4f', - 800: '#454545', - 900: '#3d3d3d', - 950: '#262626' + 50: "#f6f6f6", + 100: "#e7e7e7", + 200: "#d1d1d1", + 300: "#b0b0b0", + 400: "#888888", + 500: "#707070", + 600: "#5d5d5d", + 700: "#4f4f4f", + 800: "#454545", + 900: "#3d3d3d", + 950: "#262626", }, black: { - 50: '#f6f6f6', - 100: '#e7e7e7', - 200: '#d1d1d1', - 300: '#b0b0b0', - 400: '#888888', - 500: '#6d6d6d', - 600: '#5d5d5d', - 700: '#4f4f4f', - 800: '#454545', - 900: '#3d3d3d', - 950: '#232323' + 50: "#f6f6f6", + 100: "#e7e7e7", + 200: "#d1d1d1", + 300: "#b0b0b0", + 400: "#888888", + 500: "#6d6d6d", + 600: "#5d5d5d", + 700: "#4f4f4f", + 800: "#454545", + 900: "#3d3d3d", + 950: "#232323", }, - 'wit-blue': { - 50: '#ebfffe', - 100: '#cefffe', - 200: '#a2feff', - 300: '#63fafd', - 400: '#1cecf4', - 500: '#00e2ed', - 600: '#03a6b7', - 700: '#0a8494', - 800: '#126978', - 900: '#145765', - 950: '#063a46' + "wit-blue": { + 50: "#ebfffe", + 100: "#cefffe", + 200: "#a2feff", + 300: "#63fafd", + 400: "#1cecf4", + 500: "#00e2ed", + 600: "#03a6b7", + 700: "#0a8494", + 800: "#126978", + 900: "#145765", + 950: "#063a46", }, red: { - 50: '#df4b4b', - 950: '#df4b4b23', + 50: "#df4b4b", + 950: "#df4b4b23", }, }, extend: { fontFamily: { - title: ['Outfit', 'sans-serif'] - } + title: ["Outfit", "sans-serif"], + }, }, screens: { - lg: { max: '1600px' }, - md: { max: '1200px' }, - sm: { max: '706px' }, - xs: { max: '350px' } + lg: { max: "1600px" }, + md: { max: "1200px" }, + sm: { max: "706px" }, + xs: { max: "350px" }, }, spacing: { - xs: '4px', - sm: '8px', - md: '16px', - 'md-alt': '24px', - lg: '32px', - xl: '40px', - '2xl': '64px', - '3xl': '80px', - 'sm-x-screen': '15vw', - 'md-x-screen': '50vw', - '2-md-x-screen': '70vw', - 'lg-x-screen': '90vw', - 'xl-x-screen': '100vw', - 'sm-y-screen': '15vh', - 'md-y-screen': '50vh', - '2-md-y-screen': '70vh', - 'lg-y-screen': '90vh', - 'xl-y-screen': '100vh' + xs: "4px", + sm: "8px", + md: "16px", + "md-alt": "24px", + lg: "32px", + xl: "40px", + "2xl": "64px", + "3xl": "80px", + "sm-x-screen": "15vw", + "md-x-screen": "50vw", + "2-md-x-screen": "70vw", + "lg-x-screen": "90vw", + "xl-x-screen": "100vw", + "sm-y-screen": "15vh", + "md-y-screen": "50vh", + "2-md-y-screen": "70vh", + "lg-y-screen": "90vh", + "xl-y-screen": "100vh", }, }, - plugins: [] + plugins: [], } diff --git a/utils/formatNumber.js b/utils/formatNumber.js index 38cb490..cd94255 100644 --- a/utils/formatNumber.js +++ b/utils/formatNumber.js @@ -1,3 +1,3 @@ export const formatNumber = (num) => { return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") -} \ No newline at end of file +}