Skip to content

Commit

Permalink
feat(web): add official website template
Browse files Browse the repository at this point in the history
  • Loading branch information
1chooo committed Oct 20, 2024
1 parent ff1553c commit e810af3
Show file tree
Hide file tree
Showing 48 changed files with 5,647 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/core-web-vitals", "prettier"]
}
41 changes: 41 additions & 0 deletions web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo

.idea/

# idea
.idea/workspace.xml

.env
1 change: 1 addition & 0 deletions web/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enable-pre-post-scripts=true
35 changes: 35 additions & 0 deletions web/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
1 change: 1 addition & 0 deletions web/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
13 changes: 13 additions & 0 deletions web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# LinkScape Site V3

[![](https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg)](https://vercel.com/?utm_source=linkscape&utm_campaign=oss)

This is the latest version of LinkScape's Website. Built with [Next.js](https://nextjs.org).

## Development

1. Import this repo to your coding environment of choice. Download it, `git clone`, or use the GitHub import on Vercel.
2. `pnpm i` to install dependencies.
3. `pnpm run dev` to start your server.
4. Start adding your own pages & components in their respective directories.
5. `pnpm run build` to build the website.
5 changes: 5 additions & 0 deletions web/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
6 changes: 6 additions & 0 deletions web/next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.SITE_URL || "https://linkscape.app",
generateRobotsTxt: true, // (optional)
// ...other options
};
13 changes: 13 additions & 0 deletions web/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
domains: [
"cdn.linkscape.app",
"avatars.githubusercontent.com",
"files.ohevan.com",
],
},
};

module.exports = nextConfig;
42 changes: 42 additions & 0 deletions web/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "site-v3",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@headlessui/react": "^1.7.16",
"@heroicons/react": "^2.0.18",
"@primer/octicons-react": "^19.5.0",
"@types/node": "20.4.8",
"@types/react": "18.2.18",
"@types/react-dom": "18.2.7",
"@vercel/analytics": "^1.0.1",
"autoprefixer": "10.4.14",
"daisyui": "^3.5.1",
"eslint": "8.46.0",
"eslint-config-next": "13.4.12",
"framer-motion": "^10.15.0",
"lucide": "^0.263.0",
"lucide-react": "^0.263.1",
"next": "13.4.12",
"next-sitemap": "^4.1.8",
"postcss": "8.4.27",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-feather": "^2.0.10",
"react-icons": "^4.10.1",
"tailwindcss": "3.3.3",
"typescript": "5.1.6"
},
"devDependencies": {
"eslint-config-prettier": "^8.10.0",
"prettier": "3.0.1",
"prettier-plugin-tailwindcss": "^0.4.1"
}
}
Loading

0 comments on commit e810af3

Please sign in to comment.