File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from "react";
22
33const CodeBlock = ( { code } ) => {
44 return (
5- < div className = "bg-gray-900 text-white p-4 rounded-md overflow-x-auto shadow-md" >
5+ < div className = "bg-gray-800 text-green-400 text-sm p-4 rounded-md overflow-x-auto shadow-md" >
66 < pre >
77 < code > { code } </ code >
88 </ pre >
Original file line number Diff line number Diff line change @@ -167,12 +167,23 @@ const SmartContractsSection = ({ className }) => {
167167 </ p >
168168 </ div >
169169
170- { /* Sidebar Column */ }
171170 < div className = "lg:w-1/3 mt-10 lg:mt-0" >
172171 < div className = "bg-white p-4 rounded-md shadow-md" >
173172 < h3 className = "flex items-center text-2xl font-bold mb-4 bg-gray-100 text-black px-3 py-1 rounded-md border-1 border-gray-400 hover:bg-gray-300 transition-colors duration-300 shadow" >
174173 Smart Contracts in stacchain
175174 </ h3 >
175+ < p className = "text-md leading-relaxed mb-4" >
176+ This Solidity code demonstrates how users can securely purchase
177+ access keys for a STAC collection using blockchain technology.
178+ It ensures secure payments, generates unique keys, and prevents
179+ duplicate purchases.
180+ </ p >
181+ < p className = "text-md leading-relaxed mb-4" >
182+ Additionally, it emits an event (`KeyPurchased`) to notify
183+ external systems about the purchase. This is essential for
184+ tracking access keys off-chain and integrating with external
185+ tools like databases or APIs.
186+ </ p >
176187 < CodeBlock code = { solidityCode } />
177188 </ div >
178189 </ div >
You can’t perform that action at this time.
0 commit comments