Skip to content

Commit 3fad0d9

Browse files
authored
Initial commit
0 parents  commit 3fad0d9

33 files changed

+5933
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
3+
{
4+
"name": "Node.js",
5+
"image": "mcr.microsoft.com/devcontainers/javascript-node:16-bullseye",
6+
"features": {
7+
"ghcr.io/NicoVIII/devcontainer-features/pnpm:1": {}
8+
}
9+
10+
// Features to add to the dev container. More info: https://containers.dev/features.
11+
// "features": {},
12+
13+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
14+
// "forwardPorts": [],
15+
16+
// Use 'postCreateCommand' to run commands after the container is created.
17+
// "postCreateCommand": "yarn install",
18+
19+
// Configure tool-specific properties.
20+
// "customizations": {},
21+
22+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
23+
// "remoteUser": "root"
24+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# build output
2+
dist/
3+
4+
# dependencies
5+
node_modules/
6+
7+
# logs
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
pnpm-debug.log*
12+
13+
14+
# environment variables
15+
.env
16+
.env.production
17+
18+
# macOS-specific files
19+
.DS_Store
20+
21+
# I use pnpm
22+
package-lock.json
23+
yarn.lock
24+

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode"],
3+
"unwantedRecommendations": []
4+
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
11+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Lance Ross
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# No Fuss Astro Template 🚀
2+
3+
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/lancerossdev/astro-basic-blog)
4+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flancerossdev%2Fno-fuss-astro)
5+
6+
Hey there, this is going to be my second Astro template to showcase. As the title said, it's an Astro template without any complex designing.
7+
This template is made with [Astro](https://astro.build) and [Tailwind CSS](https://tailwindcss.com) for the Front-end.
8+
9+
You can [create an Issue](https://github.com/lancerossdev/no-fuss-astro/issues/new) or submit a Pull Request if you think there's something wrong or you want to add a new feature on this template. I will appreciate your help!
10+
11+
![Template Preview](https://user-images.githubusercontent.com/102563271/204714426-c2427c94-cd08-4796-bb6e-18a11c3617c8.png)
12+
13+
14+
## Dev Notes 📝
15+
16+
You can use `npm i` or `yarn` to install dependencies. I personally use `pnpm` because it's what I use on most of my projects.
17+
18+
`pnpm install` - Installs dependencies. You can use any of those.
19+
20+
`pnpm dev` - Starts local dev server at `localhost:3000`
21+
22+
`pnpm build` - Build your production site to `./dist/`
23+
24+
`pnpm preview` - Preview your build locally, before deploying
25+
26+
## License ⚖️
27+
28+
This repository has [MIT License](https://github.com/lancerossdev/no-fuss-astro/blob/main/LICENSE).

astro.config.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { defineConfig } from "astro/config";
2+
import compress from "astro-compress";
3+
import sitemap from "@astrojs/sitemap";
4+
import tailwind from "@astrojs/tailwind";
5+
import mdx from "@astrojs/mdx";
6+
import image from "@astrojs/image";
7+
import astroLayouts from "astro-layouts";
8+
9+
// https://astro.build/config
10+
export default defineConfig({
11+
site: "https://nofuss.lanceross.xyz",
12+
base: "/",
13+
markdown: {
14+
shikiConfig: {
15+
theme: "dracula",
16+
},
17+
},
18+
integrations: [
19+
compress({
20+
css: true,
21+
html: true,
22+
js: true,
23+
img: true,
24+
svg: true,
25+
logger: 0,
26+
}),
27+
tailwind(),
28+
sitemap(),
29+
mdx({
30+
remarkPlugins: [
31+
[
32+
astroLayouts,
33+
{
34+
default: "@layouts/Layout.astro",
35+
"pages/blog/**/*.mdx": "@layouts/BlogLayout.astro",
36+
},
37+
],
38+
],
39+
}),
40+
image({
41+
serviceEntryPoint: "@astrojs/image/sharp",
42+
}),
43+
],
44+
});

package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "no-fuss-astro",
3+
"version": "1.0.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "astro dev",
7+
"start": "astro dev",
8+
"build": "astro build",
9+
"preview": "astro preview",
10+
"build:preview": "astro build && astro preview",
11+
"format": "prettier -w --plugin-search-dir=. 'src/**/*.{js,jsx,ts,tsx,astro}'",
12+
"astro": "astro"
13+
},
14+
"devDependencies": {
15+
"@astrojs/image": "^0.11.6",
16+
"@astrojs/mdx": "^0.12.0",
17+
"@astrojs/sitemap": "^1.0.0",
18+
"@astrojs/tailwind": "^2.1.3",
19+
"@fontsource/inter": "^4.5.14",
20+
"@tailwindcss/typography": "^0.5.8",
21+
"astro": "^1.6.12",
22+
"astro-compress": "^1.1.15",
23+
"astro-icon": "^0.8.0",
24+
"astro-layouts": "^0.1.1",
25+
"prettier-plugin-astro": "^0.7.0",
26+
"sharp": "^0.31.2",
27+
"tailwind-scrollbar": "^2.0.1",
28+
"tailwindcss": "^3.2.4"
29+
}
30+
}

0 commit comments

Comments
 (0)