Skip to content

Commit

Permalink
Merge pull request #45 from EchoDex/feat/new-landing
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-rock authored Nov 15, 2024
2 parents ef22ebc + 5bbe0f0 commit 836d525
Show file tree
Hide file tree
Showing 307 changed files with 13,841 additions and 5,572 deletions.
92 changes: 1 addition & 91 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,93 +1,3 @@

{
"ignorePatterns": ["next.config.mjs"],
"extends": "next/core-web-vitals",
"plugins": [
"react",
"@typescript-eslint",
"react-hooks",
"import",
"prettier"
],
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"curly": ["error"],
"no-console": "warn",
"no-unused-vars": "off",
"react/no-unknown-property": "off",
"react/display-name": "off",
"react/no-unescaped-entities": "off",
"react/prefer-stateless-function": [2, { "ignorePureComponents": true }],
"react/sort-comp": [2],
"react/jsx-sort-props": [
1,
{
"callbacksLast": true,
"reservedFirst": true,
"noSortAlphabetically": true
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { "args": "none" }],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"import/order": [
"warn",
{
"groups": [
"external",
"builtin",
"internal",
["parent", "sibling"],
"index"
],
"newlines-between": "always",
"pathGroups": [
{
"pattern": "core/**",
"group": "builtin"
},
{
"pattern": "modules/**",
"group": "internal"
},
{
"pattern": "routing/**",
"group": "internal"
},
{
"pattern": "store",
"group": "internal"
}
],
"pathGroupsExcludedImportTypes": []
}
]
},
"settings": {
"react": {
"version": "detect"
}
}
"extends": ["next/core-web-vitals", "next/typescript"]
}
14 changes: 10 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage
Expand All @@ -25,12 +29,14 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
# env files (can opt-in for commiting if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

package-lock.json
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
# Spark Landing
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

### This landing page is designed to provide users main information about the Spark DeFi platform.
## Getting Started

### Technology Stack
First, run the development server:

- React
- Next.js
- Typescript
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

### Getting Started
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

To get started, clone the repository and follow these commands:
First, run the development server:
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

```bash
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

# Install dependencies
npm install
## Learn More

# Start the development server
npm run dev
To learn more about Next.js, take a look at the following resources:

# Build for production
npm run build
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

# Run tests
npm run test
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

# Lint the project
npm run lint
```
## Deploy on Vercel

### More Information
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

For more information on Spark and how to get involved, please visit our [official website](https://docs.sprk.fi/).
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
7 changes: 5 additions & 2 deletions next.config.mjs → next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export", // for github pages only
images: {
domains: ["cdn.builder.io"],
},
swcMinify: true,
reactStrictMode: true,
images: { unoptimized: true } // for github pages only
};

export default nextConfig;
module.exports = nextConfig;
7 changes: 7 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
};

export default nextConfig;
Loading

0 comments on commit 836d525

Please sign in to comment.