This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/packages/webapp/src/components/HomeSamples/HomeSamples.js

69 lines
2.3 KiB
JavaScript
Raw Normal View History

2020-02-12 22:13:34 +00:00
import React from "react";
import Fade from "react-reveal/Fade";
import Reveal from "react-reveal/Reveal";
2020-02-12 17:23:10 +00:00
2020-02-12 22:13:34 +00:00
import "./HomeSamples.scss";
import { Sample } from "../";
2020-02-12 17:23:10 +00:00
const samples = [
2020-02-28 15:00:17 +00:00
{ type: "HTML", url: "/PAL0w4SdA5rFCDGEutgpeQ50Om-YkBabtXVOJAkmedslKw" },
2020-02-13 21:11:07 +00:00
{ type: "PDF", url: "/XABvi7JtJbQSMAcDwnUnmp2FKDPjg8_tTTFP4BwMSxVdEg" },
{ type: "Image", url: "/IADUs8d9CQjUO34LmdaaNPK_STuZo24rpKVfYW3wPPM2uQ" },
{ type: "Audio", url: "/_A2zt5SKoqwnnZU4cBF8uBycSKULXMyeg1c5ZISBr2Q3dA" },
2020-02-13 21:51:18 +00:00
{ type: "Video", url: "/CABAB_1Dt0FJsxqsu_J4TodNCbCGvtFf1Uys_3EgzOlTcg" },
2020-03-11 09:30:37 +00:00
{ type: "JSON", url: "/AAC0uO43g64ULpyrW0zO3bjEknSFbAhm8c-RFP21EQlmSQ" },
2020-09-03 17:04:29 +00:00
{ type: "Dapp", url: "/IAC6CkhNYuWZqMVr1gob1B6tPg4MrBGRzTaDvAIAeu9A9w/" },
2020-02-12 22:13:34 +00:00
];
2020-02-12 17:23:10 +00:00
export default function HomeSamples() {
return (
<div className="home-samples">
2020-02-12 22:13:34 +00:00
<Fade duration={700} distance="40px" bottom>
2020-03-12 10:56:11 +00:00
<p>Above are some code snippets for uploading and retrieving data.</p>
2020-02-12 17:23:10 +00:00
<p>
2020-03-12 10:56:11 +00:00
Skynet includes{" "}
<a
2020-08-12 14:39:12 +00:00
href="https://nebulouslabs.github.io/skynet-docs"
2020-03-12 10:56:11 +00:00
target="_blank"
rel="noopener noreferrer"
className="link"
>
SDKs
</a>{" "}
for popular programming languages and{" "}
<a href="https://sia.tech/docs/#skynet" target="_blank" rel="noopener noreferrer" className="link">
APIs
</a>{" "}
that integrate seamlessly with your existing apps. You can follow these guides to start using Skynet with{" "}
<a
href="https://github.com/NebulousLabs/skynet-cli"
target="_blank"
rel="noopener noreferrer"
className="link"
>
the Skynet CLI
</a>{" "}
2020-08-12 15:17:18 +00:00
and{" "}
<a
href="https://blog.sia.tech/the-skynet-sdks-751b35578b20"
target="_blank"
rel="noopener noreferrer"
className="link"
>
integrate Skynet
</a>{" "}
into your application.
2020-02-12 17:23:10 +00:00
</p>
</Fade>
<Reveal effect="active">
<div className="home-samples-samples">
{samples.map((sample, i) => (
2020-02-18 16:25:03 +00:00
<Sample className={`fadeInUp delay${i + 1}`} key={`${i}-${sample.url}`} {...sample} />
2020-02-12 17:23:10 +00:00
))}
</div>
</Reveal>
</div>
2020-02-12 22:13:34 +00:00
);
2020-02-12 17:23:10 +00:00
}