File tree 5 files changed +56
-6
lines changed
5 files changed +56
-6
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,10 @@ my personal site
7
7
deployment] ( https://blog.bitsrc.io/deploy-a-gatsby-site-on-github-pages-for-free-f18853c1b7a9 )
8
8
9
9
[ Cover image] ( https://unsplash.com/photos/8cylkZnxEiE ) is from user ** eberhard
10
- grossgasteiger** on Unsplash
10
+ grossgasteiger** on Unsplash
11
+
12
+
13
+
14
+ export NODE_OPTIONS=--openssl-legacy-provider
15
+
16
+ v18.15.0
Original file line number Diff line number Diff line change @@ -7,6 +7,4 @@ import Me from "./me"
7
7
8
8
<Me />
9
9
10
- I'm Blake and I write code for work, fun, and for the social good. I am the
11
- president of my college's Open Source Club and through it I hope to de-mystify
12
- programming for all.
10
+ I'm Blake and I write code for work, fun, and for the social good.
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " Share From Url"
3
+ date : 2023-06-12
4
+ tags :
5
+ - Projects
6
+ ---
7
+ import ShareFromUrl from " ./share"
8
+
9
+
10
+
11
+ <ShareFromUrl />
12
+
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+
3
+
4
+ /*
5
+ * @author Blake Vente
6
+ */
7
+
8
+ // styles
9
+ const marginPad = {
10
+ margin : "10px" ,
11
+ padding : "10px" ,
12
+ }
13
+
14
+ const fillContainer = {
15
+ backgroundColor : "white" ,
16
+ width : "100%" , // 256 + 2 * padding
17
+ whiteSpace : 'pre-line' ,
18
+ ...marginPad
19
+ }
20
+
21
+ // if I want to add a copy button later https://stackoverflow.com/a/74018673
22
+ export default function ShareFromUrl ( ) {
23
+ if ( typeof window === `undefined` ) {
24
+ return < pre > It doesn't look like anything to me</ pre > ;
25
+ }
26
+ const maybeHref = window ?. location ?. href ?? "" ;
27
+
28
+ const currentLocation = new URL ( maybeHref ) . searchParams . get ( "urlData" ) ?? "I got nothing to show. The query parameter `urlData` was empty" ;
29
+ return (
30
+ < pre style = { fillContainer } >
31
+ { decodeURI ( currentLocation ) }
32
+ </ pre >
33
+ ) ;
34
+ }
Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ module.exports = {
42
42
externalLinks : [
43
43
{
44
44
name : `Twitter` ,
45
- url : `https://twitter.com/blakeistics /` ,
45
+ url : `https://twitter.com/eigenblake /` ,
46
46
} ,
47
47
{
48
48
name : `Insta` ,
49
- url : `https://www.instagram.com/blakeistics /` ,
49
+ url : `https://www.instagram.com/eigenblake /` ,
50
50
} ,
51
51
] ,
52
52
} ,
You can’t perform that action at this time.
0 commit comments