made link executable in new tab
This commit is contained in:
parent
711f0b6386
commit
03db812436
|
@ -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: "#" }
|
||||
];
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue