This file contains hidden or 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
| import { createCampaign, dashboard, logout, payment, profile, withdraw } from '../assets'; | |
| export const navlinks = [ | |
| { | |
| name: 'dashboard', | |
| imgUrl: dashboard, | |
| link: '/', | |
| }, | |
| { | |
| name: 'campaign', |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.16; | |
| import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol'; | |
| import '@openzeppelin/contracts/access/Ownable.sol'; | |
| import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol'; | |
| /// @title AVAXGods | |
| /// @notice This contract handles the token management and battle logic for the AVAXGods game |
This file contains hidden or 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
| import MusicNoteIcon from '@mui/icons-material/MusicNote'; | |
| import HomeIcon from '@mui/icons-material/Home'; | |
| import CodeIcon from '@mui/icons-material/Code'; | |
| import OndemandVideoIcon from '@mui/icons-material/OndemandVideo'; | |
| import SportsEsportsIcon from '@mui/icons-material/SportsEsports'; | |
| import LiveTvIcon from '@mui/icons-material/LiveTv'; | |
| import SchoolIcon from '@mui/icons-material/School'; | |
| import FaceRetouchingNaturalIcon from '@mui/icons-material/FaceRetouchingNatural'; | |
| import CheckroomIcon from '@mui/icons-material/Checkroom'; | |
| import GraphicEqIcon from '@mui/icons-material/GraphicEq'; |
This file contains hidden or 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
| import { people01, people02, people03, facebook, instagram, linkedin, twitter, airbnb, binance, coinbase, dropbox, send, shield, star } from "../assets"; | |
| export const navLinks = [ | |
| { | |
| id: "home", | |
| title: "Home", | |
| }, | |
| { | |
| id: "features", | |
| title: "Features", |
This file contains hidden or 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
| import axios from 'axios'; | |
| const getCountries = async (currencyCode) => { | |
| try { | |
| const response = await axios.get(`https://restcountries.com/v3.1/currency/${currencyCode}`); | |
| return response.data.map(country => country.name.common); | |
| } catch (error) { | |
| throw new Error(`Unable to get countries that use ${currencyCode}`); | |
| } |
This file contains hidden or 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
| @tailwind base; | |
| @tailwind components; | |
| @tailwind utilities; | |
| html, | |
| body { | |
| padding: 0; | |
| margin: 0; | |
| box-sizing: border-box; | |
| } |
This file contains hidden or 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
| body { | |
| font-family: 'Josefin Sans'; | |
| background-color: #FFFAFB; | |
| } | |
| * { | |
| padding: 0px; | |
| margin: 0px; | |
| box-sizing: border-box; |
This file contains hidden or 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
| @import url('https://cdn.syncfusion.com/ej2/material.css'); | |
| .sidebar { | |
| box-shadow: rgb(113 122 131 / 11%) 0px 7px 30px 0px; | |
| } | |
| .nav-item, | |
| .navbar { | |
| z-index: 10000; | |
| } | |
| @media screen and (max-width:800px) { |
This file contains hidden or 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
| // eslintrc.js | |
| module.exports = { | |
| env: { | |
| browser: true, | |
| es6: true, | |
| }, | |
| extends: [ | |
| 'plugin:react/recommended', | |
| 'airbnb', | |
| ], |
This file contains hidden or 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
| import React, { createContext, useContext, useState, useEffect } from 'react'; | |
| import { toast } from 'react-hot-toast'; | |
| const Context = createContext(); | |
| export const StateContext = ({ children }) => { | |
| const getLocalStorage = (name) => { | |
| if (typeof window !== 'undefined') { | |
| const storage = localStorage.getItem(name); |