Skip to content

Commit be266cb

Browse files
authored
feat: landing page
Adds new components: Footer, Header, IdeaForm, Voting Sample and LandingPage. Requires changes to the dependencies! For instructions, refer to the README.md of the project.
1 parent ed2e108 commit be266cb

File tree

14 files changed

+2134
-582
lines changed

14 files changed

+2134
-582
lines changed

.github/workflows/lint-frontend.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ jobs:
1313
lint-frontend:
1414
runs-on: ubuntu-latest
1515
strategy:
16-
matrix:
17-
node-version: [22]
16+
matrix:
17+
node-version: [22]
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v4
2121

22-
- name: Use Node.js #{{ matrix-node-version }}
22+
- name: Use Node.js
2323
uses: actions/setup-node@v4
2424

2525
- name: Install modules
26-
run: npm install --prefix ./frontend
26+
run: npm install --prefix ./frontend --legacy-peer-deps
2727

2828
- name: Check formatting
2929
run: npm run format:check --prefix ./frontend
3030

3131
- name: Lint
32-
run: npm run lint --prefix ./frontend
32+
run: npm run lint --prefix ./frontend

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,16 @@ If needed, update `MONGODB_URI` in `.env` file.
6565

6666
```bash
6767
/$ cd frontend
68-
/frontend$ npm install
68+
/frontend$ npm install --legacy-peer-deps
6969
```
7070

71+
**Note:** If you encounter `ERESOLVE` errors during `npm install`, ensure you are using the `--legacy-peer-deps` flag. You might also need to clear your `node_modules` and `package-lock.json` first before retrying the installation:
72+
73+
```bash
74+
/frontend$ rm -rf node_modules
75+
/frontend$ rm package-lock.json
76+
/frontend$ npm install --legacy-peer-deps
77+
7178
#### Backend
7279

7380
```bash

frontend/.prettierrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
"jsxSingleQuote": true,
66
"tabWidth": 2,
77
"trailingComma": "es5",
8-
"arrowParens": "avoid",
9-
"tailwindStylesheet": "./src/index.css"
8+
"arrowParens": "avoid"
109
}

0 commit comments

Comments
 (0)