Skip to content
Draft
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
14 changes: 3 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,13 @@ yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# IntelliJ based IDEs
.idea
/shelf/
/workspace.xml
/httpRequests/
/mavenHomeManager.xml
/dataSources/
/dataSources.local.xml
*.iml

.wrangler/
# jetbrains setting folder
.idea/
10 changes: 3 additions & 7 deletions .prettierrc.mjs → .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ export default {
{
files: "*.astro",
options: {
parser: "astro"
}
}
parser: "astro",
},
},
],
arrowParens: "always",
semi: true,
singleQuote: false,
trailingComma: "none"
};
45 changes: 38 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,43 @@
# devarsh-website
# Astro Starter Kit: Minimal

This is my personal website built with Astro! Go to [devarsh.me](https://devarsh.me) to check it out.
```sh
bun create astro@latest -- --template minimal
```

## Setup
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!

You will need [Bun](https://bun.sh) installed.
## 🚀 Project Structure

1. Install dependencies with `bun install --frozen-lockfile`
2. Run `bun run dev` to start the development server
Inside of your Astro project, you'll see the following folders and files:

The site is deployed on Cloudflare Pages. You can get the files to deploy with `bun run build`. If you want to change the adapter, you can do so following the official Astro documentation for the adapter you want.
```text
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
```

Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.

There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the `public/` directory.

## 🧞 Commands

All commands are run from the root of the project, from a terminal:

| Command | Action |
| :-------------------- | :----------------------------------------------- |
| `bun install` | Installs dependencies |
| `bun dev` | Starts local dev server at `localhost:4321` |
| `bun build` | Build your production site to `./dist/` |
| `bun preview` | Preview your build locally, before deploying |
| `bun astro ...` | Run CLI commands like `astro add`, `astro check` |
| `bun astro -- --help` | Get help using the Astro CLI |

## 👀 Want to learn more?

Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
14 changes: 8 additions & 6 deletions astro.config.mts → astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// @ts-check
import { defineConfig } from "astro/config";

import cloudflare from "@astrojs/cloudflare";

import tailwindcss from "@tailwindcss/vite";

// https://astro.build/config
export default defineConfig({
site: "https://devarsh.me",
output: "static",
integrations: [],
adapter: cloudflare({
imageService: "cloudflare"
})
adapter: cloudflare(),

vite: {
plugins: [tailwindcss()],
},
});
1,037 changes: 1,037 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

Binary file removed bun.lockb
Binary file not shown.
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
{
"name": "devarsh-website",
"private": true,
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"format": "prettier . --write"
"format": "prettier --write ."
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/cloudflare": "^12.6.2",
"@astrojs/rss": "^4.0.12",
"@lucide/astro": "^0.536.0",
"astro": "^5.12.8",
"typescript": "^5.9.2"
"@astrojs/cloudflare": "^12.6.12",
"@tailwindcss/vite": "^4.1.18",
"astro": "^6.0.0-beta.1",
"tailwindcss": "^4.1.18"
},
"devDependencies": {
"prettier": "^3.6.2",
"prettier": "^3.8.1",
"prettier-plugin-astro": "^0.14.1"
}
}
2 changes: 2 additions & 0 deletions public/.assetsignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_worker.js
_routes.json
9 changes: 9 additions & 0 deletions public/favicon.svg
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/fonts/Atkinson-Hyperlegible-Bold.woff2
Binary file not shown.
Binary file removed public/fonts/Atkinson-Hyperlegible-BoldItalic.woff2
Binary file not shown.
Binary file removed public/fonts/Atkinson-Hyperlegible-Italic.woff2
Binary file not shown.
Binary file removed public/fonts/Atkinson-Hyperlegible-Regular.woff2
Binary file not shown.
6 changes: 0 additions & 6 deletions public/humans.txt

This file was deleted.

3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

38 changes: 0 additions & 38 deletions src/components/BaseHead.astro

This file was deleted.

17 changes: 0 additions & 17 deletions src/components/FormattedDate.astro

This file was deleted.

26 changes: 0 additions & 26 deletions src/components/Giscus.astro

This file was deleted.

109 changes: 0 additions & 109 deletions src/components/Header.astro

This file was deleted.

25 changes: 0 additions & 25 deletions src/components/HeaderLink.astro

This file was deleted.

Loading