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 "../"; import { Sample } from "../";
const samples = [ const samples = [
{ type: "HTML", url: "/file/PAJF7fi2dK0CpcrhcXXReyufMO2s8k25sWL_XQjBW5a0mA" }, { type: "HTML", url: "/PAJF7fi2dK0CpcrhcXXReyufMO2s8k25sWL_XQjBW5a0mA" },
{ type: "PDF", url: "/file/XABvi7JtJbQSMAcDwnUnmp2FKDPjg8_tTTFP4BwMSxVdEg" }, { type: "PDF", url: "/XABvi7JtJbQSMAcDwnUnmp2FKDPjg8_tTTFP4BwMSxVdEg" },
{ type: "Image", url: "/file/IADUs8d9CQjUO34LmdaaNPK_STuZo24rpKVfYW3wPPM2uQ" }, { type: "Image", url: "/IADUs8d9CQjUO34LmdaaNPK_STuZo24rpKVfYW3wPPM2uQ" },
{ type: "Audio", url: "/file/_A2zt5SKoqwnnZU4cBF8uBycSKULXMyeg1c5ZISBr2Q3dA" }, { type: "Audio", url: "/_A2zt5SKoqwnnZU4cBF8uBycSKULXMyeg1c5ZISBr2Q3dA" },
{ type: "Video", url: "/file/CABtmZJhzqf2unWUxKndMtpRri8IyqS_QV5Xg4PIQhBgtQ" }, { type: "Video", url: "/CABtmZJhzqf2unWUxKndMtpRri8IyqS_QV5Xg4PIQhBgtQ" },
{ type: "JSON", url: "/file/AAC0uO43g64ULpyrW0zO3bjEknSFbAhm8c-RFP21EQlmSQ" }, { type: "JSON", url: "/AAC0uO43g64ULpyrW0zO3bjEknSFbAhm8c-RFP21EQlmSQ" },
// { type: "Dapps", url: "#" } // { type: "Dapps", url: "#" }
]; ];

View File

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