Skip to content

Commit 60e9a9b

Browse files
committed
plugin fix
1 parent 40f7469 commit 60e9a9b

3 files changed

Lines changed: 5310 additions & 5741 deletions

File tree

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"url": "git+https://github.com/sdv-dev/SDV.git"
1111
},
1212
"resolutions": {
13-
"sharp": "0.27.1"
13+
"sharp": "0.27.1",
14+
"gatsby-plugin-sharp/probe-image-size": "^7.0.0"
1415
},
1516
"engines": {
1617
"node": ">= 10.13.0"
@@ -54,7 +55,6 @@
5455
"gatsby-plugin-advanced-sitemap": "1.6.0",
5556
"gatsby-plugin-anchor-links": "^1.2.1",
5657
"gatsby-plugin-catch-links": "2.10.0",
57-
"gatsby-plugin-feed": "2.13.1",
5858
"gatsby-plugin-force-trailing-slashes": "1.0.5",
5959
"gatsby-plugin-google-gtag": "^3.3.0",
6060
"gatsby-plugin-manifest": "2.12.1",
@@ -78,7 +78,6 @@
7878
"react": "17.0.1",
7979
"react-dom": "17.0.1",
8080
"react-helmet": "6.1.0",
81-
"react-scroll-progress-bar": "^1.1.13",
8281
"sass": "^1.32.10",
8382
"styled-components": "^5.2.3",
8483
"tailwindcss": "^2.1.1"

src/components/home/try-it.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { useEffect, useState } from "react";
2-
import { Link } from 'gatsby'
32
import WhiteTopWave from "./wave-top-white"
43
import WhiteBottomWave from "./wave-bottom-white"
54

@@ -72,8 +71,8 @@ export default function TryIt() {
7271
{` `}
7372
<FontAwesomeIcon width="16" icon={faCopy} />
7473
</button>
75-
<textarea id="text-area" rows="1" className="opacity-0 absolute bottom-10 left-10 right-10 top-10 z-0">
76-
{code}
74+
<textarea value={code} readOnly={true} id="text-area" rows="1" className="opacity-0 absolute bottom-10 left-10 right-10 top-10 z-0">
75+
7776
</textarea>
7877
<div className="code-container relative z-1" style={{
7978
filter: 'drop-shadow(0px 15px 35px rgba(0, 0, 0, 0.1))'
@@ -92,11 +91,12 @@ export default function TryIt() {
9291

9392
<div className="container mx-auto mt-10 mb-20">
9493
<div className="flex flex-wrap justify-center">
95-
<Link
94+
<a
9695
target="_blank"
9796
className="font-bold text-sdv-secondary hover:underline"
98-
to={`https://docs.sdv.dev/sdv/installation`}
99-
>Install SDV <FontAwesomeIcon width="16" icon={faArrowRight} /></Link>
97+
rel="noreferrer"
98+
href={`https://docs.sdv.dev/sdv/installation`}
99+
>Install SDV <FontAwesomeIcon width="16" icon={faArrowRight} /></a>
100100
</div>
101101
</div>
102102

0 commit comments

Comments
 (0)