Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 3694554

Browse files
author
Gabriel Cardona
committed
Updates to slp landing page.
1 parent f7ecd7e commit 3694554

1 file changed

Lines changed: 51 additions & 99 deletions

File tree

src/pages/slp.js

Lines changed: 51 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,29 @@ import Hero from 'components/Hero'
99
import Container from 'components/Container'
1010
import HelmetPlus from 'components/HelmetPlus'
1111
import { FaAndroid, FaApple, FaJs } from 'react-icons/fa'
12+
import InfoCard from 'components/InfoCard'
1213

1314
import Text from 'atoms/Text'
1415
import H3 from 'atoms/H3'
1516
import H1 from 'atoms/H1'
1617
import Button from 'atoms/Button'
1718
import Code from 'atoms/Code'
1819
import StyledLink from 'atoms/StyledLink'
20+
import { SmartLink } from 'atoms/StyledLink'
1921

2022
import media from 'styles/media'
2123
import spacing from 'styles/spacing'
2224

25+
const CardLayout = styled.div`
26+
display: grid;
27+
padding-top: ${spacing.large};
28+
grid-gap: ${spacing.medium};
29+
grid-template-columns: 1fr;
30+
${media.medium`
31+
grid-template-columns: repeat(auto-fit, minmax(400px, .5fr));
32+
`};
33+
`
34+
2335
const HeroLayout = styled.div`
2436
display: grid;
2537
grid-gap: ${spacing.tiny};
@@ -105,17 +117,17 @@ const SLPPage = ({ location, data }: Props) => (
105117
<HeroButtonLayout>
106118
<HeroButtonItem>
107119
<StyledLink to="/slp/docs/js/getting-started">
108-
<FaJs />
120+
<FaJs /> Javascript
109121
</StyledLink>
110122
</HeroButtonItem>
111123
<HeroButtonItem>
112124
<StyledLink to="/slp/docs/ios/getting-started">
113-
<FaAndroid />
125+
<FaAndroid /> Android
114126
</StyledLink>
115127
</HeroButtonItem>
116128
<HeroButtonItem>
117129
<StyledLink to="/slp/docs/android/getting-started">
118-
<FaApple />
130+
<FaApple /> iOS
119131
</StyledLink>
120132
</HeroButtonItem>
121133
</HeroButtonLayout>
@@ -126,112 +138,52 @@ const SLPPage = ({ location, data }: Props) => (
126138
<PreviewItem>
127139
<H3>Simple Ledger Protocol</H3>
128140
<Text>
129-
SLP SDK is a fully featured javascript framework powered by{' '}
130-
<StyledLink to="/bitbox">BITBOX</StyledLink>. Everything you need to
131-
easily issue, spend or trade your own token.
141+
<SmartLink to="https://simpleledger.cash/">
142+
Simple Ledger Protocol
143+
</SmartLink>{' '}
144+
is simple, robust and extensible. All transactions are 100% on the
145+
blockchain for full auditability by any party. The first and
146+
currently only BCH token system to support light wallets. You can
147+
use multi signature addresses and other Bitcoin script features with
148+
SLP tokens.
132149
</Text>
150+
</PreviewItem>
151+
</PreviewLayout>
152+
</Container>
153+
<Container>
154+
<PreviewLayout>
155+
<PreviewItem full to="/slp/docs/js/getting-started">
156+
<H3>
157+
<FaJs /> Javascript
158+
</H3>
133159
<Text>
134-
Simple Ledger Protocol is simple, robust and extensible. All
135-
transactions are 100% on the blockchain for full auditability by any
136-
party. The first and currently only BCH token system to support
137-
light wallets. You can use multi signature addresses and other
138-
Bitcoin script features with SLP tokens.
160+
SLP SDK is a fully featured javascript framework powered by{' '}
161+
<StyledLink to="/bitbox">BITBOX</StyledLink>. Everything you need to
162+
easily issue, spend or trade your own token. Everything you need to
163+
easily issue, spend or trade your own token. Install via NPM and
164+
talk to Bitcoin.com's cloud with no further setup.{' '}
139165
</Text>
140166
</PreviewItem>
141-
<PreviewItem to="/slp/docs/js/slp">
142-
<H3>List</H3>
143-
<Text>List all tokens</Text>
144-
<Code>
145-
{`(async () => {
146-
try {
147-
let list = await SLP.Utils.list();
148-
console.log(list);
149-
} catch (error) {
150-
console.error(error);
151-
}
152-
})();
153-
154-
// returns
155-
[ { id: 'a72788409fa0ff38556e0d26d17edcc8e6ac04dcdc4904eeb5297c6096dc6e75',
156-
timestamp: '2019-02-10 03:24',
157-
symbol: 'C',
158-
name: 'Contract Name',
159-
documentUri: 'documentUri',
160-
documentHash:
161-
'1000000000000000000000000000000000000000000000000000000000000001',
162-
decimals: 1,
163-
initialTokenQty: 10 },
164-
{ id: 'e6fe00fc1f53320b72bd5cbed76c0c82e5edfea1b6f9cb0f71bfb28c3b6211a8',
165-
timestamp: '2019-02-05 04:01',
166-
symbol: 'TESTNET3',
167-
name: 'SLP SDK Testnet Token 3',
168-
documentUri: 'badger@bitcoin.com',
169-
documentHash: '',
170-
decimals: 8,
171-
initialTokenQty: 100 }]
172-
`}
173-
</Code>
174-
<Text>List single token by id</Text>
175-
<Code>
176-
{`(async () => {
177-
try {
178-
let list = await SLP.Utils.list(
179-
"b3f4f132dc3b9c8c96316346993a8d54d729715147b7b11aa6c8cd909e955313"
180-
);
181-
console.log(list);
182-
} catch (error) {
183-
console.error(error);
184-
}
185-
})();
186-
187-
// returns
188-
{ id: 'b3f4f132dc3b9c8c96316346993a8d54d729715147b7b11aa6c8cd909e955313',
189-
timestamp: '2019-01-30 21:56',
190-
symbol: 'SLPJS',
191-
name: 'Awesome SLPJS README Token',
192-
documentUri: 'info@simpleledger.io',
193-
documentHash: '',
194-
decimals: 2,
195-
initialTokenQty: 1000000 }
196-
`}
197-
</Code>
198-
</PreviewItem>
199-
<PreviewItem to="/slp/docs/conversion">
200-
<H3>Conversion</H3>
201-
<Text>Convert between slp, cashAddr and legacyAddr addresses</Text>
202-
<Code>
203-
{`// cash address to slp address
204-
SLP.Address.toSLPAddress('bitcoincash:qzm47qz5ue99y9yl4aca7jnz7dwgdenl85jkfx3znl')
205-
// simpleledger:qzm47qz5ue99y9yl4aca7jnz7dwgdenl857dzayzdp
206-
207-
// legacy address to cash address
208-
SLP.Address.toCashAddress('1HiaTupadqQN66Tvgt7QSE5Wg13BUy25eN')
209-
// bitcoincash:qzm47qz5ue99y9yl4aca7jnz7dwgdenl85jkfx3znl
210-
211-
// slp address to legacy address
212-
SLP.Address.toLegacyAddress('simpleledger:qzm47qz5ue99y9yl4aca7jnz7dwgdenl857dzayzdp')
213-
// 1HiaTupadqQN66Tvgt7QSE5Wg13BUy25eN
214-
`}
215-
</Code>
216-
</PreviewItem>
217-
<PreviewItem>
218-
<H3>Built-in console</H3>
167+
<PreviewItem full to="/slp/docs/android/getting-started">
168+
<H3>
169+
<FaAndroid /> Android
170+
</H3>
219171
<Text>
220-
Custom REPL with the full BITBOX and Bitcoin Cash JSON RPC API built
221-
in. Test your ideas quickly with no overhead.
172+
Install via Gradle. Convert between cash and slp address formats.
173+
Send tokens w/ balances, including both tokens and BCH, available as
174+
LiveData. Convenience methods to make it easier to display tokens.
175+
Timber for logging.
222176
</Text>
223177
</PreviewItem>
224-
<PreviewItem>
225-
<H3>100% Documented</H3>
178+
<PreviewItem full to="/slp/docs/ios/getting-started">
179+
<H3>
180+
<FaApple /> iOS
181+
</H3>
226182
<Text>
227-
Every method, argument, data type and return value is documented in
228-
great detail.
183+
Install via CocoaPods. Generate mnemonics. Convert between cash and
184+
slp address formats. Send tokens and fetch token balances.
229185
</Text>
230186
</PreviewItem>
231-
<PreviewItem>
232-
<H3>REST integration</H3>
233-
<Text>SLP SDK is coupled to REST with no further setup.</Text>
234-
</PreviewItem>
235187
</PreviewLayout>
236188
</Container>
237189
</DefaultLayout>

0 commit comments

Comments
 (0)