@@ -5,30 +5,40 @@ import { Box, Typography, Container, Grid, Button, Paper } from "@mui/material";
55import { FaCode , FaBook , FaTerminal , FaGithub } from "react-icons/fa" ;
66
77const CodeSnippet = ( { code } : { code : string } ) => (
8- < Box className = "bg-slate-900 rounded-2xl p-6 font-mono text-sm text-indigo-300 overflow-x-auto border border-slate-800 shadow-2xl" >
8+ < Box sx = { {
9+ bgcolor : '#0f172a' ,
10+ borderRadius : 4 ,
11+ p : 3 ,
12+ fontFamily : 'monospace' ,
13+ fontSize : '0.875rem' ,
14+ color : '#a5b4fc' ,
15+ overflowX : 'auto' ,
16+ border : '1px solid #1e293b' ,
17+ boxShadow : 24
18+ } } >
919 < pre > < code > { code } </ code > </ pre >
1020 </ Box >
1121) ;
1222
1323export default function DevelopersContent ( ) {
1424 return (
15- < Box className = "bg-slate-50 min-h-screen pb-24" >
25+ < Box sx = { { bgcolor : '#f8fafc' , minHeight : '100vh' , pb : { xs : 8 , md : 12 } } } >
1626 { /* Header */ }
17- < Box className = "bg-slate-950 py-24 text- white" >
27+ < Box sx = { { bgcolor : '#020617' , py : { xs : 8 , md : 12 } , color : ' white' , px : 2 } } >
1828 < Container maxWidth = "lg" >
19- < Grid container spacing = { 8 } alignItems = "center" >
29+ < Grid container spacing = { 6 } alignItems = "center" >
2030 < Grid item xs = { 12 } md = { 6 } >
21- < Typography variant = "h2" className = "font-extrabold mb-6" >
22- Built for < span className = "text-indigo-400" > Engineers</ span > .
31+ < Typography variant = "h2" sx = { { fontWeight : 800 , mb : 3 , fontSize : { xs : '1.875rem' , md : '3rem' , lg : '3.75rem' } } } >
32+ Built for < Box component = "span" sx = { { color : '#818cf8' } } > Engineers</ Box > .
2333 </ Typography >
24- < Typography variant = "h5" className = "text-slate-400 mb-8 leading-relaxed" >
34+ < Typography variant = "h5" sx = { { color : '#94a3b8' , mb : 4 , lineHeight : 1.6 , fontSize : { xs : '1rem' , md : '1.25rem' } } } >
2535 Seamlessly integrate blockchain-based identity and payroll into your applications using our robust APIs and SDKs.
2636 </ Typography >
27- < Box className = " flex gap-4" >
28- < Button variant = "contained" className = "bg-indigo-600 px-6 py-2 rounded-lg normal-case font- bold" >
37+ < Box sx = { { display : ' flex' , flexDirection : { xs : 'column' , sm : 'row' } , gap : 2 } } >
38+ < Button variant = "contained" sx = { { bgcolor : '#4f46e5' , '&:hover' : { bgcolor : '#4338ca' } , px : 3 , py : 1.5 , borderRadius : 2 , textTransform : 'none' , fontWeight : ' bold' , width : { xs : '100%' , sm : 'auto' } } } >
2939 Read Documentation
3040 </ Button >
31- < Button variant = "outlined" className = " border-slate-700 text- white px-6 py-2 rounded-lg normal-case font- bold" >
41+ < Button variant = "outlined" sx = { { border : '1px solid #334155' , color : ' white' , '&:hover' : { border : '1px solid #475569' , bgcolor : 'rgba(255,255,255,0.05)' } , px : 3 , py : 1.5 , borderRadius : 2 , textTransform : 'none' , fontWeight : ' bold' , width : { xs : '100%' , sm : 'auto' } } } >
3242 Get API Key
3343 </ Button >
3444 </ Box >
@@ -53,43 +63,51 @@ const result = await client.employees.create({
5363 </ Box >
5464
5565 { /* SDKs & Tools */ }
56- < Container maxWidth = "lg" className = "-mt-12" >
57- < Grid container spacing = { 4 } >
66+ < Container maxWidth = "lg" sx = { { mt : { xs : - 4 , md : - 6 } , px : 2 } } >
67+ < Grid container spacing = { 3 } >
5868 { [
5969 { icon : < FaTerminal /> , title : "Node.js SDK" , desc : "Easily integrate with our first-class JavaScript and TypeScript SDK." } ,
6070 { icon : < FaCode /> , title : "React Hooks" , desc : "Built-in hooks for authentication and data fetching in React apps." } ,
6171 { icon : < FaTerminal /> , title : "Core CLI" , desc : "Manage your blockchain nodes and contracts from the command line." } ,
6272 { icon : < FaGithub /> , title : "Open Source" , desc : "Check out our community-driven examples and star us on GitHub." } ,
6373 ] . map ( ( item , idx ) => (
6474 < Grid item xs = { 12 } sm = { 6 } md = { 3 } key = { idx } >
65- < Paper className = "p-8 h-full rounded-3xl border border-slate-200 shadow-sm hover:translate-y-[-4px] transition-all duration-300" >
66- < Box className = "text-3xl text-indigo-600 mb-4" > { item . icon } </ Box >
67- < Typography variant = "h6" className = "font-bold mb-2" > { item . title } </ Typography >
68- < Typography className = "text-slate-600 text-sm leading-relaxed" > { item . desc } </ Typography >
75+ < Paper sx = { {
76+ p : { xs : 3 , md : 4 } ,
77+ height : '100%' ,
78+ borderRadius : { xs : 4 , md : 6 } ,
79+ border : '1px solid #e2e8f0' ,
80+ boxShadow : '0 1px 3px 0 rgb(0 0 0 / 0.1)' ,
81+ transition : 'all 0.3s' ,
82+ '&:hover' : { transform : 'translateY(-4px)' }
83+ } } >
84+ < Box sx = { { fontSize : { xs : '1.5rem' , md : '1.875rem' } , color : '#4f46e5' , mb : 2 } } > { item . icon } </ Box >
85+ < Typography variant = "h6" sx = { { fontWeight : 'bold' , mb : 1 , fontSize : { xs : '1.125rem' , md : '1.25rem' } } } > { item . title } </ Typography >
86+ < Typography sx = { { color : '#475569' , fontSize : '0.875rem' , lineHeight : 1.6 } } > { item . desc } </ Typography >
6987 </ Paper >
7088 </ Grid >
7189 ) ) }
7290 </ Grid >
7391 </ Container >
7492
7593 { /* API Reference Preview */ }
76- < Container maxWidth = "lg" className = "mt-24" >
77- < Box className = "bg- white p-12 rounded-[40px] border border-slate-200" >
78- < Typography variant = "h4" className = "font- bold mb-8" > API Reference Preview</ Typography >
79- < Grid container spacing = { 8 } >
94+ < Container maxWidth = "lg" sx = { { mt : { xs : 8 , md : 12 } , px : 2 } } >
95+ < Box sx = { { bgcolor : ' white' , p : { xs : 3 , md : 6 } , borderRadius : { xs : 4 , md : 10 } , border : '1px solid #e2e8f0' } } >
96+ < Typography variant = "h4" sx = { { fontWeight : ' bold' , mb : 4 , fontSize : { xs : '1.5rem' , md : '2.25rem' } , textAlign : { xs : 'center' , md : 'left' } } } > API Reference Preview</ Typography >
97+ < Grid container spacing = { 4 } >
8098 < Grid item xs = { 12 } md = { 4 } >
81- < Box className = "space-y-6" >
82- < Box className = "p-4 bg-indigo-50 rounded-xl border-l-4 border-indigo-600" >
83- < Typography className = "font- bold text-indigo-900" > GET /v1/employees</ Typography >
84- < Typography className = "text-xs text-indigo-700" > Retrieve a list of employees</ Typography >
99+ < Box sx = { { '& > div' : { mb : 2 } } } >
100+ < Box sx = { { p : 2 , bgcolor : '#eef2ff' , borderRadius : 3 , borderLeft : '4px solid #4f46e5' } } >
101+ < Typography sx = { { fontWeight : ' bold' , color : '#1e1b4b' , fontSize : { xs : '0.875rem' , md : '1rem' } } } > GET /v1/employees</ Typography >
102+ < Typography sx = { { fontSize : { xs : '10px' , md : '0.75rem' } , color : '#4338ca' } } > Retrieve a list of employees</ Typography >
85103 </ Box >
86- < Box className = "p-4 hover:bg-slate-50 rounded-xl cursor-default transition- colors" >
87- < Typography className = "font- bold text-slate-900" > POST /v1/payroll</ Typography >
88- < Typography className = "text-xs text-slate-500" > Initiate a smart contract payment</ Typography >
104+ < Box sx = { { p : 2 , '&: hover' : { bgcolor : '#f8fafc' } , borderRadius : 3 , transition : ' colors 0.2s' } } >
105+ < Typography sx = { { fontWeight : ' bold' , color : '#0f172a' , fontSize : { xs : '0.875rem' , md : '1rem' } } } > POST /v1/payroll</ Typography >
106+ < Typography sx = { { fontSize : { xs : '10px' , md : '0.75rem' } , color : '#64748b' } } > Initiate a smart contract payment</ Typography >
89107 </ Box >
90- < Box className = "p-4 hover:bg-slate-50 rounded-xl cursor-default transition- colors" >
91- < Typography className = "font- bold text-slate-900" > GET /v1/audit/{ `{id}` } </ Typography >
92- < Typography className = "text-xs text-slate-500" > Get audit logs for a specific tx</ Typography >
108+ < Box sx = { { p : 2 , '&: hover' : { bgcolor : '#f8fafc' } , borderRadius : 3 , transition : ' colors 0.2s' } } >
109+ < Typography sx = { { fontWeight : ' bold' , color : '#0f172a' , fontSize : { xs : '0.875rem' , md : '1rem' } } } > GET /v1/audit/{ `{id}` } </ Typography >
110+ < Typography sx = { { fontSize : { xs : '10px' , md : '0.75rem' } , color : '#64748b' } } > Get audit logs for a specific tx</ Typography >
93111 </ Box >
94112 </ Box >
95113 </ Grid >
0 commit comments