
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@ar-dacity/ardacity-hero-one
Advanced tools
Animated hero section with Arweave wallet integration for React applications
A stunning, animated hero section with Arweave wallet integration for React applications.
npm install @ar-dacity/ardacity-hero-one
# or
yarn add @ar-dacity/ardacity-hero-one
This component requires the following dependencies:
npm install framer-motion
# or
yarn add framer-motion
During installation, the package will automatically copy the necessary components to your project's /src/components/ArDacityUi/HeroOne/
directory.
This component requires arweaveUtils functions. Make sure you have the following utility functions implemented in your project:
src/arweaveUtils.js
with the following functions:// Basic implementation example - customize according to your needs
export const connectWallet = async () => {
// Implementation depends on your Arweave library
// Example using arweave-js or arconnect
if (window.arweaveWallet) {
await window.arweaveWallet.connect(['ACCESS_ADDRESS', 'SIGN_TRANSACTION']);
return true;
}
return false;
};
export const disconnectWallet = async () => {
if (window.arweaveWallet) {
await window.arweaveWallet.disconnect();
return true;
}
return false;
};
export const getWalletAddress = async () => {
if (window.arweaveWallet) {
return await window.arweaveWallet.getActiveAddress();
}
return '';
};
Simply import and use the component in your application:
import { HeroOne } from './components/ArDacityUi/HeroOne';
function App() {
return (
<div>
<HeroOne />
</div>
);
}
The component uses placeholder images from the internet. You can replace them with your own images by editing the component file after installation:
src/components/ArDacityUi/HeroOne/HeroOne.jsx
// From
<img src="https://images.unsplash.com/photo-1564106888227-5868decb6ad8?q=80&w=1000&auto=format&fit=crop" alt="Dancing Figure" className="w-full h-full object-contain" />
// To
<img src="/your-image-path.png" alt="Dancing Figure" className="w-full h-full object-contain" />
You can change the displayed text by editing the component:
// From
<motion.h1>CRAFT</motion.h1>
<motion.h1>YOUR OWN</motion.h1>
<motion.h1>DESIGN</motion.h1>
// To
<motion.h1>YOUR</motion.h1>
<motion.h1>CUSTOM</motion.h1>
<motion.h1>TEXT</motion.h1>
This component uses Framer Motion to create fluid animations:
If you want to contribute to this project:
npm install
npm run build
MIT © ArDacity
FAQs
Animated hero section with Arweave wallet integration for React applications
We found that @ar-dacity/ardacity-hero-one demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.