Skip to content

Commit

Permalink
Merge pull request #17 from Coding-Bunker/feature/next-js-and-notion-…
Browse files Browse the repository at this point in the history
…connect

Feature/next js and notion connect
  • Loading branch information
Lory1990 authored Sep 24, 2024
2 parents 69aba25 + e2ae048 commit f71e1db
Show file tree
Hide file tree
Showing 51 changed files with 3,751 additions and 6,311 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
42 changes: 29 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
# build output
dist/

# generated types
.astro/
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules/
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
.env

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# logs
# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production
# local env files
.env*.local

# macOS-specific files
.DS_Store
# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bracketSpacing": true,
"endOfLine": "lf",
"printWidth": 80,
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all"
}
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

54 changes: 9 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,11 @@
# Astro Minimal Portfolio
# Coding Bunker website

[![Screenshot](./src/assets/screenshot.png)](https://minimal-portfolio.demo.tahir.sh/)

## Project Structure

```text
portfolio/
├── public/
│ └── favicon.svg
├── src/
│ ├── assets/
│ │ └── icons, etc.
│ ├── components/
│ │ └── boxes
│ ├── layouts/
│ │ └── Layout.astro
│ ├── pages/
│ │ ├── posts/
│ │ │ └── index.astro
│ │ ├── index.astro
│ │ └── 404.astro
│ ├── content/
│ │ ├── posts/
│ │ │ ├── lorem-ipsum.md
│ │ │ └── lorem-ipsum-2.md
│ │ └── config.ts
│ └── config.ts
└── LICENSE
# Environemt file
```

Make sure to fill in the `config.ts` file in the `src` folder.

This project is build with TailwindCSS and DaisyUI so you can easily customize it.

## Commands

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

| Command | Action |
| :------------------------- | :----------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm run dev` | Starts local dev server at `localhost:4321` |
| `pnpm run build` | Build your production site to `./dist/` |
| `pnpm run preview` | Preview your build locally, before deploying |
| `pnpm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `pnpm run astro -- --help` | Get help using the Astro CLI |
NOTION_TOKEN=
NOTION_EVENTS_DATABASE=
NOTION_CREW_DATABASE=
NOTION_SUBSCRIBERS_DATABASE=
BREVO_API_KEY=
BREVO_STANDARD_CONTACT_LIST=XX
```
8 changes: 0 additions & 8 deletions astro.config.mjs

This file was deleted.

9 changes: 9 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
images:{
unoptimized: true
}
};

export default nextConfig;
50 changes: 29 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
{
"name": "portofolio",
"type": "module",
"version": "0.0.1",
"license": "Apache-2.0",
"name": "new-website",
"version": "0.1.0",
"private": true,
"packageManager": "[email protected].0",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
"dev": "next dev",
"export": "next export",
"build": "next build",
"start": "next start",
"lint": "next lint",
"init:tailwind": "tailwindcss init tailwindcss.config.ts"
},
"dependencies": {
"@astrojs/check": "^0.5.9",
"@astrojs/tailwind": "^5.1.0",
"@tabler/icons": "^3.0.2",
"astro": "^4.5.3",
"sharp": "^0.33.2",
"tailwindcss": "^3.4.1",
"typescript": "^5.4.2"
"@getbrevo/brevo": "^2.2.0",
"@notionhq/client": "^2.2.15",
"axios": "^1.7.2",
"classnames": "^2.5.1",
"luxon": "^3.5.0",
"next": "14.2.5",
"react": "^18",
"react-dom": "^18",
"react-player": "^2.16.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^20.11.28",
"daisyui": "^4.7.3",
"vite": "^5.1.7"
"@types/luxon": "^3.4.2",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.5",
"postcss": "^8",
"tailwindcss": "^3.4.10",
"typescript": "^5"
}
}
}
Loading

0 comments on commit f71e1db

Please sign in to comment.