made link executable in new tab

This commit is contained in:
Karol Wypchlo 2020-02-13 16:11:07 -05:00
parent 711f0b6386
commit 03db812436
2 changed files with 7 additions and 7 deletions

View File

@ -6,12 +6,12 @@ import "./HomeSamples.scss";
import { Sample } from "../";
const samples = [
{ type: "HTML", url: "/file/PAJF7fi2dK0CpcrhcXXReyufMO2s8k25sWL_XQjBW5a0mA" },
{ type: "PDF", url: "/file/XABvi7JtJbQSMAcDwnUnmp2FKDPjg8_tTTFP4BwMSxVdEg" },
{ type: "Image", url: "/file/IADUs8d9CQjUO34LmdaaNPK_STuZo24rpKVfYW3wPPM2uQ" },
{ type: "Audio", url: "/file/_A2zt5SKoqwnnZU4cBF8uBycSKULXMyeg1c5ZISBr2Q3dA" },
{ type: "Video", url: "/file/CABtmZJhzqf2unWUxKndMtpRri8IyqS_QV5Xg4PIQhBgtQ" },
{ type: "JSON", url: "/file/AAC0uO43g64ULpyrW0zO3bjEknSFbAhm8c-RFP21EQlmSQ" },
{ type: "HTML", url: "/PAJF7fi2dK0CpcrhcXXReyufMO2s8k25sWL_XQjBW5a0mA" },
{ type: "PDF", url: "/XABvi7JtJbQSMAcDwnUnmp2FKDPjg8_tTTFP4BwMSxVdEg" },
{ type: "Image", url: "/IADUs8d9CQjUO34LmdaaNPK_STuZo24rpKVfYW3wPPM2uQ" },
{ type: "Audio", url: "/_A2zt5SKoqwnnZU4cBF8uBycSKULXMyeg1c5ZISBr2Q3dA" },
{ type: "Video", url: "/CABtmZJhzqf2unWUxKndMtpRri8IyqS_QV5Xg4PIQhBgtQ" },
{ type: "JSON", url: "/AAC0uO43g64ULpyrW0zO3bjEknSFbAhm8c-RFP21EQlmSQ" },
// { type: "Dapps", url: "#" }
];

View File

@ -7,7 +7,7 @@ import { Download } from '../../svg'
export default function Sample({ type, url, className }) {
return (
<div className={classNames('sample', className)}>
<a download href={url}>
<a href={url} target="_blank" rel="noopener noreferrer">
<Download />
<span className="sample-name">
<strong>{type}</strong> Sample