Skip to content

Instantly share code, notes, and snippets.

View adrianhajdin's full-sized avatar

Adrian Hajdin - JS Mastery adrianhajdin

View GitHub Profile
@adrianhajdin
adrianhajdin / constants
Created December 9, 2022 12:23
Build and Deploy a Web3 Crowdfunding Platform (Kickstarter) As Your First Blockchain Application
import { createCampaign, dashboard, logout, payment, profile, withdraw } from '../assets';
export const navlinks = [
{
name: 'dashboard',
imgUrl: dashboard,
link: '/',
},
{
name: 'campaign',
@adrianhajdin
adrianhajdin / AvaxGods.sol
Last active January 9, 2025 21:24
Avax Gods - Online Multiplayer Web3 NFT Card Game
// 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
@adrianhajdin
adrianhajdin / constants.js
Created August 26, 2022 11:46
Build and Deploy a Modern YouTube Clone Application in React JS with Material UI 5
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';
@adrianhajdin
adrianhajdin / constants
Created August 8, 2022 14:16
project_hoobank
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",
@adrianhajdin
adrianhajdin / index.js
Created July 29, 2022 10:09
I Abandoned Postman for This NEW VS Code Extension | Build, Test & Sell APIs 🤑
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}`);
}
@adrianhajdin
adrianhajdin / globals.css
Created July 2, 2022 13:30
Build and Deploy a Full Stack TikTok Clone Application and Master TypeScript | Full Course (Part 1)
@tailwind base;
@tailwind components;
@tailwind utilities;
html,
body {
padding: 0;
margin: 0;
box-sizing: border-box;
}
@adrianhajdin
adrianhajdin / App.css
Created June 11, 2022 11:18
Build and Deploy a Modern React 18 Fitness Exercises App With APIs | Golds Gym
body {
font-family: 'Josefin Sans';
background-color: #FFFAFB;
}
* {
padding: 0px;
margin: 0px;
box-sizing: border-box;
@adrianhajdin
adrianhajdin / App.css
Last active May 28, 2026 03:12
Build and Deploy a React Admin Dashboard App With Theming, Tables, Charts, Calendar, Kanban and More
@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) {
@adrianhajdin
adrianhajdin / eslintrc.js
Created May 18, 2022 14:38
ESLint Configuration
// eslintrc.js
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
@adrianhajdin
adrianhajdin / StateContext.js
Last active December 21, 2025 10:59
Build and Deploy a Modern Full Stack ECommerce Application with Stripe
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);