Added ens, deleted template posts, adjusted site name in metadata 42845302
Steve · 2023-02-28 20:32 8 file(s) · +31 −233
astro.config.ts +1 −1
8 8
9 9
// https://astro.build/config
10 10
export default defineConfig({
11 -
	site: "https://stevedsimkins-dev-astro.vercel.app/",
11 +
	site: "https://stevedsimkins.dev",
12 12
	markdown: {
13 13
		shikiConfig: {
14 14
			theme: nordTheme,
public/robots.txt +1 −1
1 1
User-agent: *
2 2
Allow: /
3 3
4 -
Sitemap: https://stevedsimkins-dev-astro.vercel.app/sitemap-index.xml
4 +
Sitemap: https://stevedsimkins.dev/sitemap-index.xml
src/components/SocialList.astro +22 −1
92 92
			</a>
93 93
		</li>
94 94
		<li>
95 -
			<a class="inline-block p-2 sm:hover:text-link" href={SOCIAL_LINKS.linkedin}}>
95 +
			<a class="inline-block p-2 sm:hover:text-link" href={SOCIAL_LINKS.linkedin} }>
96 96
				<svg
97 97
					xmlns="http://www.w3.org/2000/svg"
98 98
					class="h-6 w-6"
113 113
					<path d="M16 16v-3a2 2 0 0 0 -4 0"></path>
114 114
				</svg>
115 115
				<span class="sr-only">LinkedIn</span>
116 +
			</a>
117 +
		</li>
118 +
		<li>
119 +
			<a class="inline-block p-2 sm:hover:text-link" href={SOCIAL_LINKS.ethereum} }>
120 +
				<svg
121 +
					xmlns="http://www.w3.org/2000/svg"
122 +
					class="h-6 w-6"
123 +
					width="44"
124 +
					height="44"
125 +
					viewBox="0 0 24 24"
126 +
					stroke-width="1.5"
127 +
					stroke="currentColor"
128 +
					fill="none"
129 +
					stroke-linecap="round"
130 +
					stroke-linejoin="round"
131 +
				>
132 +
					<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
133 +
					<path d="M6 12l6 -9l6 9l-6 9z"></path>
134 +
					<path d="M6 12l6 -3l6 3l-6 2z"></path>
135 +
				</svg>
136 +
				<span class="sr-only">Ethereum</span>
116 137
			</a>
117 138
		</li>
118 139
	</ul>
src/content/post/hello-world.mdx (deleted) +0 −59
1 -
---
2 -
title: "Testing testing 123!"
3 -
publishDate: "13 May 2022"
4 -
description: "Hello world!!! This is an example blog post showcasing some of the cool stuff Astro Cactus theme can do."
5 -
tags: ["example", "blog", "cool"]
6 -
---
7 -
8 -
import { Image } from "@astrojs/image/components";
9 -
10 -
## Hello World
11 -
12 -
Following is an example blog post written in an mdx file. You can find me @ src/content/post/hello-world.mdx. Here you can add/update/delete details and watch the changes live when running in develop mode.
13 -
14 -
<Image
15 -
	src="https://picsum.photos/id/1025/550/460"
16 -
	alt="A covered up pug in the woods"
17 -
	width={550}
18 -
	height={460}
19 -
/>
20 -
21 -
## Using some markdown elements
22 -
23 -
Here we have a simple js code block.
24 -
25 -
```js
26 -
let string = "JavaScript syntax highlighting";
27 -
```
28 -
29 -
This is styled by Shiki, set via the [config](https://docs.astro.build/en/guides/markdown-content/#syntax-highlighting) for Astro.
30 -
31 -
You can choose your own theme from this [library](https://github.com/shikijs/shiki/blob/main/docs/themes.md#all-themes), which is currently set to Dracula, in the file `astro.config.mjs`.
32 -
33 -
Here is a horizontal rule.
34 -
35 -
---
36 -
37 -
Here is a list:
38 -
39 -
- Item number 1
40 -
- Item number 2
41 -
- Item number 3
42 -
43 -
And an ordered list:
44 -
45 -
1. James Madison
46 -
2. James Monroe
47 -
3. John Quincy Adams
48 -
49 -
Here is a table:
50 -
51 -
| Item         | Price | # In stock |
52 -
| ------------ | :---: | ---------: |
53 -
| Juicy Apples | 1.99  |        739 |
54 -
| Bananas      | 1.89  |          6 |
55 -
56 -
## Tailwind CSS Prose styling
57 -
58 -
> I'm a simple blockquote.
59 -
> I'm styled by Tailwind CSS prose plugin
src/content/post/markdown-elements.md (deleted) +0 −137
1 -
---
2 -
title: "A post of Markdown elements"
3 -
description: "This post is for testing and listing a number of different markdown elements"
4 -
publishDate: "22 Feb 2023"
5 -
tags: ["test", "markdown"]
6 -
---
7 -
8 -
## This is a H2 Heading
9 -
10 -
### This is a H3 Heading
11 -
12 -
#### This is a H4 Heading
13 -
14 -
##### This is a H5 Heading
15 -
16 -
###### This is a H6 Heading
17 -
18 -
## Horizontal Rules
19 -
20 -
---
21 -
22 -
---
23 -
24 -
---
25 -
26 -
## Emphasis
27 -
28 -
**This is bold text**
29 -
30 -
_This is italic text_
31 -
32 -
~~Strikethrough~~
33 -
34 -
## Blockquotes
35 -
36 -
> Blockquotes can also be nested...
37 -
>
38 -
> > ...by using additional greater-than signs right next to each other...
39 -
> >
40 -
> > > ...or with spaces between arrows.
41 -
42 -
## Lists
43 -
44 -
Unordered
45 -
46 -
- Create a list by starting a line with `+`, `-`, or `*`
47 -
- Sub-lists are made by indenting 2 spaces:
48 -
  - Marker character change forces new list start:
49 -
    - Ac tristique libero volutpat at
50 -
    - Facilisis in pretium nisl aliquet
51 -
    - Nulla volutpat aliquam velit
52 -
- Very easy!
53 -
54 -
Ordered
55 -
56 -
1. Lorem ipsum dolor sit amet
57 -
2. Consectetur adipiscing elit
58 -
3. Integer molestie lorem at massa
59 -
60 -
4. You can use sequential numbers...
61 -
5. ...or keep all the numbers as `1.`
62 -
63 -
Start numbering with offset:
64 -
65 -
57. foo
66 -
1. bar
67 -
68 -
## Code
69 -
70 -
Inline `code`
71 -
72 -
Indented code
73 -
74 -
    // Some comments
75 -
    line 1 of code
76 -
    line 2 of code
77 -
    line 3 of code
78 -
79 -
Block code "fences"
80 -
81 -
```
82 -
Sample text here...
83 -
```
84 -
85 -
Syntax highlighting
86 -
87 -
```js
88 -
const axios = require('axios')
89 -
const FormData = require('form-data')
90 -
const fs = require('fs')
91 -
require('dotenv').config()
92 -
93 -
const pinFileToIPFS = async () => {
94 -
  try {
95 -
    let data = new FormData()
96 -
    data.append('file', fs.createReadStream('./assets/Pinnie.png'))
97 -
    data.append('pinataOptions', '{"cidVersion": 0}')
98 -
    data.append('pinataMetadata', '{"name": "pinnie"}')
99 -
100 -
    const res = await axios.post('https://api.pinata.cloud/pinning/pinFileToIPFS', data, {
101 -
      headers: {
102 -
        'Authorization': `Bearer ${process.env.PINATA_JWT}`
103 -
      }
104 -
    })
105 -
    console.log(res.data)
106 -
    console.log(`View the file here: https://gateway.pinata.cloud/ipfs/${res.data.IpfsHash}`)
107 -
  } catch (error) {
108 -
    console.log(error)
109 -
  } 
110 -
}
111 -
112 -
pinFileToIPFS()
113 -
```
114 -
115 -
## Tables
116 -
117 -
| Option | Description                                                               |
118 -
| ------ | ------------------------------------------------------------------------- |
119 -
| data   | path to data files to supply the data that will be passed into templates. |
120 -
| engine | engine to be used for processing templates. Handlebars is the default.    |
121 -
| ext    | extension to be used for dest files.                                      |
122 -
123 -
Right aligned columns
124 -
125 -
| Option |                                                               Description |
126 -
| -----: | ------------------------------------------------------------------------: |
127 -
|   data | path to data files to supply the data that will be passed into templates. |
128 -
| engine |    engine to be used for processing templates. Handlebars is the default. |
129 -
|    ext |                                      extension to be used for dest files. |
130 -
131 -
## Links
132 -
133 -
[Content from markdown-it](https://markdown-it.github.io/)
134 -
135 -
## Quotes
136 -
137 -
"Double quotes" and 'single quotes'
src/content/post/my-developer-journey.mdx → src/content/post/my-developer-journey.md +4 −3
13 13
14 14
Of course talking to people all day every day took a toll on my mental health after four years, and that's about when my son was born. I had about three weeks of vacation and sick time off to help my wife before going back to work, and yeah I really didn't want to go back after taking a good solid break. I sat in that hospital parking lot, scrolling through YouTube, when I came across a video. This video to be precise: 
15 15
16 -
17 -
<iframe width="320" height="180" src="https://www.youtube.com/embed/nupkQD_Mnhg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
16 +
**[How I Learned to Code - And Got a Job in Less Than 3 Months](https://youtu.be/nupkQD_Mnhg)**
18 17
19 18
## The Grind
20 19
Of course the title is clickbait and I got hooked, and while I didn't learn to code in three months, I got started. I bought [Head First: HTML with CSS and XHTML](https://www.amazon.com/Head-First-HTML-CSS-Standards-Based/dp/0596159900) off eBay for $10 and blew through it in a weekend; I just couldn't stop consuming knowledge about web development. This wasn't programming just yet, but the magic was there because I watched text on a screen transform into something visual. I've had a creative background with music and photography, and the ability to create something with lines of code was fascinating. The next book was [Head First Java](https://www.amazon.com/Head-First-Java-Brain-Learners/dp/0596004656?keywords=head+first+java&qid=1677605428&sr=8-5) which did not click with me at all. I barely grasped the basic programming principles, but I couldn't understand how they connected with web sites and made things work, and that was likely due to using 5-10 year old books. I switched up and went to YouTube again and found some web development roadmap videos, that gave me a rough guideline of what I needed to learn. 
27 26
As the community manager then and head of community now, I've had another year of being able to learn technical products and help people use them and understand them. I still get to write code that demonstrates what Pinata can do and snippets to help make it easier to use, which I absolutely love. Pinata took a chance on some guy who used to fetch shoes and take phone calls, and because of that I've been able to relocate to a better city where I can raise my family for which I am incredibly grateful. Sitting down to work each day is exciting because I know that I can learn just about anything and I can teach it to others.
28 27
29 28
I'm starting this blog to document more of what I'm learning in the Web3 and tech space in hopes that others find it beneficial. If you get anything from this post, let it be these words from the beloved Ratatouille that can apply to just about anything in life: 
30 -
> In the past, I have made no secret of my disdain for Chef Gusteau's famous motto, 'Anyone can cook.' But I realize, only now do I truly understand what he meant. Not everyone can become a great artist; but a great artist **can** come from **anywhere**.
29 +
> In the past, I have made no secret of my disdain for Chef Gusteau's famous motto, 'Anyone can cook.' But I realize, only now do I truly understand what he meant. 
30 +
31 +
> Not everyone can become a great artist; but a great artist **can** come from **anywhere**.
src/data/constants.ts +1 −0
19 19
	twitter: "https://twitter.com/stevedsimkins",
20 20
  medium: "https://medium.com/@stevedsimkins",
21 21
  linkedin: "https://linkedin.com/in/steve-simkins",
22 +
  ethereum: "https://rainbow.me/stevedsimkins.eth",
22 23
};
src/pages/index.astro +2 −31
15 15
	<section>
16 16
		<h1 class="title mb-6">Hey there!</h1>
17 17
		<p class="mb-4">
18 -
      My name is Steve, and I'm a developer, technical writer, and creator with a desire to help
18 +
      My name is Steve. I'm a developer, technical writer, and creator with a desire to help
19 19
			build the future of the web. Stay a while to see what I'm working on!
20 20
		</p>
21 21
		<SocialList />
22 +
    <p>Or anywhere with my handle <span class="text-accent">@stevedsimkins</span></p>
22 23
	</section>
23 24
	<section aria-label="Blog post list" class="mt-16">
24 25
		<h2 class="title mb-4 text-xl">Posts</h2>
73 74
					>Pinata
74 75
				</a>
75 76
        </p>
76 -
			</li>
77 -
			<li>
78 -
				<a
79 -
					href="https://www.markdownguide.org/"
80 -
					target="_blank"
81 -
					rel="noopener noreferrer"
82 -
					class="cactus-link inline-block"
83 -
					>Markdown
84 -
				</a>:
85 -
				<p class="inline-block sm:mt-2">Simple and easy-to-use markup language.</p>
86 -
			</li>
87 -
			<li>
88 -
				<a
89 -
					href="https://mdxjs.com/"
90 -
					target="_blank"
91 -
					rel="noopener noreferrer"
92 -
					class="cactus-link inline-block"
93 -
					>MDX
94 -
				</a>:
95 -
				<p class="inline-block sm:mt-2">Markdown for the component era.</p>
96 -
			</li>
97 -
			<li>
98 -
				<a
99 -
					href="https://github.com/vercel/satori"
100 -
					target="_blank"
101 -
					rel="noopener noreferrer"
102 -
					class="cactus-link inline-block"
103 -
					>Satori
104 -
				</a>:
105 -
				<p class="inline-block sm:mt-2">Generating png Open Graph images for blog posts</p>
106 77
			</li>
107 78
		</ul>
108 79
	</section>