Skip to content

Instantly share code, notes, and snippets.

@adrianhajdin
Created December 9, 2022 12:23
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save adrianhajdin/6e2ad3c9f383d77c369322476c228b73 to your computer and use it in GitHub Desktop.
Save adrianhajdin/6e2ad3c9f383d77c369322476c228b73 to your computer and use it in GitHub Desktop.
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',
imgUrl: createCampaign,
link: '/create-campaign',
},
{
name: 'payment',
imgUrl: payment,
link: '/',
disabled: true,
},
{
name: 'withdraw',
imgUrl: withdraw,
link: '/',
disabled: true,
},
{
name: 'profile',
imgUrl: profile,
link: '/profile',
},
{
name: 'logout',
imgUrl: logout,
link: '/',
disabled: true,
},
];
@import url("https://fonts.googleapis.com/css2?family=Epilogue:wght@400;500;600;700&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;
.linear-gradient {
background: linear-gradient(
179.14deg,
rgba(32, 18, 63, 0) -7.14%,
#000000 87.01%
);
}
input[type="date"]::-webkit-calendar-picker-indicator {
cursor: pointer;
filter: invert(0.8);
}
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
fontFamily: {
epilogue: ['Epilogue', 'sans-serif'],
},
boxShadow: {
secondary: '10px 10px 20px rgba(2, 2, 2, 0.25)',
},
},
},
plugins: [],
}
export const daysLeft = (deadline) => {
const difference = new Date(deadline).getTime() - Date.now();
const remainingDays = difference / (1000 * 3600 * 24);
return remainingDays.toFixed(0);
};
export const calculateBarPercentage = (goal, raisedAmount) => {
const percentage = Math.round((raisedAmount * 100) / goal);
return percentage;
};
export const checkIfImage = (url, callback) => {
const img = new Image();
img.src = url;
if (img.complete) callback(true);
img.onload = () => callback(true);
img.onerror = () => callback(false);
};
@Programming-School-Pro-Coding

Amazing

@elvinnadir
Copy link

Thanks for this project. Would be amazing when you finished all. Example logout, search and etc.

@LucioFider
Copy link

Thank you. this is awesome!

@PrashantIndurkar
Copy link

Thanks😍🙏

@Ckm54
Copy link

Ckm54 commented Jan 2, 2023

great, thanks

@Sofia-Magalhaes
Copy link

Perfect, thank u

@amiraligull
Copy link

love your work Thank you!

@matthew-dsouza
Copy link

I appreciate your effort for going through all these hoops for us!

@r-tom90
Copy link

r-tom90 commented Mar 17, 2023

Greatly appreciated Adrian :)

@vcristian1
Copy link

Thank you!

@outback101
Copy link

Awesome! deeply appreciated

@Sylvat160
Copy link

thanks

@annejungers
Copy link

where can I find the solidity smart contract? (sorry if my question looks a little bit stupid ^^)

@sundayonah
Copy link

thanks

@sundayonah
Copy link

@annejungers go to web3 folder navigate to contracts folder inside the folder you will find CrouwFunding.sol file that is it.
i hope this help

@muhammadumair12345
Copy link

I am facing an issue with deploying my Smart Contract on thirdweb by using command "npx thirdweb deploy".

image

@muhammadumair12345
Copy link

You can see the issue on the terminal

@randomusert
Copy link

I am facing an issue with deploying my Smart Contract on thirdweb by using command "npx thirdweb deploy".

image

make sure that the secret key is in .env file

@muhammadumair12345
Copy link

Yes, my secret key is in .env but I did not know how to structure it as the third web is updated.

@randomusert
Copy link

@dheerajkaushik
Copy link

getting error while changing to sepolia it shows cannot fetch byte code from aaddress , many are facing same issue pls explian

@machine1376
Copy link

Georli Faucet errored out. Would not take token.

@awaisblockchain
Copy link

getting error while changing to sepolia it shows cannot fetch byte code from aaddress , many are facing same issue pls explian

I am getting the same error!!

@randomusert
Copy link

Sorry that Goes litle too far from My experience

@Cryptbits
Copy link

my background is not going dark, what could be the problem?

import React from 'react';
import { Route, Routes } from 'react-router-dom';

const App = () => {
return (



Sidebar

<p className="font-xl font-bold">TEST</p>

<div className="flex-1 max-sm: w-full max-w-[1280px] mx-auto sm:pr-5">
 Navbar
</div>

</div>

)
}

export default App

@randomusert
Copy link

my background is not going dark, what could be the problem?

import React from 'react'; import { Route, Routes } from 'react-router-dom';

const App = () => { return (

Sidebar

<p className="font-xl font-bold">TEST</p>

<div className="flex-1 max-sm: w-full max-w-[1280px] mx-auto sm:pr-5">
 Navbar
</div>

</div>

) }

export default App

Do you have an style for that

@idriselixir
Copy link

I am facing an issue with deploying my Smart Contract on thirdweb by using command "npx thirdweb deploy".

image

hello can you please send me smart contract source code

@randomusert
Copy link

I am facing an issue with deploying my Smart Contract on thirdweb by using command "npx thirdweb deploy".
image

hello can you please send me smart contract source code

Can't do that sorry

@Amaan-Riddle
Copy link

my background not going dark what should i do ...i have done everything right until here
Screenshot (10)
Screenshot (11)

@Amaan-Riddle
Copy link

i did everything accordingly but still
Screenshot (12)
facing problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment