Skip to content

Commit d86c50c

Browse files
authored
Merge pull request #14 from thedevdavid/release/0.3.2
Release/0.3.2
2 parents a60461c + cc64288 commit d86c50c

24 files changed

+524
-609
lines changed

CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.3.2] - 2023-06-26
11+
12+
### Added
13+
14+
- Skip to content link
15+
16+
### Changed
17+
18+
- Updated docs
19+
- Updated code of conduct
20+
- Fixed command dialog rendered twice bug
21+
- Upgraded packages
22+
23+
### Removed
24+
25+
- Avatar component
26+
27+
## [0.3.1] - 2023-06-20
28+
29+
### Added
30+
31+
- Accent color
32+
- Issue templates
33+
34+
### Changed
35+
36+
- Updated usage docs
37+
1038
## [0.3.0] - 2023-06-18
1139

1240
### Added

CODE_OF_CONDUCT.md

+27-24
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ We as members, contributors, and leaders pledge to make participation in our
66
community a harassment-free experience for everyone, regardless of age, body
77
size, visible or invisible disability, ethnicity, sex characteristics, gender
88
identity and expression, level of experience, education, socio-economic status,
9-
nationality, personal appearance, race, religion, or sexual identity
10-
and orientation.
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
1111

1212
We pledge to act and interact in ways that contribute to an open, welcoming,
1313
diverse, inclusive, and healthy community.
@@ -22,17 +22,17 @@ community include:
2222
- Giving and gracefully accepting constructive feedback
2323
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
- Focusing on what is best not just for us as individuals, but for the
26-
overall community
25+
- Focusing on what is best not just for us as individuals, but for the overall
26+
community
2727

2828
Examples of unacceptable behavior include:
2929

30-
- The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
30+
- The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
3232
- Trolling, insulting or derogatory comments, and personal or political attacks
3333
- Public or private harassment
34-
- Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
34+
- Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
3636
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

@@ -59,8 +59,7 @@ representative at an online or offline event.
5959
## Enforcement
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at
63-
@thedevdavid.
62+
reported to the community leaders responsible for enforcement at @thedevdavid.
6463
All complaints will be reviewed and investigated promptly and fairly.
6564

6665
All community leaders are obligated to respect the privacy and security of the
@@ -82,15 +81,15 @@ behavior was inappropriate. A public apology may be requested.
8281

8382
### 2. Warning
8483

85-
**Community Impact**: A violation through a single incident or series
86-
of actions.
84+
**Community Impact**: A violation through a single incident or series of
85+
actions.
8786

8887
**Consequence**: A warning with consequences for continued behavior. No
8988
interaction with the people involved, including unsolicited interaction with
9089
those enforcing the Code of Conduct, for a specified period of time. This
9190
includes avoiding interactions in community spaces as well as external channels
92-
like social media. Violating these terms may lead to a temporary or
93-
permanent ban.
91+
like social media. Violating these terms may lead to a temporary or permanent
92+
ban.
9493

9594
### 3. Temporary Ban
9695

@@ -109,20 +108,24 @@ Violating these terms may lead to a permanent ban.
109108
standards, including sustained inappropriate behavior, harassment of an
110109
individual, or aggression toward or disparagement of classes of individuals.
111110

112-
**Consequence**: A permanent ban from any sort of public interaction within
113-
the community.
111+
**Consequence**: A permanent ban from any sort of public interaction within the
112+
community.
114113

115114
## Attribution
116115

117116
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118-
version 2.0, available at
119-
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
117+
version 2.1, available at
118+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120119

121-
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122-
enforcement ladder](https://github.com/mozilla/diversity).
123-
124-
[homepage]: https://www.contributor-covenant.org
120+
Community Impact Guidelines were inspired by
121+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
125122

126123
For answers to common questions about this code of conduct, see the FAQ at
127-
[https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are available at
128-
[https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).
124+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
125+
[https://www.contributor-covenant.org/translations][translations].
126+
127+
[homepage]: https://www.contributor-covenant.org
128+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
129+
[Mozilla CoC]: https://github.com/mozilla/diversity
130+
[FAQ]: https://www.contributor-covenant.org/faq
131+
[translations]: https://www.contributor-covenant.org/translations

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Modern Developer Digital Garden Starter
1+
# Modern Developer Blog Template (Digital Garden Starter)
22

33
![Image2](/screenshots/garden2.png)
44
[More screenshots here](/screenshots/)
55

66
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/thedevdavid/digital-garden)
77

8-
An open source digital gardening template for developers using [Next.js](https://nextjs.org/) app router, MDX, [Contentlayer](https://contentlayer.dev/), [Tailwind CSS](https://tailwindcss.com/), [@shadcn/ui](https://ui.shadcn.com/) , [Lucide Icons](https://lucide.dev/icons), and more.
8+
An open source blogging (digital gardening) template for developers using [Next.js](https://nextjs.org/) app router, MDX, [Contentlayer](https://contentlayer.dev/), [Tailwind CSS](https://tailwindcss.com/), [@shadcn/ui](https://ui.shadcn.com/) , [Lucide Icons](https://lucide.dev/icons), and more.
99

1010
This project is from developers for developers. Please feel free to report a bug, discuss the current state, submit ideas for improvements, submit a fix, propose new features, or whatever you want. All contributions are welcome! Read more at the [contributing guidelines](./CONTRIBUTING.md).
1111

@@ -37,7 +37,7 @@ If you love this template and/or use it, please give it a star on GitHub. This w
3737

3838
## Motivation
3939

40-
As a developer who creates content, I want to have a digital garden where I can share my thoughts and ideas with the world. Now, there's not really a "perfect solution" for this currently. With included analytics, SEO, email subscribtions, modern tooling, simple design, etc. We either have to build one from scratch, use a design template and code the features, or use a CMS/no-code tool.
40+
As a developer who creates content, I want to have a blog & digital garden where I can share my thoughts and ideas with the world. Now, there's not really a "perfect solution" for this currently. With included analytics, SEO, email subscriptions, modern tooling, simple design, etc. We either have to build one from scratch, use a design template and code the features, or use a CMS/no-code tool.
4141

4242
So I decided to build a solution that I would use myself. This is the result.
4343

@@ -71,7 +71,7 @@ Editing list pages is done in the `lib` folder.
7171
You can deploy the project with [Vercel](https://vercel.com/) or any other hosting provider. If you want to use Vercel, you can use the button at the top of this README.
7272

7373
1. Update `package.json` author information
74-
2. Set up the `NEXT_PUBLIC_BASE_URL` environment variable on Vercel to point to your digital garden's root URL
74+
2. Set up the `NEXT_PUBLIC_BASE_URL` environment variable on Vercel to point to your website's root URL
7575
3. Build and deploy
7676

7777
## Customization
@@ -120,7 +120,7 @@ Note: DO NOT overdo it. You can easily make images look bad with lossy compressi
120120

121121
- [https://davidlevai.com/](https://davidlevai.com/)
122122

123-
Create a PR and add your digital garden to this list if you're using the template!
123+
Create a PR and add your blog to this list if you're using the template!
124124

125125
## Features & Roadmap
126126

app/(site)/layout.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ interface RootLayoutProps {
88
export default function RootLayout({ children }: RootLayoutProps) {
99
return (
1010
<>
11+
<a
12+
className="absolute left-0 top-0 z-[9999] m-3 block -translate-y-96 overflow-hidden bg-white p-3 text-2xl text-black transition focus:translate-y-0"
13+
href="#main-content"
14+
>
15+
Skip to Content
16+
</a>
1117
<Navigation />
1218
<div className="order-last mt-[calc(theme(spacing.16)-theme(spacing.3))]"></div>
13-
<main>{children}</main>
19+
<main id="main-content">{children}</main>
1420
<Footer />
1521
<div
1622
className="absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"

app/globals.css

+23-26
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
@tailwind base;
2+
@tailwind components;
23

34
.footnotes {
4-
@apply mb-6 border-t border-gray-200 pt-2 text-sm text-muted-foreground dark:border-gray-700;
5+
@apply mb-6 border-t border-muted-foreground pt-2 text-sm text-muted-foreground;
56
}
67

7-
@tailwind components;
88
@tailwind utilities;
99

1010
@layer base {
1111
:root {
1212
--background: 0 0% 100%;
13-
--foreground: 222.2 47.4% 11.2%;
13+
--foreground: 222.2 84% 4.9%;
1414

1515
--muted: 210 40% 96.1%;
1616
--muted-foreground: 215.4 16.3% 46.9%;
1717

1818
--popover: 0 0% 100%;
19-
--popover-foreground: 222.2 47.4% 11.2%;
19+
--popover-foreground: 222.2 84% 4.9%;
2020

21-
--card: 0 0% 95%;
22-
--card-foreground: 222.2 47.4% 11.2%;
21+
--card: 0 0% 100%;
22+
--card-foreground: 222.2 84% 4.9%;
2323

2424
--border: 214.3 31.8% 91.4%;
2525
--input: 214.3 31.8% 91.4%;
@@ -33,7 +33,7 @@
3333
--accent: 210 40% 96.1%;
3434
--accent-foreground: 223 94% 66%;
3535

36-
--destructive: 0 100% 50%;
36+
--destructive: 0 84.2% 60.2%;
3737
--destructive-foreground: 210 40% 98%;
3838

3939
--ring: 215 20.2% 65.1%;
@@ -42,36 +42,34 @@
4242
}
4343

4444
.dark {
45-
--background: 224 71% 4%;
46-
--foreground: 213 31% 91%;
45+
--background: 222.2 84% 4.9%;
46+
--foreground: 210 40% 98%;
4747

48-
--muted: 223 47% 11%;
49-
--muted-foreground: 215.4 16.3% 56.9%;
48+
--muted: 217.2 32.6% 17.5%;
49+
--muted-foreground: 215 20.2% 65.1%;
5050

51-
--popover: 224 71% 4%;
52-
--popover-foreground: 215 20.2% 65.1%;
51+
--popover: 222.2 84% 4.9%;
52+
--popover-foreground: 210 40% 98%;
5353

54-
--card: 224 71% 4%;
55-
--card-foreground: 213 31% 91%;
54+
--card: 222.2 84% 4.9%;
55+
--card-foreground: 210 40% 98%;
5656

57-
--border: 216 34% 17%;
58-
--input: 216 34% 17%;
57+
--border: 217.2 32.6% 17.5%;
58+
--input: 217.2 32.6% 17.5%;
5959

6060
--primary: 210 40% 98%;
61-
--primary-foreground: 222.2 47.4% 1.2%;
61+
--primary-foreground: 222.2 47.4% 11.2%;
6262

63-
--secondary: 222.2 47.4% 11.2%;
63+
--secondary: 217.2 32.6% 17.5%;
6464
--secondary-foreground: 210 40% 98%;
6565

66-
--accent: 216 34% 17%;
66+
--accent: 217.2 32.6% 17.5%;
6767
--accent-foreground: 223 94% 66%;
6868

69-
--destructive: 0 63% 31%;
70-
--destructive-foreground: 210 40% 98%;
69+
--destructive: 0 62.8% 30.6%;
70+
--destructive-foreground: 0 85.7% 97.3%;
7171

72-
--ring: 216 34% 17%;
73-
74-
--radius: 0.5rem;
72+
--ring: 217.2 32.6% 17.5%;
7573
}
7674
}
7775

@@ -81,6 +79,5 @@
8179
}
8280
body {
8381
@apply bg-background text-foreground;
84-
font-feature-settings: "rlig" 1, "calt" 1;
8582
}
8683
}

app/twitter-image.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default async function Image() {
2828
justifyContent: "center",
2929
}}
3030
>
31-
{`${defaultAuthor.handle}'s digital garden`}
31+
{`${defaultAuthor.handle}'s blog`}
3232
</div>
3333
),
3434
// ImageResponse options

components.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tailwind": {
6+
"config": "tailwind.config.js",
7+
"css": "app/globals.css",
8+
"baseColor": "slate",
9+
"cssVariables": true
10+
},
11+
"aliases": {
12+
"components": "@/components",
13+
"utils": "@/lib/utils"
14+
}
15+
}

0 commit comments

Comments
 (0)