Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor changes to readme, uses, blog posts share buttons #8

Merged
merged 4 commits into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 66 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
# lucasdsalves.com
# [lucasdsalves.com](https://www.lucasdsalves.com/)

## Stacks
This is my personal website built with the following stacks:

- [React](https://react.dev/)
- [Next.js](https://nextjs.org/)
- [Vercel](https://vercel.com)
- [Tailwind CSS](https://tailwindcss.com/)
- [MDX](https://mdxjs.com/)
- [Markdown](https://mdxjs.com/)

## Installation
<kbd>
<img src="./public/static/images/demo.png" border="1">
</kbd>

## Running it locally 🏃‍♂️🏠

1. Clone the project

```bash
npm install
git clone https://github.com/lucasdsalves/lucasdsalves.com.git
```

2. Go to the project folder

```bash
cd lucasdsalves.com
```

## Development
3. Install dependencies

```bash
npm install
```

First, run the development server:
4. Run the development server:

```bash
npm start
Expand All @@ -28,4 +43,46 @@ or
npm run dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
5. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## Project structure 🏗️

```bash
📦 root
├── 📁 components # React files to customize the components for the site
├── 📁 css # Tailwind and Prism CSS files
├── 📁 data # Files to change the content of pages
│ ├── 📁 authors # Markdown files for authors of blog
│ ├── 📁 blog # Markdown files for blog posts
├── 📁 layouts # JS Layouts for pages
├── 📁 lib # Non-react modules
├── 📁 pages # All page files for website
├── 📁 public # Static files for images, rss, and assets
│ ├── 📁 static # Holds images, favicons, and other assets
│ │ ├── 📁 favicon # Favicon files
│ │ └── 📁 images # Image Files
│ ├── 📝 feed.xml # RSS feed
├── 📁 scripts # Scripts to run for different tasks
├── 📝 tailwind.config.js # Contains tailwind stylesheet to change the look
└── 📝 next.config.js # Configuration related to Next.js
└── 📝 prettier.config.js # Configuration related to Prettier
```

## Composing a new post ✏️

Run `node ./scripts/compose.js` to bootstrap a new post.

## Inspiration and template origin 💡

This website was built based on [Timothy Lin](https://github.com/timlrx) template [Tailwind Nextjs Starter Blog](https://github.com/timlrx/tailwind-nextjs-starter-blog).

Inspired by:

- [dalelarroder.com](https://dalelarroder.com) - Dale Larroder's personal website and blog

- [sabare.me](https://sabare.me/) - Victor Sabare's personal website and blog
- [zenorocha.com](https://zenorocha.com) - Zeno Rocha's personal website and blog

## Licence 🗞️

[MIT](https://github.com/lucasdsalves/lucasdsalves.com/blob/main/LICENSE) © [Lucas dos Santos Alves](https://www.lucasdsalves.com)
11 changes: 11 additions & 0 deletions data/authors/uses.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,21 @@ github: https://github.com/lucasdsalves
<li>
[Oh My Posh](https://ohmyposh.dev/) styling
</li>
<li>
[Chocolatey](https://chocolatey.org/) as package manager for Windows
</li>
</ul>
</li>
</ul>

## Photographs

<ul>
<li>
📷 [My photos gallery in VSCO](https://vsco.co/lucasdsalves)
</li>
</ul>

## Watches

<ul>
Expand Down
2 changes: 2 additions & 0 deletions data/blog/building-personal-website.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ However, I saw how powerful Next.Js was and found out I could quickly build and

I discovered Next.Js after hearing from <a href="https://twitter.com/zenorocha" target="_blank">@zenorocha</a>

![SecondBlogVersion](/static/images/posts/blog-version-2.png)

## The end?

Probably, that's not the end.
Expand Down
11 changes: 0 additions & 11 deletions layouts/PostLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ export default function PostLayout({ frontMatter, authorDetails, next, prev, chi
<TwitterShareButton url={postUrl} title={title} via="lucasdsalves">
<TwitterIcon size={32} round={true} />
</TwitterShareButton>
<FacebookShareButton url={postUrl} quote={title} caption="Share on Facebook">
<FacebookIcon size={32} round={true} />
</FacebookShareButton>
<WhatsappShareButton url={postUrl} title={title}>
<WhatsappIcon size={32} round={true} />
</WhatsappShareButton>
Expand All @@ -113,14 +110,6 @@ export default function PostLayout({ frontMatter, authorDetails, next, prev, chi
<PocketShareButton url={postUrl} title={title}>
<PocketIcon size={32} round={true} />
</PocketShareButton>
<button
onClick={() =>
navigator.clipboard.writeText(`${siteMetadata.siteUrl}/blog/${slug}`)
}
title="Copy post link to clipboard"
>
<AppIcons kind="clipboard" size="5" />
</button>
</div>
</div>
</div>
Expand Down
Binary file removed public/static/images/avatar.png
Binary file not shown.
Binary file added public/static/images/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/static/images/google.png
Binary file not shown.
Binary file added public/static/images/posts/blog-version-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/static/images/twitter-card.png
Binary file not shown.